lib: Avoid memcpy in debug_systemd_log()
[Samba.git] / buildtools / wafsamba / samba_third_party.py
blob52898486fd9a15d5d7c90c147079e4da72c7ad3e
1 # functions to support third party libraries
3 import os
4 from waflib import Utils, Build, Context
5 from waflib.Configure import conf
7 @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
13 @conf
14 def CHECK_POPT(conf):
15 return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
17 Build.BuildContext.CHECK_POPT = CHECK_POPT
19 @conf
20 def CHECK_CMOCKA(conf):
21 return conf.CHECK_BUNDLED_SYSTEM_PKG('cmocka', minversion='1.1.3')
23 Build.BuildContext.CHECK_CMOCKA = CHECK_CMOCKA
25 @conf
26 def CHECK_SOCKET_WRAPPER(conf):
27 return conf.CHECK_BUNDLED_SYSTEM_PKG('socket_wrapper', minversion='1.4.2')
28 Build.BuildContext.CHECK_SOCKET_WRAPPER = CHECK_SOCKET_WRAPPER
30 @conf
31 def CHECK_NSS_WRAPPER(conf):
32 return conf.CHECK_BUNDLED_SYSTEM_PKG('nss_wrapper', minversion='1.1.15')
33 Build.BuildContext.CHECK_NSS_WRAPPER = CHECK_NSS_WRAPPER
35 @conf
36 def CHECK_RESOLV_WRAPPER(conf):
37 return conf.CHECK_BUNDLED_SYSTEM_PKG('resolv_wrapper', minversion='1.1.8')
38 Build.BuildContext.CHECK_RESOLV_WRAPPER = CHECK_RESOLV_WRAPPER
40 @conf
41 def CHECK_UID_WRAPPER(conf):
42 return conf.CHECK_BUNDLED_SYSTEM_PKG('uid_wrapper', minversion='1.3.0')
43 Build.BuildContext.CHECK_UID_WRAPPER = CHECK_UID_WRAPPER
45 @conf
46 def CHECK_PAM_WRAPPER(conf):
47 return conf.CHECK_BUNDLED_SYSTEM_PKG('pam_wrapper', minversion='1.1.4')
48 Build.BuildContext.CHECK_PAM_WRAPPER = CHECK_PAM_WRAPPER