2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-22 01:09:28 +01:00

Use SVG in the feature map

This commit is contained in:
Thomas Nagy 2016-06-25 18:22:13 +02:00
parent eaa83004c8
commit 8ad77d3b6b
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,8 @@ import sys, os, re
sys.path.insert(0, os.path.abspath(os.path.join('..', "..")))
sys.path.append(os.path.abspath('.'))
graphviz_output_format = 'svg'
# monkey patch a few waf classes for documentation purposes!
#-----------------------------------------------------------
@ -247,10 +249,10 @@ for z in lst:
if str(m.__module__).find('.Tools') > 0:
k = 'tools/' + k
ms.append('\t"%s" [style="setlinewidth(0.5)",URL="%s",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",height=0.25,shape=box,fontsize=10%s];' % (x, k, x in TaskGen.feats[z] and color or ''))
ms.append('\t\t"%s" [style="setlinewidth(0.5)",URL="%s",target="_blank",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",height=0.25,shape="rectangle",fontsize=10%s];' % (x, k, x in TaskGen.feats[z] and color or ''))
for x, y in links:
ms.append('\t"%s" -> "%s" [arrowsize=0.5,style="setlinewidth(0.5)"];' % (x, y))
ms.append('\t\t"%s" -> "%s" [arrowsize=0.5,style="setlinewidth(0.5)"];' % (x, y))
rs = '\tdigraph feature_%s {\n\tsize="8.0, 12.0";\n\t%s\n\t}\n' % (z == '*' and 'all' or z, '\n'.join(ms))
title = "Feature %s" % (z == '*' and '\\*' or z)

View File

@ -9,7 +9,7 @@ fortran support
from waflib import Utils, Task, Logs
from waflib.Tools import ccroot, fc_config, fc_scan
from waflib.TaskGen import feature, extension
from waflib.TaskGen import extension
from waflib.Configure import conf
ccroot.USELIB_VARS['fc'] = set(['FCFLAGS', 'DEFINES', 'INCLUDES', 'FCPPFLAGS'])