1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/third_party/cmocka/wscript
Andreas Schneider 94b7672d48 third_party: Add cmocka 1.1.1
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Apr 10 11:38:13 CEST 2017 on sn-devel-144
2017-04-10 11:38:13 +02:00

20 lines
450 B
Python

#!/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)