auth/wscript: import from waflib
[samba.git] / lib / audit_logging / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM(
4     'audit_logging',
5     deps='''MESSAGING_SEND
6             jansson
7             samba-debug
8             LIBTSOCKET''',
9     source='audit_logging.c'
10 )
11
12 if bld.AD_DC_BUILD_IS_ENABLED() and bld.CONFIG_GET('ENABLE_SELFTEST'):
13     bld.SAMBA_BINARY(
14         'audit_logging_test',
15         source='tests/audit_logging_test.c',
16         deps='''
17              audit_logging
18              jansson
19              cmocka
20              talloc
21              samba-util
22              LIBTSOCKET
23         ''',
24         install=False
25     )
26
27 if bld.AD_DC_BUILD_IS_ENABLED() and bld.CONFIG_GET('ENABLE_SELFTEST'):
28     bld.SAMBA_BINARY(
29         'audit_logging_error_test',
30         source='tests/audit_logging_error_test.c',
31         deps='''
32              audit_logging
33              jansson
34              cmocka
35              talloc
36              samba-util
37              LIBTSOCKET
38         ''',
39         install=False,
40         ldflags='''
41             -Wl,--wrap,json_object_set_new
42             -Wl,--wrap,json_object_update
43             -Wl,--wrap,json_array_append_new
44             -Wl,--wrap,json_array_extend
45             -Wl,--wrap,json_object
46             -Wl,--wrap,json_string
47             -Wl,--wrap,json_integer
48             -Wl,--wrap,json_array
49             -Wl,--wrap,json_dumps
50             -Wl,--wrap,gettimeofday
51             -Wl,--wrap,localtime
52             -Wl,--wrap,talloc_named_const
53             -Wl,--wrap,talloc_strdup
54             -Wl,--wrap,tsocket_address_string
55         '''
56     )