From: Andrew Tridgell Date: Tue, 15 Feb 2011 05:16:54 +0000 (+1100) Subject: build: added subdir option for module building X-Git-Tag: tevent-0.9.11~537 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1570058b0d8754e8cc3f4e949eb2365df3becffd;p=thirdparty%2Fsamba.git build: added subdir option for module building Pair-Programmed-With: Andrew Bartlett --- diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 86eb730d5da..bc722d59c4c 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,