summaryrefslogtreecommitdiff
path: root/lib/iniparser/src/wscript
blob: c66f2980486971b5625d192eafaf5ac7e1d94a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

import Options

def configure(conf):
    conf.CHECK_HEADERS('float.h')

    if conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h'):
        conf.define('USING_SYSTEM_INIPARSER', 1)

def build(bld):
    if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
        return

    bld.SAMBA_LIBRARY('iniparser',
                      source='''../../iniparser_build/iniparser.c
                                ../../iniparser_build/dictionary.c
                                ../../iniparser_build/strlib.c''',
                      cflags='',
                      deps='replace',
                      private_library=True)