summaryrefslogtreecommitdiffstats
path: root/lib/audit_logging/wscript_build
blob: 125c94bad90fcdf87af3a00f22c6586f2a4f4898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python

bld.SAMBA_SUBSYSTEM(
    'audit_logging',
    deps='''MESSAGING_SEND
            jansson
            samba-debug
            LIBTSOCKET''',
    source='audit_logging.c'
)

if bld.AD_DC_BUILD_IS_ENABLED():
    bld.SAMBA_BINARY(
        'audit_logging_test',
        source='tests/audit_logging_test.c',
        deps='''
             audit_logging
             jansson
             cmocka
             talloc
             samba-util
             LIBTSOCKET
        ''',
        for_selftest=True
    )

if bld.AD_DC_BUILD_IS_ENABLED():
    bld.SAMBA_BINARY(
        'audit_logging_error_test',
        source='tests/audit_logging_error_test.c',
        deps='''
             audit_logging
             jansson
             cmocka
             talloc
             samba-util
             LIBTSOCKET
        ''',
        for_selftest=True,
        ldflags='''
            -Wl,--wrap,json_object_set_new
            -Wl,--wrap,json_object_update
            -Wl,--wrap,json_array_append_new
            -Wl,--wrap,json_array_extend
            -Wl,--wrap,json_object
            -Wl,--wrap,json_string
            -Wl,--wrap,json_integer
            -Wl,--wrap,json_array
            -Wl,--wrap,json_dumps
            -Wl,--wrap,gettimeofday
            -Wl,--wrap,localtime
            -Wl,--wrap,talloc_named_const
            -Wl,--wrap,talloc_strdup
            -Wl,--wrap,tsocket_address_string
        '''
    )