From 1570058b0d8754e8cc3f4e949eb2365df3becffd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 15 Feb 2011 16:16:54 +1100 Subject: build: added subdir option for module building Pair-Programmed-With: Andrew Bartlett --- buildtools/wafsamba/wafsamba.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildtools/wafsamba') 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, -- cgit