summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wscript
blob: f51c3d001f6c67d061f12c0ab2925720d7619ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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)