summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_python.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-24 16:23:10 -0600
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:06 +1000
commit239cdb53f4e994c8fd4afe1233e69b93ad632230 (patch)
tree5cd73c6fe5e79f34a9a37c12696ef492ba9b2894 /buildtools/wafsamba/samba_python.py
parentb2f01b54d21a464fa7fadb784b58909748f80ab3 (diff)
downloadsamba-239cdb53f4e994c8fd4afe1233e69b93ad632230.tar.gz
samba-239cdb53f4e994c8fd4afe1233e69b93ad632230.tar.bz2
samba-239cdb53f4e994c8fd4afe1233e69b93ad632230.zip
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 <kai@samba.org>
Diffstat (limited to 'buildtools/wafsamba/samba_python.py')
-rw-r--r--buildtools/wafsamba/samba_python.py3
1 files changed, 3 insertions, 0 deletions
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