summaryrefslogtreecommitdiff
path: root/third_party/cmocka/wscript
blob: 5ed56c9ceb01faba0fadad4f781ef7154730acc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import Options

def configure(conf):
    conf.CHECK_FUNCS('longjmp siglongjmp')

    if conf.CHECK_CMOCKA():
        conf.define('USING_SYSTEM_CMOCKA', 1)

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

    bld.SAMBA_LIBRARY('cmocka',
                      source='cmocka.c',
                      deps='rt',
                      allow_warnings=True,
                      private_library=True)