diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-17 12:14:11 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:50 +1000 |
commit | e6a47a8dea252c7ced95141f24de68f4d6a21c41 (patch) | |
tree | 886a27d0d0f7e1840856bf5c09fca39d612db0e7 /buildtools/wafsamba | |
parent | 32bf9bc84e8b4032f8808f6d50926fee27c587fc (diff) | |
download | samba-e6a47a8dea252c7ced95141f24de68f4d6a21c41.tar.gz samba-e6a47a8dea252c7ced95141f24de68f4d6a21c41.tar.bz2 samba-e6a47a8dea252c7ced95141f24de68f4d6a21c41.zip |
build: we don't need varients in samba, so we can optimise a bit more
Thanks to ita for suggesting this
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_includes.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_includes.py b/buildtools/wafsamba/samba_includes.py index 3331713f80..54d43a3b94 100644 --- a/buildtools/wafsamba/samba_includes.py +++ b/buildtools/wafsamba/samba_includes.py @@ -72,5 +72,17 @@ def apply_obj_vars_cc(self): for i in env['CPPPATH']: app('_CCINCFLAGS', cpppath_st % i) +import Node, Environment + +def vari(self): + return "default" +Environment.Environment.variant = vari + +def variant(self, env): + if not env: return 0 + elif self.id & 3 == Node.FILE: return 0 + else: return "default" +Node.Node.variant = variant + |