mirror of https://gitlab.com/ita1024/waf.git
Added a fake Constants module in compat15.py
This commit is contained in:
parent
d4334adfb9
commit
efbc47b434
1
TODO
1
TODO
|
@ -16,6 +16,7 @@ Waf 1.9
|
||||||
* Better consistency between check_cfg and check_cc variables
|
* Better consistency between check_cfg and check_cc variables
|
||||||
* Detect Clang by default on FreeBSD instead of gcc
|
* Detect Clang by default on FreeBSD instead of gcc
|
||||||
* Use relative paths in apply_incpaths (and absolute ones when paths cross drives)
|
* Use relative paths in apply_incpaths (and absolute ones when paths cross drives)
|
||||||
|
* Let run_once accept a list of *args
|
||||||
|
|
||||||
and all other issues listed on https://github.com/waf-project/waf/issues
|
and all other issues listed on https://github.com/waf-project/waf/issues
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ sys.modules['Node'] = Node
|
||||||
sys.modules['Runner'] = Runner
|
sys.modules['Runner'] = Runner
|
||||||
sys.modules['TaskGen'] = TaskGen
|
sys.modules['TaskGen'] = TaskGen
|
||||||
sys.modules['Utils'] = Utils
|
sys.modules['Utils'] = Utils
|
||||||
|
sys.modules['Constants'] = Context
|
||||||
|
Context.SRCDIR = ''
|
||||||
|
Context.BLDDIR = ''
|
||||||
|
|
||||||
from waflib.Tools import c_preproc
|
from waflib.Tools import c_preproc
|
||||||
sys.modules['preproc'] = c_preproc
|
sys.modules['preproc'] = c_preproc
|
||||||
|
@ -34,6 +37,8 @@ sys.modules['config_c'] = c_config
|
||||||
ConfigSet.ConfigSet.copy = ConfigSet.ConfigSet.derive
|
ConfigSet.ConfigSet.copy = ConfigSet.ConfigSet.derive
|
||||||
ConfigSet.ConfigSet.set_variant = Utils.nada
|
ConfigSet.ConfigSet.set_variant = Utils.nada
|
||||||
|
|
||||||
|
Utils.pproc = Utils.subprocess
|
||||||
|
|
||||||
Build.BuildContext.add_subdirs = Build.BuildContext.recurse
|
Build.BuildContext.add_subdirs = Build.BuildContext.recurse
|
||||||
Build.BuildContext.new_task_gen = Build.BuildContext.__call__
|
Build.BuildContext.new_task_gen = Build.BuildContext.__call__
|
||||||
Build.BuildContext.is_install = 0
|
Build.BuildContext.is_install = 0
|
||||||
|
|
Loading…
Reference in New Issue