1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00

Simplify handling of dependencies on external libraries in test_headers.

Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk>
(cherry picked from commit 3123e2c66a)
This commit is contained in:
Jelmer Vernooij 2016-01-09 20:25:17 +00:00 committed by Karolin Seeger
parent ebed8f3892
commit ad39420d69

View File

@ -24,22 +24,13 @@ bld.SAMBA_GENERATOR('test_headers.h',
source=public_headers,
target='test_headers.h')
cflags=''
for lib in ['talloc', 'tevent', 'tdb', 'ldb', 'popt' ]:
ename = 'CPPPATH_%s' % lib.upper()
for p in bld.env[ename]:
cflags += bld.env.CPPPATH_ST % p + ' '
if not bld.env.USING_SYSTEM_POPT:
cflags += bld.env.CPPPATH_ST % '../third_party/popt'
if bld.env.DEVELOPER_MODE:
bld.SAMBA_BINARY('test_headers',
source='test_headers.c',
includes="#include/public",
pyembed=True,
cflags=cflags,
local_include=True,
global_include=False,
use_global_deps=False,
install=False)
install=False,
deps='talloc tdb ldb tevent popt')