summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-10 21:22:02 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-11 01:06:36 +0200
commitea6a3f5c485ebc82c6c7cfd6b2a3451a75676cfb (patch)
tree1f3d96c06c73f571349ffdcf9cb199c3a70dc09b /buildtools/wafsamba
parentffd7cee150527fbbfe29b5f9d30c1aec2137e392 (diff)
downloadsamba-ea6a3f5c485ebc82c6c7cfd6b2a3451a75676cfb.tar.gz
samba-ea6a3f5c485ebc82c6c7cfd6b2a3451a75676cfb.tar.bz2
samba-ea6a3f5c485ebc82c6c7cfd6b2a3451a75676cfb.zip
wafsamba: Support setting pyembed on libraries.
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/wafsamba.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 02bb966574..414fdc61fc 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -322,7 +322,9 @@ def SAMBA_MODULE(bld, modname, source,
internal_module=True,
local_include=True,
vars=None,
- enabled=True):
+ enabled=True,
+ pyembed=True,
+ ):
'''define a Samba module.'''
source = bld.EXPAND_VARIABLES(source, vars=vars)
@@ -378,7 +380,8 @@ def SAMBA_MODULE(bld, modname, source,
local_include=local_include,
vars=vars,
link_name=build_link_name,
- install_path="${MODULESDIR}/%s" % subsystem
+ install_path="${MODULESDIR}/%s" % subsystem,
+ pyembed=pyembed,
)
Build.BuildContext.SAMBA_MODULE = SAMBA_MODULE
@@ -406,7 +409,8 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
use_global_deps=True,
vars=None,
hide_symbols=False,
- pyembed=False):
+ pyembed=False,
+ pyext=False):
'''define a Samba subsystem'''
if not enabled:
@@ -431,6 +435,8 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
features = 'cc'
if pyembed:
features += ' pyembed'
+ if pyext:
+ features += ' pyext'
t = bld(
features = features,