mirror of
https://github.com/pantor/inja.git
synced 2026-02-17 09:03:58 +00:00
47 lines
923 B
Meson
47 lines
923 B
Meson
project('inja', 'cpp', default_options: ['cpp_std=c++17'])
|
|
|
|
|
|
inja_dep = declare_dependency(
|
|
include_directories: include_directories('include', 'third_party/include')
|
|
)
|
|
|
|
|
|
amalg_script = files('scripts/update_single_include.sh')
|
|
|
|
amalg_files = files(
|
|
'include/inja/inja.hpp',
|
|
'include/inja/renderer.hpp',
|
|
'include/inja/environment.hpp',
|
|
)
|
|
|
|
amalg_tgt = run_target( 'amalg',
|
|
command: amalg_script
|
|
)
|
|
|
|
if get_option('build_tests')
|
|
inja_test = executable(
|
|
'inja_test',
|
|
'test/test.cpp',
|
|
dependencies: inja_dep
|
|
)
|
|
|
|
inja_single_test = executable(
|
|
'inja_single_test',
|
|
'test/test.cpp',
|
|
'single_include/inja/inja.hpp',
|
|
dependencies: [inja_dep]
|
|
)
|
|
|
|
test('Inja unit test', inja_test)
|
|
test('Inja single include test', inja_single_test)
|
|
endif
|
|
|
|
|
|
if get_option('build_benchmark')
|
|
inja_benchmark = executable(
|
|
'inja_benchmark',
|
|
'test/benchmark.cpp',
|
|
dependencies: inja_dep
|
|
)
|
|
endif
|