Skip to content

Commit

Permalink
ldb: Only set public headers field when installing as a public library.
Browse files Browse the repository at this point in the history
Signed-Off-By: Jelmer Vernooij <[email protected]>
Reviewed-By: Andrew Bartlett <[email protected]>
Reviewed-By: Stefan Metzmacher <[email protected]>
  • Loading branch information
jelmer committed Jan 13, 2016
1 parent 1860e98 commit ce32f26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/ldb/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def build(bld):
bld.SAMBA_LIBRARY(name,
deps='ldb',
source='pyldb_util.c',
public_headers='pyldb.h',
public_headers=('' if private_library else 'pyldb.h'),
public_headers_install=not private_library,
vnum=VERSION,
private_library=private_library,
Expand Down Expand Up @@ -159,12 +159,14 @@ def build(bld):

abi_match = '!ldb_*module_ops !ldb_*backend_ops ldb_*'

ldb_headers = ('include/ldb.h include/ldb_errors.h '
'include/ldb_module.h include/ldb_handlers.h')

bld.SAMBA_LIBRARY('ldb',
COMMON_SRC + ' ' + LDB_MAP_SRC,
deps='tevent LIBLDB_MAIN replace',
includes='include',
public_headers='include/ldb.h include/ldb_errors.h '\
'include/ldb_module.h include/ldb_handlers.h',
public_headers=('' if private_library else ldb_headers),
public_headers_install=not private_library,
pc_files='ldb.pc',
vnum=VERSION,
Expand Down

0 comments on commit ce32f26

Please sign in to comment.