3e5311d79f5ca8ec57d80897a61215cd7deff702
[nivanova/samba-autobuild/.git] / lib / subunit / c / wscript
1 #!/usr/bin/env python
2
3 import Options
4
5 def configure(conf):
6         if conf.CHECK_BUNDLED_SYSTEM('subunit', checkfunctions='subunit_test_start', headers='subunit/child.h'):
7                 conf.define('USING_SYSTEM_SUBUNIT', 1)
8
9 def build(bld):
10         if bld.CONFIG_SET('USING_SYSTEM_SUBUNIT'):
11                 return
12
13         bld.SAMBA_LIBRARY('subunit',
14                           source='lib/child.c',
15                           private_library=True,
16                           includes='include')