ae37cf3eab
Also a few cleanups in wscripts Change-Id: Ia5b470d4adcf5697d8c0a31ba1204e5355951308
16 lines
551 B
Python
16 lines
551 B
Python
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
top = '..'
|
|
|
|
def build(bld):
|
|
if not bld.env.WITH_TESTS:
|
|
return
|
|
|
|
tmp_path = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-files')
|
|
bld.program(
|
|
target='../unit-tests',
|
|
name='unit-tests',
|
|
source=bld.path.ant_glob(['*.cpp'] + ['%s/**/*.cpp' % tool for tool in bld.env.BUILD_TOOLS]),
|
|
use=['core-objects'] + ['%s-objects' % tool for tool in bld.env.BUILD_TOOLS],
|
|
defines=[tmp_path],
|
|
install_path=None)
|