Added a fake Constants module in compat15.py

This commit is contained in:
Thomas Nagy 2015-11-04 23:16:48 +01:00
parent d4334adfb9
commit efbc47b434
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 6 additions and 0 deletions

1
TODO
View File

@ -16,6 +16,7 @@ Waf 1.9
* Better consistency between check_cfg and check_cc variables
* Detect Clang by default on FreeBSD instead of gcc
* 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

View File

@ -24,6 +24,9 @@ sys.modules['Node'] = Node
sys.modules['Runner'] = Runner
sys.modules['TaskGen'] = TaskGen
sys.modules['Utils'] = Utils
sys.modules['Constants'] = Context
Context.SRCDIR = ''
Context.BLDDIR = ''
from waflib.Tools import 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.set_variant = Utils.nada
Utils.pproc = Utils.subprocess
Build.BuildContext.add_subdirs = Build.BuildContext.recurse
Build.BuildContext.new_task_gen = Build.BuildContext.__call__
Build.BuildContext.is_install = 0