summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch/libwbclient/wscript')
-rw-r--r--nsswitch/libwbclient/wscript28
1 files changed, 28 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wscript b/nsswitch/libwbclient/wscript
new file mode 100644
index 0000000000..8390af19e5
--- /dev/null
+++ b/nsswitch/libwbclient/wscript
@@ -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')