From 239cdb53f4e994c8fd4afe1233e69b93ad632230 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Mar 2010 16:23:10 -0600 Subject: build: support variable expansion in source= arguments to build rules This makes it much easier to follow the s3 approach to lists of source files in the top level wscript Pair-Programmed-With: Kai Blin --- buildtools/wafsamba/samba_python.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildtools/wafsamba/samba_python.py') diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index 7536250d0d..9a887a80a5 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -14,6 +14,7 @@ def SAMBA_PYTHON(bld, name, includes='', init_function_sentinal=None, local_include=True, + vars=None, enabled=True): '''build a python extension for Samba''' @@ -22,6 +23,8 @@ def SAMBA_PYTHON(bld, name, if init_function_sentinal is not None: cflags += '-DSTATIC_LIBPYTHON_MODULES=%s' % init_function_sentinal + source = bld.EXPAND_VARIABLES(source, vars=vars) + if realname is None: # a SAMBA_PYTHON target without a realname is just a # subsystem with needs_python=True -- cgit