diff options
author | Alexander Bokovoy <ab@samba.org> | 2012-04-13 17:53:04 +0300 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2012-04-13 18:34:39 +0200 |
commit | 1a8405c320f115d584a9094bf5878b8cf6d58893 (patch) | |
tree | d362fcfec3c7f49c91e709c01623b901d66c09c3 /wscript_build | |
parent | b8dea7e82d0acb9e55e8bfe9a089c250d7380102 (diff) | |
download | samba-1a8405c320f115d584a9094bf5878b8cf6d58893.tar.gz |
wafsamba: add support for separate rules in stages
bld.process_separate_rule(rule) and conf.process_separate_rule(rule)
will cause WAF to import wscript_<stage>_<rule> script into current
context.
Files wscript_<configure|build>_<rule> should exist in the current
directory.
This can be used to provide rules specific for alternative
implementations of certain libraries
Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Fri Apr 13 18:34:39 CEST 2012 on sn-devel-104
Diffstat (limited to 'wscript_build')
-rw-r--r-- | wscript_build | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/wscript_build b/wscript_build index e3cacbf7348..eeefeb3a19f 100644 --- a/wscript_build +++ b/wscript_build @@ -111,8 +111,19 @@ bld.RECURSE('libcli/samsync') bld.RECURSE('libcli/registry') bld.RECURSE('source4/lib/policy') bld.RECURSE('libcli/named_pipe_auth') -if not bld.CONFIG_SET("USING_SYSTEM_KRB5"): - bld.RECURSE('source4/heimdal_build') + +if bld.CONFIG_SET("USING_SYSTEM_KRB5"): + if bld.CONFIG_SET("HEIMDAL_KRB5_CONFIG") and bld.CONFIG_SET("KRB5_CONFIG"): + if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") != bld.CONFIG_GET("KRB5_CONFIG"): + # When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal, + # it means one is Heimdal-specific (krb5-config.heimdal, for example) + # and there is system heimdal + bld.process_separate_rule('system_heimdal') + else: + bld.process_separate_rule('system_krb5') +else: + bld.process_separate_rule('embedded_heimdal') + bld.RECURSE('libcli/smbreadline') bld.RECURSE('codepages') bld.RECURSE('source4/setup') |