summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-26 19:51:40 +0200
committerGünther Deschner <gd@samba.org>2010-09-27 00:39:37 +0200
commitd7d33317c78c0f15b016bd217ae853dc02d71e2d (patch)
tree64e268426a8f9cef1027124f3b5be6ed0544665d /source3
parentfa8971d90f4f989692e363696b44976d3aae2a65 (diff)
downloadsamba-d7d33317c78c0f15b016bd217ae853dc02d71e2d.tar.gz
samba-d7d33317c78c0f15b016bd217ae853dc02d71e2d.tar.bz2
samba-d7d33317c78c0f15b016bd217ae853dc02d71e2d.zip
s3-waf: move pdb subsystem to pdb/wscript_build.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/wscript_build48
-rw-r--r--source3/wscript_build53
2 files changed, 51 insertions, 50 deletions
diff --git a/source3/passdb/wscript_build b/source3/passdb/wscript_build
new file mode 100644
index 0000000000..17b488a0f7
--- /dev/null
+++ b/source3/passdb/wscript_build
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+
+PDB_STATIC = ''
+PDB_TDBSAM_SRC = 'pdb_tdb.c'
+PDB_LDAP_SRC = 'pdb_ldap.c pdb_nds.c'
+PDB_ADS_SRC = 'pdb_ads.c'
+PDB_SMBPASSWD_SRC = 'pdb_smbpasswd.c'
+PDB_WBC_SAM_SRC = 'pdb_wbc_sam.c'
+
+bld.SAMBA_SUBSYSTEM('PDB',
+ source='',
+ deps='''PDB_TDBSAM PDB_LDAP PDB_ADS PDB_SMBPASSWD PDB_WBC_SAM''',
+ vars=locals())
+
+bld.SAMBA_MODULE('PDB_TDBSAM',
+ subsystem='PDB',
+ source=PDB_TDBSAM_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('PDB_TDBSAM'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('PDB_TDBSAM'))
+
+bld.SAMBA_MODULE('PDB_LDAP',
+ subsystem='PDB',
+ source=PDB_LDAP_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('PDB_LDAP'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('PDB_LDAP'))
+
+bld.SAMBA_MODULE('PDB_ADS',
+ subsystem='PDB',
+ source=PDB_ADS_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('PDB_ADS'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('PDB_ADS'))
+
+bld.SAMBA_MODULE('PDB_SMBPASSWD',
+ subsystem='PDB',
+ source=PDB_SMBPASSWD_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('PDB_SMBPASSWD'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('PDB_SMBPASSWD'))
+
+bld.SAMBA_MODULE('PDB_WBC_SAM',
+ subsystem='PDB',
+ source=PDB_WBC_SAM_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('PDB_WBC_SAM'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('PDB_WBC_SAM'))
diff --git a/source3/wscript_build b/source3/wscript_build
index 044f869d37..36bc8e6b8f 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -484,17 +484,10 @@ PRIVILEGES_SRC = '''lib/privileges.c'''
PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
-PDB_STATIC = ''
-PDB_TDBSAM_SRC = 'passdb/pdb_tdb.c'
-PDB_LDAP_SRC = 'passdb/pdb_ldap.c passdb/pdb_nds.c'
-PDB_ADS_SRC = 'passdb/pdb_ads.c'
-PDB_SMBPASSWD_SRC = 'passdb/pdb_smbpasswd.c'
-PDB_WBC_SAM_SRC = 'passdb/pdb_wbc_sam.c'
-
PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
passdb/util_unixsids.c passdb/lookup_sid.c
- passdb/login_cache.c ${PDB_STATIC}
+ passdb/login_cache.c
passdb/account_pol.c ${PRIVILEGES_SRC}
lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
#FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
@@ -1163,46 +1156,6 @@ bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
deps='talloc',
local_include=False)
-bld.SAMBA_SUBSYSTEM('PDB',
- source='',
- deps='''PDB_TDBSAM PDB_LDAP PDB_ADS PDB_SMBPASSWD PDB_WBC_SAM''',
- vars=locals())
-
-bld.SAMBA_MODULE('PDB_TDBSAM',
- subsystem='PDB',
- source=PDB_TDBSAM_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('PDB_LDAP',
- subsystem='PDB',
- source=PDB_LDAP_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('PDB_ADS',
- subsystem='PDB',
- source=PDB_ADS_SRC,
- init_function='',
- internal_module=True,
- enabled=False) #fixme
-
-bld.SAMBA_MODULE('PDB_SMBPASSWD',
- subsystem='PDB',
- source=PDB_SMBPASSWD_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('PDB_WBC_SAM',
- subsystem='PDB',
- source=PDB_WBC_SAM_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
bld.SAMBA_SUBSYSTEM('IDMAP',
source=IDMAP_SRC,
deps='''IDMAP_AD IDMAP_RID IDMAP_PASSDB IDMAP_LDAP IDMAP_TDB2 IDMAP_HASH IDMAP_ADEX''',
@@ -1349,8 +1302,7 @@ bld.SAMBA_SUBSYSTEM('TLDAP',
bld.SAMBA_SUBSYSTEM('PASSDB',
source=PASSDB_SRC,
- deps='''GROUPDB TLDAP SECRETS SMBLDAP PDB_SMBPASSWD
- PDB_TDBSAM PDB_WBC_SAM PDB_LDAP''',
+ deps='''GROUPDB TLDAP SECRETS SMBLDAP PDB''',
vars=locals())
bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
@@ -1820,6 +1772,7 @@ bld.RECURSE('../lib/iniparser/src')
bld.RECURSE('../lib/crypto')
bld.RECURSE('modules')
bld.RECURSE('auth')
+bld.RECURSE('passdb')
bld.ENFORCE_GROUP_ORDERING()
bld.CHECK_PROJECT_RULES()