0b2897e694
refs: #4641 Change-Id: Iabed3ad7632544d97559e6798547b7972b416784
23 lines
508 B
Python
23 lines
508 B
Python
top = '..'
|
|
|
|
def build(bld):
|
|
if not bld.env['WITH_TESTS']:
|
|
return
|
|
|
|
bld(
|
|
features='cxx',
|
|
name='unit-tests-main',
|
|
target='unit-tests-main',
|
|
source='main.cpp',
|
|
defines=['BOOST_TEST_MODULE=PSync Unit Tests'],
|
|
use='PSync'
|
|
)
|
|
|
|
bld.program(
|
|
target='../unit-tests',
|
|
features='cxx cxxprogram',
|
|
source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']),
|
|
use='PSync unit-tests-main',
|
|
install_path=None,
|
|
)
|