mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Clarify the buildall alias
This commit is contained in:
parent
a550472fcb
commit
0cebd3bd4d
@ -72,20 +72,20 @@ def init(ctx):
|
|||||||
cmd = name + '_' + x
|
cmd = name + '_' + x
|
||||||
variant = 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":
|
## if you work on "debug" 99% of the time, here is how to re-enable "waf build":
|
||||||
#for y in (BuildContext, CleanContext, InstallContext, UninstallContext):
|
#for y in (BuildContext, CleanContext, InstallContext, UninstallContext):
|
||||||
# class tmp(y):
|
# class tmp(y):
|
||||||
# variant = 'debug'
|
# variant = 'debug'
|
||||||
|
# you may also set 'win32/debug' instead of 'debug'
|
||||||
# you may also set 'win32/debug' instead of 'debug' (waf 1.6.9)
|
|
||||||
# the commands will be "build_win32/debug" or "build_win32/release"
|
# 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
|
# 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",
|
# or, if you want to memorize the default variant and just type "waf",
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user