File: wscript_build

package info (click to toggle)
samba 2%3A4.23.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,188 kB
  • sloc: ansic: 2,007,646; python: 272,677; sh: 72,350; xml: 51,676; perl: 36,094; makefile: 6,353; yacc: 5,324; exp: 1,582; lex: 1,504; cpp: 1,224; awk: 589; java: 119; csh: 58; pascal: 54; sed: 45; asm: 30
file content (86 lines) | stat: -rw-r--r-- 2,573 bytes parent folder | download | duplicates (4)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python


parser_cflags = ''
if bld.CONFIG_SET('HAVE_WNO_UNUSED_BUT_SET_VARIABLE'):
    # Suppress error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable]
    #                 for the generated code.
    parser_cflags += ' -Wno-error=unused-but-set-variable'
bld.SAMBA_LIBRARY('samba-security',
                  source=['dom_sid.c',
                          'display_sec.c', 'secace.c', 'secacl.c',
                          'security_descriptor.c', 'sddl.c', 'privileges.c',
                          'security_token.c', 'access_check.c',
                          'object_tree.c', 'create_descriptor.c',
                          'util_sid.c', 'session.c', 'secdesc.c',
                          'conditional_ace.c', 'sddl_conditional_ace.c',
                          'claims-conversions.c',
                          'claims_transformation.l',
                          'claims_transformation.y',
                  ],
                  cflags=parser_cflags,
                  private_library=True,
                  deps='stable_sort talloc ndr NDR_SECURITY NDR_CONDITIONAL_ACE')

bld.SAMBA_LIBRARY('samba-security-trusts',
                  source='''
                      trust_forest_info.c
                  ''',
                  deps='''
                      talloc
                      samba-util
                      samba-security
                      ndr-samba
                  ''',
                  private_library=True)

pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyrpc_util = bld.pyembed_libname('pyrpc_util')
bld.SAMBA_PYTHON('pysecurity',
                 source='pysecurity.c',
                 deps='samba-security %s %s' % (pytalloc_util, pyrpc_util),
                 realname='samba/security.so'
                 )

bld.SAMBA_BINARY(
    'test_sddl_conditional_ace',
    source='tests/test_sddl_conditional_ace.c',
    deps='''
        cmocka
        talloc
        samba-util
        asn1util
        NDR_SECURITY
        samba-security
    ''',
    for_selftest=True
)

bld.SAMBA_BINARY(
    'test_run_conditional_ace',
    source='tests/test_run_conditional_ace.c',
    deps='''
        cmocka
        talloc
        samba-util
        asn1util
        NDR_SECURITY
        samba-security
    ''',
    for_selftest=True
)

bld.SAMBA_BINARY(
    'test_claim_conversion',
    source='tests/test_claim_conversion.c',
    deps='''
        cmocka
        talloc
        samba-util
        asn1util
        NDR_SECURITY
        NDR_CLAIMS
        samba-security
    ''',
    for_selftest=True
)