diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-15 16:16:54 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-18 15:09:46 +1100 |
commit | 1570058b0d8754e8cc3f4e949eb2365df3becffd (patch) | |
tree | 0561e3c9b0887ea60fce9aaf3e511a3eb3f6c9f3 | |
parent | 8ef9cb0bedd88177c7880f7441df77a989b7b046 (diff) | |
download | samba-1570058b0d8754e8cc3f4e949eb2365df3becffd.tar.gz samba-1570058b0d8754e8cc3f4e949eb2365df3becffd.tar.bz2 samba-1570058b0d8754e8cc3f4e949eb2365df3becffd.zip |
build: added subdir option for module building
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 86eb730d5d..bc722d59c4 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -371,6 +371,7 @@ def SAMBA_MODULE(bld, modname, source, internal_module=True, local_include=True, vars=None, + subdir=None, enabled=True, pyembed=False, allow_undefined_symbols=False @@ -378,6 +379,8 @@ def SAMBA_MODULE(bld, modname, source, '''define a Samba module.''' source = bld.EXPAND_VARIABLES(source, vars=vars) + if subdir: + source = bld.SUBDIR(subdir, source) if internal_module or BUILTIN_LIBRARY(bld, modname): bld.SAMBA_SUBSYSTEM(modname, source, |