waf: define WAF_BUILD to allow different behavior in make

This commit is contained in:
Lucas De Marchi 2016-05-18 13:33:31 -03:00
parent 9ccce2c980
commit 11e508e3a6
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ def configure(cfg):
# Always use system extensions
cfg.define('_GNU_SOURCE', 1)
# Allow to differentiate our build from the make build
cfg.define('WAF_BUILD', 1)
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'))
def collect_dirs_to_recurse(bld, globs, **kw):