9e0ac281cc6b28c370415255d9145abfe11331c5
[nivanova/samba-autobuild/.git] / source4 / dsdb / samdb / ldb_modules / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('dsdb-module',
4         source=[],
5         deps='DSDB_MODULE_HELPERS DSDB_MODULE_HELPER_RIDALLOC',
6         private_library=True,
7         grouping_library=True)
8
9 bld.SAMBA_SUBSYSTEM('DSDB_MODULE_HELPERS',
10         source='util.c acl_util.c schema_util.c netlogon.c',
11         autoproto='util_proto.h',
12         deps='ldb ndr samdb-common samba-security'
13         )
14
15 bld.SAMBA_SUBSYSTEM('DSDB_MODULE_HELPER_RIDALLOC',
16         source='ridalloc.c',
17         autoproto='ridalloc.h',
18         deps='MESSAGING',
19         )
20
21 # Build the cmocka unit tests
22 bld.SAMBA_BINARY('test_unique_object_sids',
23         source='tests/test_unique_object_sids.c',
24         deps='''
25             talloc
26             samdb
27             cmocka
28             DSDB_MODULE_HELPERS
29         ''',
30         install=False)
31 bld.SAMBA_BINARY('test_encrypted_secrets',
32         source='tests/test_encrypted_secrets.c',
33         deps='''
34             talloc
35             samba-util
36             samdb-common
37             samdb
38             cmocka
39             gnutls
40             DSDB_MODULE_HELPERS
41         ''',
42         install=False)
43
44 if bld.AD_DC_BUILD_IS_ENABLED():
45     bld.PROCESS_SEPARATE_RULE("server")