else:
extra_includes += [ '../lib/popt' ]
- if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
- (iniparser_includes, iniparser_ldflags, iniparser_cpppath) = library_flags(bld, 'iniparser')
- extra_includes += iniparser_cpppath
- else:
- extra_includes += [ '../lib/iniparser' ]
-
# s3 builds assume that they will have a bunch of extra include paths
includes = []
for d in extra_includes:
Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
-@conf
-def CHECK_INIPARSER(conf):
- return conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h')
-
-Build.BuildContext.CHECK_INIPARSER = CHECK_INIPARSER
-
@conf
def CHECK_ZLIB(conf):
version_check='''
conf.RECURSE('dynconfig')
if conf.CHECK_FOR_THIRD_PARTY():
- conf.RECURSE('third_party/iniparser/src')
conf.RECURSE('third_party/zlib')
conf.RECURSE('third_party/popt')
else:
- if not conf.CHECK_INIPARSER():
- raise Utils.WafError('iniparser development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
- else:
- conf.define('USING_SYSTEM_INIPARSER', 1)
-
if not conf.CHECK_ZLIB():
raise Utils.WafError('zlib development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
else:
bld.RECURSE('lib/nss_wrapper')
bld.RECURSE('lib/uid_wrapper')
if bld.CHECK_FOR_THIRD_PARTY():
- bld.RECURSE('third_party/iniparser/src')
bld.RECURSE('third_party/zlib')
bld.RECURSE('third_party/popt')
bld.RECURSE('source4/lib/stream')