2022-05-01 12:09:09 +00:00
|
|
|
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 += devel_args
|
|
|
|
if not get_option('use_vendored_libs')
|
|
|
|
tt_args += '-DUSE_VENDORED_LIBS=0'
|
|
|
|
endif
|
2022-02-14 17:41:52 +00:00
|
|
|
|
2022-01-03 18:51:03 +00:00
|
|
|
if get_option('build_tt_encoder')
|
|
|
|
executable(
|
|
|
|
'tt_encoder',
|
|
|
|
'tt_encoder.cpp',
|
2022-05-01 12:09:09 +00:00
|
|
|
cpp_args: tt_args,
|
2022-02-14 17:41:52 +00:00
|
|
|
dependencies: tt_deps
|
2022-01-03 18:51:03 +00:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option('build_tt_decoder')
|
|
|
|
executable(
|
|
|
|
'tt_decoder',
|
|
|
|
'tt_decoder.cpp',
|
2022-05-01 12:09:09 +00:00
|
|
|
cpp_args: tt_args,
|
2022-02-14 17:41:52 +00:00
|
|
|
dependencies: tt_deps
|
2022-01-03 18:51:03 +00:00
|
|
|
)
|
|
|
|
endif
|