spiegel-keyman/core/tests/unit/json/meson.build
Marc Durdin b5bddc025f chore(core): rename json.hpp to jsonpp.hpp
The name json.hpp conflicts with the JSON for Modern C++ library that
is also used by Developer. Renames json.hpp and json.cpp to jsonpp.hpp
and jsonpp.cpp aka "JSON Pretty Printer".
2022-07-26 13:06:16 +10:00

19 lines
608 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 compiler.get_id() == 'emscripten'
tests_flags = ['-lnodefs.js']
else
tests_flags = []
endif
e = executable('jsontest', 'jsontest.cpp',
include_directories: [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')])