mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
waf: Add possibility to build with system libwbclient.
This commit is contained in:
parent
e3ffb31554
commit
2c49782dc1
28
nsswitch/libwbclient/wscript
Normal file
28
nsswitch/libwbclient/wscript
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import Options, Logs
|
||||||
|
|
||||||
|
def configure(conf):
|
||||||
|
if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion='0'):
|
||||||
|
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='0')
|
@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
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='0'
|
|
||||||
)
|
|
1
wscript
1
wscript
@ -95,6 +95,7 @@ def configure(conf):
|
|||||||
conf.RECURSE('source4/auth')
|
conf.RECURSE('source4/auth')
|
||||||
conf.RECURSE('lib/nss_wrapper')
|
conf.RECURSE('lib/nss_wrapper')
|
||||||
conf.RECURSE('nsswitch')
|
conf.RECURSE('nsswitch')
|
||||||
|
conf.RECURSE('nsswitch/libwbclient')
|
||||||
conf.RECURSE('lib/socket_wrapper')
|
conf.RECURSE('lib/socket_wrapper')
|
||||||
conf.RECURSE('lib/uid_wrapper')
|
conf.RECURSE('lib/uid_wrapper')
|
||||||
conf.RECURSE('lib/popt')
|
conf.RECURSE('lib/popt')
|
||||||
|
Loading…
Reference in New Issue
Block a user