File: meson.build

package info (click to toggle)
keyman 18.0.248-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,308 kB
  • sloc: python: 52,784; cpp: 21,289; sh: 7,633; ansic: 4,823; xml: 3,617; perl: 959; makefile: 139; javascript: 138
file content (19 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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: [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')])