1 # functions to support third party libraries
4 from waflib import Utils, Build, Context
5 from waflib.Configure import conf
8 def CHECK_FOR_THIRD_PARTY(conf):
9 return os.path.exists(os.path.join(Context.g_module.top, 'third_party'))
11 Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
15 return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
17 Build.BuildContext.CHECK_POPT = CHECK_POPT
20 def CHECK_CMOCKA(conf):
21 return conf.CHECK_BUNDLED_SYSTEM_PKG('cmocka', minversion='1.1.3')
23 Build.BuildContext.CHECK_CMOCKA = CHECK_CMOCKA
26 def CHECK_SOCKET_WRAPPER(conf):
27 return conf.CHECK_BUNDLED_SYSTEM_PKG('socket_wrapper', minversion='1.2.5')
28 Build.BuildContext.CHECK_SOCKET_WRAPPER = CHECK_SOCKET_WRAPPER
31 def CHECK_NSS_WRAPPER(conf):
32 return conf.CHECK_BUNDLED_SYSTEM_PKG('nss_wrapper', minversion='1.1.11')
33 Build.BuildContext.CHECK_NSS_WRAPPER = CHECK_NSS_WRAPPER
36 def CHECK_RESOLV_WRAPPER(conf):
37 return conf.CHECK_BUNDLED_SYSTEM_PKG('resolv_wrapper', minversion='1.1.6')
38 Build.BuildContext.CHECK_RESOLV_WRAPPER = CHECK_RESOLV_WRAPPER
41 def CHECK_UID_WRAPPER(conf):
42 return conf.CHECK_BUNDLED_SYSTEM_PKG('uid_wrapper', minversion='1.2.7')
43 Build.BuildContext.CHECK_UID_WRAPPER = CHECK_UID_WRAPPER
46 def CHECK_PAM_WRAPPER(conf):
47 return conf.CHECK_BUNDLED_SYSTEM_PKG('pam_wrapper', minversion='1.1.2')
48 Build.BuildContext.CHECK_PAM_WRAPPER = CHECK_PAM_WRAPPER