summaryrefslogtreecommitdiff
path: root/lib/tdb_compat/wscript
blob: 9e36ced2bc8cf993cf628cd49b5d7b62ba40028c (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
#!/usr/bin/env python

import Options

def set_options(opt):
    opt.RECURSE('lib/tdb2')
    opt.RECURSE('lib/tdb')

def configure(conf):
    if getattr(Options.options, 'BUILD_TDB2', False):
        conf.RECURSE('lib/tdb2')
    else:
        conf.RECURSE('lib/tdb')
    conf.RECURSE('lib/ccan')

def build(bld):
    bld.RECURSE('lib/ccan')
    if bld.env.BUILD_TDB2:
        bld.RECURSE('lib/tdb2')
    else:
        bld.RECURSE('lib/tdb')
    bld.SAMBA_LIBRARY('tdb_compat',
                      source='tdb_compat.c',
		      deps='replace tdb ccan',
                      private_library=True)