diff --git a/demos/variants/wscript b/demos/variants/wscript index 47f963f7..167dcbe0 100644 --- a/demos/variants/wscript +++ b/demos/variants/wscript @@ -72,20 +72,20 @@ def init(ctx): cmd = name + '_' + x variant = x - def buildall(ctx): - import waflib.Options - for x in ('build_debug', 'build_release'): - waflib.Options.commands.insert(0, x) - ## if you work on "debug" 99% of the time, here is how to re-enable "waf build": #for y in (BuildContext, CleanContext, InstallContext, UninstallContext): # class tmp(y): # variant = 'debug' - - # you may also set 'win32/debug' instead of 'debug' (waf 1.6.9) + # you may also set 'win32/debug' instead of 'debug' # the commands will be "build_win32/debug" or "build_win32/release" # in this case you may want to modify Options.commands in this "init" function +# calling "waf buildall" will run "waf build_debug build_release" +def buildall(ctx): + import waflib.Options + for x in ('build_debug', 'build_release'): + waflib.Options.commands.insert(0, x) + # -------------------------- # or, if you want to memorize the default variant and just type "waf", #