mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
d271bf8dc2
The simple fact that this was defined at all, even to false, caused some of the tdb2 build code to run. Andrew Bartlett
26 lines
599 B
Python
26 lines
599 B
Python
#!/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)
|