dsdb: Audit group membership changes
[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 audit_util.c',
11         autoproto='util_proto.h',
12         deps='ldb ndr samdb-common samba-security audit_logging'
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 #
45 # These tests require JANSSON, so we only build them if we are doing a selftest
46 # build.
47 #
48 if bld.CONFIG_GET('ENABLE_SELFTEST'):
49     bld.SAMBA_BINARY('test_audit_util',
50             source='tests/test_audit_util.c',
51             deps='''
52                 talloc
53                 samba-util
54                 samdb-common
55                 samdb
56                 cmocka
57                 audit_logging
58                 DSDB_MODULE_HELPERS
59             ''',
60             install=False)
61     bld.SAMBA_BINARY('test_audit_log',
62             source='tests/test_audit_log.c',
63             deps='''
64                 talloc
65                 samba-util
66                 samdb-common
67                 samdb
68                 cmocka
69                 audit_logging
70                 DSDB_MODULE_HELPERS
71             ''',
72             install=False)
73     bld.SAMBA_BINARY('test_group_audit',
74             source='tests/test_group_audit.c',
75             deps='''
76                 talloc
77                 samba-util
78                 samdb-common
79                 samdb
80                 cmocka
81                 audit_logging
82                 DSDB_MODULE_HELPERS
83             ''',
84             install=False)
85
86 if bld.AD_DC_BUILD_IS_ENABLED():
87     bld.PROCESS_SEPARATE_RULE("server")