2012-04-17 14:34:48 +04:00
#!/usr/bin/env python
import Options, Logs
2012-04-19 08:59:43 +04:00
# Remember to also update wbclient.h
2012-09-21 06:46:31 +04:00
VERSION="0.11"
2012-04-19 08:59:43 +04:00
2012-04-23 09:00:47 +04:00
# It may be useful at some point to allow Samba to build against a
# system libwbclient, such as the one provided by Likewise. To to
# this, not only must the check below be activated but this must only
# be activated with an off-by-default option to disable the internal
# build of both winbindd implementations, and all the internal
# references to libwbclient.h will need to be fixed to point at the
# system libwbclient. Finally, as a system libwbclient would probably
# not use the same version scheme as Samba, so this would need to
# reference Likewise version numbers instead.
#
#def configure(conf):
# if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion=VERSION):
# conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
#
2012-04-17 14:34:48 +04:00
def build(bld):
2012-04-23 09:00:47 +04:00
# if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
# Logs.info("\tSelected system libwbclient build")
# return
#
# Logs.info("\tSelected embedded libwbclient build")
2012-04-17 14:34:48 +04:00
2012-08-10 04:17:31 +04:00
abi_match = 'wbc*'
2012-04-17 14:34:48 +04:00
bld.SAMBA_LIBRARY('wbclient',
source='''
wbc_guid.c
wbc_idmap.c
wbclient.c
wbc_pam.c
wbc_pwd.c
wbc_sid.c
wbc_util.c''',
deps='winbind-client',
pc_files='wbclient.pc',
public_headers='wbclient.h',
2012-08-10 04:17:31 +04:00
abi_directory='ABI',
abi_match=abi_match,
2012-04-19 08:59:43 +04:00
vnum=VERSION)