1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

ldb: only install headers if we are not building as a private lib

This commit is contained in:
Andrew Tridgell 2011-03-03 17:21:45 +11:00
parent c56e3ccfc9
commit 827d020f7e

View File

@ -105,6 +105,7 @@ def build(bld):
deps='ldb pytalloc-util',
source='pyldb_util.c',
public_headers='pyldb.h',
public_headers_install=not private_library,
vnum=VERSION,
private_library=private_library,
pc_files='pyldb-util.pc',
@ -126,6 +127,7 @@ def build(bld):
includes='include',
public_headers='include/ldb.h include/ldb_errors.h '\
'include/ldb_module.h include/ldb_handlers.h',
public_headers_install=not private_library,
pc_files='ldb.pc',
vnum=VERSION,
private_library=private_library,
@ -137,7 +139,8 @@ def build(bld):
t = bld.SAMBA_GENERATOR('ldb_version.h',
rule='echo "#define LDB_VERSION \\"${LDB_VERSION}\\"" > ${TGT}',
target='include/ldb_version.h',
public_headers='include/ldb_version.h')
public_headers='include/ldb_version.h',
public_headers_install=not private_library)
t.env.LDB_VERSION = VERSION
bld.add_manual_dependency(bld.path.find_or_declare('include/ldb_version.h'), VERSION)