summaryrefslogtreecommitdiff
path: root/lib/talloc/wscript
blob: 36d61c005a53bb830f5019848f32d95e056f30fe (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
srcdir = '.'
blddir = 'build'

def set_options(opt):
    opt.recurse('../replace')

def configure(conf):
    conf.recurse('../replace')

def build(bld):
    bld.recurse('../replace')

    bld(
        features = 'cc cshlib',
        source = 'talloc.c',
        target='talloc',
        includes = '. ../replace default /usr/include')

    # test program
    bld(
        features = 'cc cprogram',
        source = 'testsuite.c testsuite_main.c',
        target = 'talloc_testsuite',
        uselib_local = 'replace talloc',
        includes = '. ../replace default /usr/include')