summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-11 01:09:26 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-10 23:54:04 +0000
commit5324b943e72d597da178d362f7c938fe0a4e57b0 (patch)
treefe163168984881467c684c96e03aba82ee618190 /source4
parent2bff55f5deede15d09d2f685f5391e579ad36831 (diff)
downloadsamba-5324b943e72d597da178d362f7c938fe0a4e57b0.tar.gz
samba-5324b943e72d597da178d362f7c938fe0a4e57b0.tar.bz2
samba-5324b943e72d597da178d362f7c938fe0a4e57b0.zip
wafsamba: Fix handling of pyembed/pyext.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/wscript3
-rw-r--r--source4/lib/policy/wscript_build3
-rwxr-xr-xsource4/librpc/wscript_build2
-rw-r--r--source4/param/wscript_build4
-rw-r--r--source4/scripting/python/wscript_build38
-rw-r--r--source4/web_server/wscript_build23
6 files changed, 37 insertions, 36 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index fffd8ce85b..67b25b4545 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -107,8 +107,7 @@ def build(bld):
else:
abi_file = 'ABI/ldb-%s.sigs' % VERSION
- bld.SAMBA_SUBSYSTEM('pyldb_util', deps='ldb',
- source='pyldb_util.c', pyembed=True)
+ bld.SAMBA_SUBSYSTEM('pyldb_util', deps='ldb', source='pyldb_util.c', pyext=True)
if not bld.CONFIG_SET('USING_SYSTEM_LDB'):
modules_dir = bld.EXPAND_VARIABLES('${LDB_MODULESDIR}')
diff --git a/source4/lib/policy/wscript_build b/source4/lib/policy/wscript_build
index aa7feee845..3daa91e007 100644
--- a/source4/lib/policy/wscript_build
+++ b/source4/lib/policy/wscript_build
@@ -5,7 +5,8 @@ bld.SAMBA_LIBRARY('policy',
pc_files='policy.pc',
public_deps='ldb LIBSAMBA-NET',
public_headers='policy.h',
- vnum='0.0.1'
+ vnum='0.0.1',
+ pyembed=True
)
bld.SAMBA_PYTHON('py_policy',
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
index 617387e877..665eb1e10e 100755
--- a/source4/librpc/wscript_build
+++ b/source4/librpc/wscript_build
@@ -174,7 +174,7 @@ bld.SAMBA_LIBRARY('dcerpc',
bld.SAMBA_SUBSYSTEM('pyrpc_util',
source='rpc/pyrpc_util.c',
public_deps='PYTALLOC pyparam_util pycredentials dcerpc',
- pyembed=True,
+ pyext=True,
)
diff --git a/source4/param/wscript_build b/source4/param/wscript_build
index 6532782b85..3595d0be7a 100644
--- a/source4/param/wscript_build
+++ b/source4/param/wscript_build
@@ -14,7 +14,7 @@ bld.SAMBA_LIBRARY('LIBSAMBA-HOSTCONFIG',
bld.SAMBA_SUBSYSTEM('PROVISION',
source='provision.c pyparam.c',
deps='LIBPYTHON pyparam_util ldb PYTALLOC',
- pyembed=True,
+ pyext=True,
)
@@ -57,6 +57,6 @@ bld.SAMBA_PYTHON('param',
bld.SAMBA_SUBSYSTEM('pyparam_util',
source='pyparam_util.c',
deps='LIBPYTHON LIBSAMBA-HOSTCONFIG',
- pyembed=True
+ pyext=True,
)
diff --git a/source4/scripting/python/wscript_build b/source4/scripting/python/wscript_build
index 055edc8f6a..d691d61f73 100644
--- a/source4/scripting/python/wscript_build
+++ b/source4/scripting/python/wscript_build
@@ -1,34 +1,34 @@
#!/usr/bin/env python
bld.SAMBA_SUBSYSTEM('LIBPYTHON',
- source='modules.c',
- public_deps='EXT_LIB_PYTHON',
- init_function_sentinal='{NULL,NULL}',
- pyembed=True,
- deps='talloc',
- )
+ source='modules.c',
+ public_deps='EXT_LIB_PYTHON',
+ init_function_sentinal='{NULL,NULL}',
+ deps='talloc',
+ pyext=True,
+ )
bld.SAMBA_SUBSYSTEM('PYTALLOC',
- source='../../../lib/talloc/pytalloc.c',
- public_deps='EXT_LIB_PYTHON talloc',
- pyembed=True,
-)
+ source='../../../lib/talloc/pytalloc.c',
+ public_deps='EXT_LIB_PYTHON talloc',
+ pyext=True,
+ )
bld.SAMBA_PYTHON('python_uuid',
- source='uuidmodule.c',
- deps='LIBNDR',
- realname='uuid.so',
- enabled = float(bld.env.PYTHON_VERSION) <= 2.4
- )
+ source='uuidmodule.c',
+ deps='LIBNDR',
+ realname='uuid.so',
+ enabled = float(bld.env.PYTHON_VERSION) <= 2.4
+ )
bld.SAMBA_PYTHON('python_glue',
- source='pyglue.c',
- deps='pyparam_util LIBSAMBA-UTIL LIBNETIF PYTALLOC',
- realname='samba/_glue.so'
- )
+ source='pyglue.c',
+ deps='pyparam_util LIBSAMBA-UTIL LIBNETIF PYTALLOC',
+ realname='samba/_glue.so'
+ )
# create a dummy subsystem for EXT_LIB_PYTHON
diff --git a/source4/web_server/wscript_build b/source4/web_server/wscript_build
index dc1c3870dc..eb0f44f4da 100644
--- a/source4/web_server/wscript_build
+++ b/source4/web_server/wscript_build
@@ -2,17 +2,18 @@
bld.SAMBA_SUBSYSTEM('WEB_WSGI',
- source='wsgi.c',
- deps='talloc LIBTSOCKET',
- pyembed=True
- )
+ source='wsgi.c',
+ pyext=True,
+ deps='talloc LIBTSOCKET',
+ )
bld.SAMBA_MODULE('WEB',
- source='web_server.c',
- autoproto='proto.h',
- autoproto_extra_source='wsgi.c',
- subsystem='service',
- init_function='server_service_web_init',
- deps='LIBTLS smbcalls process_model LIBPYTHON WEB_WSGI'
- )
+ source='web_server.c',
+ autoproto='proto.h',
+ autoproto_extra_source='wsgi.c',
+ subsystem='service',
+ init_function='server_service_web_init',
+ deps='LIBTLS smbcalls process_model LIBPYTHON WEB_WSGI',
+ pyembed=True,
+ )