2014-07-17 18:04:35 -04:00
# functions to support third party libraries
2015-10-27 20:46:46 +01:00
import os
2018-01-31 11:48:43 +02:00
from waflib import Utils , Build , Context
from waflib . Configure import conf
2014-07-17 18:04:35 -04:00
@conf
def CHECK_FOR_THIRD_PARTY ( conf ) :
2018-06-27 15:03:08 +03:00
return os . path . exists ( os . path . join ( Context . g_module . top , ' third_party ' ) )
2014-07-17 18:04:35 -04:00
Build . BuildContext . CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
2014-07-22 21:34:17 -07:00
@conf
def CHECK_POPT ( conf ) :
return conf . CHECK_BUNDLED_SYSTEM ( ' popt ' , checkfunctions = ' poptGetContext ' , headers = ' popt.h ' )
Build . BuildContext . CHECK_POPT = CHECK_POPT
2017-04-07 15:44:22 +02:00
@conf
def CHECK_CMOCKA ( conf ) :
2018-09-04 17:50:15 +02:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' cmocka ' , minversion = ' 1.1.3 ' )
2017-04-07 15:44:22 +02:00
Build . BuildContext . CHECK_CMOCKA = CHECK_CMOCKA
2017-11-07 10:51:11 +01:00
@conf
def CHECK_SOCKET_WRAPPER ( conf ) :
2024-06-13 07:47:26 +02:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' socket_wrapper ' , minversion = ' 1.4.3 ' )
2017-11-07 10:51:11 +01:00
Build . BuildContext . CHECK_SOCKET_WRAPPER = CHECK_SOCKET_WRAPPER
2017-11-07 11:40:11 +01:00
@conf
def CHECK_NSS_WRAPPER ( conf ) :
2024-07-05 13:09:53 +02:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' nss_wrapper ' , minversion = ' 1.1.16 ' )
2017-11-07 11:40:11 +01:00
Build . BuildContext . CHECK_NSS_WRAPPER = CHECK_NSS_WRAPPER
2017-11-07 11:55:04 +01:00
@conf
def CHECK_RESOLV_WRAPPER ( conf ) :
2022-12-21 08:42:49 +01:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' resolv_wrapper ' , minversion = ' 1.1.8 ' )
2017-11-07 11:55:04 +01:00
Build . BuildContext . CHECK_RESOLV_WRAPPER = CHECK_RESOLV_WRAPPER
2017-11-07 12:02:19 +01:00
@conf
def CHECK_UID_WRAPPER ( conf ) :
2024-06-13 07:41:41 +02:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' uid_wrapper ' , minversion = ' 1.3.1 ' )
2017-11-07 12:02:19 +01:00
Build . BuildContext . CHECK_UID_WRAPPER = CHECK_UID_WRAPPER
2017-11-24 13:34:25 +01:00
@conf
def CHECK_PAM_WRAPPER ( conf ) :
2024-07-23 10:41:30 +02:00
return conf . CHECK_BUNDLED_SYSTEM_PKG ( ' pam_wrapper ' , minversion = ' 1.1.7 ' )
2017-11-24 13:34:25 +01:00
Build . BuildContext . CHECK_PAM_WRAPPER = CHECK_PAM_WRAPPER