spiegel-keyman/core/tests/unit/json/meson.build
Eberhard Beilharz ba7589e6b6
fix(core): cleanup include directories
This fixes a meson warning that `common/include` was specified
multiple times (in `core/include/meson.build` and
`core/tests/meson.build`).
2024-10-16 20:42:31 +02:00

19 lines
617 B
Meson

# Copyright: © 2018 SIL International.
# Description: Cross platform build script to compile json unit tests.
# Create Date: 2 Oct 2018
# Authors: Tim Eves (TSE)
#
if cpp_compiler.get_id() == 'emscripten'
tests_flags = ['-lnodefs.js']
else
tests_flags = []
endif
e = executable('jsontest', 'jsontest.cpp',
include_directories: [inc, libsrc],
link_args: links + tests_flags,
objects: lib.extract_objects('jsonpp.cpp'))
test('jsontest', e, args: 'jsontest.json')
test('jsontestOutput', python, is_parallel: false, args:
cmpfiles + ['jsontest.json', join_paths(stnds, 'jsontest.json')])