diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:23:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:23:17 +0200 |
commit | 514cb71a6a3e116c229c5dc874369f8632530dc7 (patch) | |
tree | dbc61581e04809fca19fefb3f4954b76e1e3e2c8 /meson.build |
Squashed 'deps/inja/' content from commit 811e173
git-subtree-dir: deps/inja
git-subtree-split: 811e1730e13bca4ea1805a42d5f0a4b5c91046e1
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..6797057 --- /dev/null +++ b/meson.build @@ -0,0 +1,49 @@ +project('inja', 'cpp', default_options: ['cpp_std=c++17']) + + +#option('build_tests', type: 'boolean', value: true) +#option('build_benchmark', type: 'boolean', value: true) + + +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 +) + + +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] +) + + +inja_benchmark = executable( + 'inja_benchmark', + 'test/benchmark.cpp', + dependencies: inja_dep +) + + +test('Inja unit test', inja_test) +test('Inja single include test', inja_single_test) |