diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-21 13:55:58 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:34 +1000 |
commit | 04aa584c02cdbad4b8bc23d3108953120b226a69 (patch) | |
tree | 8d132da0bd619ba3702d4fc798bef498d3be07cc /source4 | |
parent | 8f062f4a0f781b351e361ce07d0701f312069851 (diff) | |
download | samba-04aa584c02cdbad4b8bc23d3108953120b226a69.tar.gz samba-04aa584c02cdbad4b8bc23d3108953120b226a69.tar.bz2 samba-04aa584c02cdbad4b8bc23d3108953120b226a69.zip |
build: added target directory options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/wscript | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript new file mode 100644 index 0000000000..cab5388a94 --- /dev/null +++ b/source4/lib/ldb/wscript @@ -0,0 +1,43 @@ +srcdir = '.' +blddir = 'build' + +LIBTDB_DIR='../../../lib/tdb' +LIBTALLOC_DIR='../../../lib/talloc' + +def set_options(opt): + opt.recurse(LIBTDB_DIR) + opt.recurse(LIBTALLOC_DIR) + +def configure(conf): + conf.sub_config(LIBTDB_DIR) + conf.sub_config(LIBTALLOC_DIR) + conf.SAMBA_CONFIG_H() + +def build(bld): + bld.add_subdirs(LIBTDB_DIR) + bld.add_subdirs(LIBTALLOC_DIR) + + LDB_TDB_SRC = bld.SUBDIR('ldb_tdb', + '''ldb_tdb.c ldb_pack.c ldb_search.c ldb_index.c + ldb_cache.c ldb_tdb_wrap.c''') + print "LDB_TDB_SRC=%s" % LDB_TDB_SRC + + LDB_MAP_SRC = bld.SUBDIR('ldb_map', + 'ldb_map.c ldb_map_inbound.c ldb_map_outbound.c') + + COMMON_SRC = bld.SUBDIR('common', + '''ldb.c ldb_ldif.c ldb_parse.c ldb_msg.c ldb_utf8.c + ldb_debug.c ldb_modules.c ldb_dn.c ldb_match.c + ldb_attributes.c attrib_handlers.c ldb_controls.c qsort.c''') + + MODULES_SRC = bld.SUBDIR('modules', + 'rdn_name.c asq.c paged_results.c sort.c') + + bld.SAMBA_LIBRARY('ldb', + LDB_TDB_SRC + ' ' + COMMON_SRC + ' ' + MODULES_SRC, + 'tdb talloc', + 'include') + + bld.SAMBA_BINARY('ldbadd', + 'tools/ldbadd.c', + 'ldb') |