1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/nsswitch/libwbclient/wscript

32 lines
963 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
import Options, Logs
# Remember to also update wbclient.h
VERSION="0.9"
def configure(conf):
if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion=VERSION):
conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
def build(bld):
if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
Logs.info("\tSelected system libwbclient build")
return
Logs.info("\tSelected embedded libwbclient build")
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',
vnum=VERSION)