summaryrefslogtreecommitdiffstats
path: root/lib/cmdline/wscript
blob: 01ead85e2c48c2f51c169e6bf98fea446a370bf1 (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
#!/usr/bin/env python

import os
import sys
from waflib import Logs

def build(bld):
    bld.SAMBA_LIBRARY('cmdline',
                      source='''
                          cmdline.c
                          closefrom_except.c
                      ''',
                      deps='''
                           talloc
                           cli_smb_common
                           samba-hostconfig
                           samba-credentials
                           CREDENTIALS_CMDLINE
                           popt
                           ''',
                      private_library=True)

    bld.SAMBA_SUBSYSTEM('CMDLINE_S3',
                        source='cmdline_s3.c',
                        deps='cmdline secrets3')

    bld.SAMBA_SUBSYSTEM('CMDLINE_S4',
                        source='cmdline_s4.c',
                        deps='cmdline')

    bld.SAMBA_BINARY('test_cmdline',
                     source='tests/test_cmdline.c',
                     deps='cmocka CMDLINE_S3 LOADPARM_CTX',
                     local_include=False,
                     for_selftest=True)