Skip to content

Commit

Permalink
waf: Add possibility to build with system libwbclient.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptomilk committed Apr 17, 2012
1 parent e3ffb31 commit 2c49782
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
28 changes: 28 additions & 0 deletions nsswitch/libwbclient/wscript
Original file line number Diff line number Diff line change
@@ -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')
9 changes: 0 additions & 9 deletions nsswitch/libwbclient/wscript_build

This file was deleted.

1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def configure(conf):
conf.RECURSE('source4/auth')
conf.RECURSE('lib/nss_wrapper')
conf.RECURSE('nsswitch')
conf.RECURSE('nsswitch/libwbclient')
conf.RECURSE('lib/socket_wrapper')
conf.RECURSE('lib/uid_wrapper')
conf.RECURSE('lib/popt')
Expand Down

0 comments on commit 2c49782

Please sign in to comment.