1 # functions to support third party libraries
5 from Configure
import conf
8 def CHECK_FOR_THIRD_PARTY(conf
):
9 return os
.path
.exists(os
.path
.join(Utils
.g_module
.srcdir
, 'third_party'))
11 Build
.BuildContext
.CHECK_FOR_THIRD_PARTY
= CHECK_FOR_THIRD_PARTY
16 #if (ZLIB_VERNUM >= 0x1230)
18 #error "ZLIB_VERNUM < 0x1230"
23 return conf
.CHECK_BUNDLED_SYSTEM('z', minversion
='1.2.3', pkg
='zlib',
24 checkfunctions
='zlibVersion',
26 checkcode
=version_check
,
27 implied_deps
='replace')
29 Build
.BuildContext
.CHECK_ZLIB
= CHECK_ZLIB
33 return conf
.CHECK_BUNDLED_SYSTEM('popt', checkfunctions
='poptGetContext', headers
='popt.h')
35 Build
.BuildContext
.CHECK_POPT
= CHECK_POPT
38 def CHECK_CMOCKA(conf
):
39 return conf
.CHECK_BUNDLED_SYSTEM_PKG('cmocka', minversion
='1.1.1')
41 Build
.BuildContext
.CHECK_CMOCKA
= CHECK_CMOCKA