print "SLICC writing C++ files..."
slicc.writeCodeFiles(pdir)
- print "SLICC writing HTML files..."
- slicc.writeHTMLFiles(hdir)
+ if env['NO_HTML']:
+ print "skipping HTML file creation"
+ else:
+ print "SLICC writing HTML files..."
+ slicc.writeHTMLFiles(hdir)
return target, source
def slicc_action(target, source, env):
print "SLICC writing C++ files..."
slicc.writeCodeFiles(pdir)
- print "SLICC writing HTML files..."
- slicc.writeHTMLFiles(hdir)
+ if env['NO_HTML']:
+ print "skipping HTML file creation"
+ else:
+ print "SLICC writing HTML files..."
+ slicc.writeHTMLFiles(hdir)
slicc_builder = Builder(action=slicc_action, emitter=slicc_emitter)
sticky_vars.AddVariables(opt)
export_vars += ['PROTOCOL']
+
+opt = BoolVariable('NO_HTML', 'Do not create HTML files', False)
+sticky_vars.AddVariables(opt)