bubel-ecs/tests/meson.build
mmcomando 84a5cbef13 Merge branch 'master' into wasm_demos
# Conflicts:
#	demos/external/sources/mmutils/thread_pool.d
#	tests/meson.build
2021-03-13 13:30:58 +01:00

31 lines
634 B
Meson

tests_src = files(
'access_perf.d',
'basic.d',
'bugs.d',
'id_manager.d',
'map.d',
'perf.d',
'runner.d',
'time.d',
'vector.d'
)
if host_machine.cpu_family() != 'wasm32'
exe = executable('decs-tests', tests_src,
include_directories : [inc, '..'],
dependencies : decs_dep,
)
test('basic-tests', exe)
else
tests_lib = library('decs-tests', tests_src,
include_directories : [inc],
)
wasm_web = custom_target('wasm-web',
command: [emcc, args_wasm, '-o', '@OUTPUT@', '@INPUT@'],
input: [ecs_lib, tests_lib],
output: ['index.html'],
build_by_default: true,
)
summary('wasm-index', wasm_web.full_path())
endif