diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-03-24 11:51:51 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-03-24 11:51:51 (GMT) |
commit | deaa34e0c1d990f37fe00e465ac7a22f705904f0 (patch) | |
tree | 8d5749ba8d587d7b753162c524b18f7e7cdf6a0b /src/configgen.py | |
parent | aacd1557af129e2bff3514169e04168376a2431b (diff) | |
download | Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.zip Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.tar.gz Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.tar.bz2 |
Release-1.8.3.1-20130324
Diffstat (limited to 'src/configgen.py')
-rwxr-xr-x | src/configgen.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/configgen.py b/src/configgen.py index 459ec4d..47c8eb6 100755 --- a/src/configgen.py +++ b/src/configgen.py @@ -29,11 +29,14 @@ def parseOption(node): defval = node.getAttribute('defval') adefval = node.getAttribute('altdefval') depends = node.getAttribute('depends') + setting = node.getAttribute('setting') # replace \ by \\, replace " by \", and ' ' by a newline with end string and start string at next line docC = doc.strip().replace('\\','\\\\').replace('"','\\"').replace(' ','\\n"\n "') + if len(setting)>0: + print "#if %s" % (setting) print " //----" if type=='bool': - if len(adefval)>0: + if len(adefval)>0: enabled = adefval elif defval=='1': enabled = "TRUE" @@ -94,6 +97,8 @@ def parseOption(node): print " cl->setWidgetType(ConfigList::FileAndDir);" elif type=='obsolete': print " cfg->addObsolete(\"%s\");" % (name) + if len(setting)>0: + print "#endif" @@ -121,6 +126,7 @@ def main(): print "#include \"configoptions.h\"" print "#include \"config.h\"" print "#include \"portable.h\"" + print "#include \"settings.h\"" print "" print "void addConfigOptions(Config *cfg)" print "{" |