summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
blob: 4115593de63dcac734c90448ec2645bb1958168c (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
srcdir = '.'
blddir = 'build'

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

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

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

    COMMON_SOURCE = '''common/check.c common/error.c common/tdb.c common/traverse.c
                       common/freelistcheck.c common/lock.c common/dump.c common/freelist.c
                       common/io.c common/open.c  common/transaction.c'''

    bld.SAMBA_LIBRARY('tdb',
                      COMMON_SOURCE,
                      'replace talloc',
                      'include')

    bld.SAMBA_BINARY('tdbtorture',
                     'tools/tdbtorture.c',
                     'tdb')

    bld.SAMBA_BINARY('tdbdump',
                     'tools/tdbdump.c',
                     'tdb')

    bld.SAMBA_BINARY('tdbbackup',
                     'tools/tdbbackup.c',
                     'tdb')

    bld.SAMBA_BINARY('tdbtool',
                     'tools/tdbtool.c',
                     'tdb')