summaryrefslogtreecommitdiff
path: root/lib/subunit/c/wscript
blob: 3e5311d79f5ca8ec57d80897a61215cd7deff702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

import Options

def configure(conf):
	if conf.CHECK_BUNDLED_SYSTEM('subunit', checkfunctions='subunit_test_start', headers='subunit/child.h'):
		conf.define('USING_SYSTEM_SUBUNIT', 1)

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

	bld.SAMBA_LIBRARY('subunit',
			  source='lib/child.c',
			  private_library=True,
			  includes='include')