mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
985e83ef52
This is simplistic. We need to support making TDB2 a standalone library, but for now, we simply built it in-tree. Once we have tdb1 compatibility in tdb2, we can rename this option to --enable-tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
28 lines
646 B
Python
28 lines
646 B
Python
#!/usr/bin/env python
|
|
|
|
import Options
|
|
|
|
def set_options(opt):
|
|
opt.RECURSE('lib/tdb2')
|
|
opt.RECURSE('lib/tdb')
|
|
|
|
def configure(conf):
|
|
conf.env.BUILD_TDB2 = getattr(Options.options, 'BUILD_TDB2', False)
|
|
|
|
if conf.env.BUILD_TDB2:
|
|
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)
|