summaryrefslogtreecommitdiff
path: root/tomlplusplus/toml-test/meson.build
blob: 1196123f3666f8bce55ebd49afe713cc8812539a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file is a part of toml++ and is subject to the the terms of the MIT license.
# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
# SPDX-License-Identifier: MIT

assert(build_tt)

tt_deps = [ tomlplusplus_dep ]
if not get_option('use_vendored_libs')
	tt_deps += dependency('nlohmann_json', fallback: ['json', 'nlohmann_json_dep'])
endif

tt_args = []
tt_args += global_args
if get_option('use_vendored_libs')
	tt_args += cpp.get_supported_arguments('-DUSE_VENDORED_LIBS=1')
else
	tt_args += cpp.get_supported_arguments('-DUSE_VENDORED_LIBS=0')
endif

executable(
	'tt_encoder',
	files('tt_encoder.cpp'),
	cpp_args: tt_args,
	dependencies: tt_deps,
	override_options: global_overrides
)
executable(
	'tt_decoder',
	files('tt_decoder.cpp'),
	cpp_args: tt_args,
	dependencies: tt_deps,
	override_options: global_overrides
)