From: Jelmer Vernooij Date: Sat, 9 Jan 2016 20:25:17 +0000 (+0000) Subject: Simplify handling of dependencies on external libraries in test_headers. X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=3123e2c66a29aaabad7408107bcf4a0e841a93ec Simplify handling of dependencies on external libraries in test_headers. Signed-off-by: Jelmer Vernooij --- diff --git a/testsuite/headers/wscript_build b/testsuite/headers/wscript_build index d0625a0fcb8..64b10ba6e41 100644 --- a/testsuite/headers/wscript_build +++ b/testsuite/headers/wscript_build @@ -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')