mirror of
https://github.com/pantor/inja.git
synced 2026-02-17 09:03:58 +00:00
Inja v2 (#67)
* inja2 * header only * reduce dependencies * code cleaning * c++17 * use stdc++ * code cleaning * infrastructure * header only * add infrastructure * fix tests * use minimum clang 6 * code cleaning, polyfill for c++11 * fix some file tests * fix readme * update appveyor * fix polyfill and ci * fix polyfill * fix ci? * test msvc __cplusplus * add doxygen * activate all tests * code cleaning * add coveralls, set default to dot notation * add html test * add doxygen comments * test single_include file * change build folder in appveyor * correct make arguments in appveyor * fix appveyor arguments
This commit is contained in:
32
meson.build
32
meson.build
@@ -1,22 +1,28 @@
|
||||
project('inja', 'cpp', default_options: ['cpp_std=c++11'])
|
||||
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')
|
||||
)
|
||||
|
||||
inja_single_dep = declare_dependency(
|
||||
include_directories: include_directories('single_include', 'include')
|
||||
|
||||
inja_test = executable(
|
||||
'inja_test',
|
||||
'test/unit.cpp',
|
||||
'test/unit-files.cpp',
|
||||
'test/unit-renderer.cpp',
|
||||
dependencies: inja_dep
|
||||
)
|
||||
|
||||
inja_benchmark = executable(
|
||||
'inja_benchmark',
|
||||
'test/benchmark.cpp',
|
||||
dependencies: inja_dep
|
||||
)
|
||||
|
||||
|
||||
# Amalgamate inja header files
|
||||
r = run_command('python3', 'amalgamate/amalgamate.py', '-c', 'amalgamate/config.json', '-s', 'include')
|
||||
if r.returncode() != 0
|
||||
message(r.stdout().strip())
|
||||
else
|
||||
message('Amalgamated inja header files.')
|
||||
endif
|
||||
|
||||
|
||||
subdir('test')
|
||||
test('Inja unit test', inja_test)
|
||||
|
||||
Reference in New Issue
Block a user