File tree Expand file tree Collapse file tree 4 files changed +35
-2
lines changed
Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ endif()
6767
6868target_link_libraries (inja INTERFACE ${INJA_SELECTED_JSON_LIBRARY} )
6969
70- execute_process (COMMAND python3 amalgamate/amalgamate.py -c amalgamate/config.json -s include WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} )
70+ execute_process (COMMAND scripts/update_single_include.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} )
7171
7272
7373if (COVERALLS)
Original file line number Diff line number Diff line change 22 "project" : " inja" ,
33 "target" : " single_include/inja/inja.hpp" ,
44 "sources" : [
5- " ../include/ inja/inja.hpp"
5+ " inja/inja.hpp"
66 ],
77 "include_paths" : [
88 ]
Original file line number Diff line number Diff line change @@ -10,6 +10,20 @@ inja_dep = declare_dependency(
1010)
1111
1212
13+
14+ amalg_script = files (' scripts/update_single_include.sh' )
15+
16+ amalg_files = files (
17+ ' include/inja/inja.hpp' ,
18+ ' include/inja/renderer.hpp' ,
19+ ' include/inja/environment.hpp' ,
20+ )
21+
22+ amalg_tgt = run_target ( ' amalg' ,
23+ command : amalg_script
24+ )
25+
26+
1327inja_test = executable (
1428 ' inja_test' ,
1529 ' test/unit.cpp' ,
@@ -18,6 +32,16 @@ inja_test = executable(
1832 dependencies : inja_dep
1933)
2034
35+ inja_single_test = executable (
36+ ' inja_single_test' ,
37+ ' test/unit.cpp' ,
38+ ' test/unit-files.cpp' ,
39+ ' test/unit-renderer.cpp' ,
40+ ' single_include/inja/inja.hpp' ,
41+ dependencies : [inja_dep]
42+ )
43+
44+
2145inja_benchmark = executable (
2246 ' inja_benchmark' ,
2347 ' test/benchmark.cpp' ,
@@ -26,3 +50,4 @@ inja_benchmark = executable(
2650
2751
2852test (' Inja unit test' , inja_test)
53+ test (' Inja single include test' , inja_single_test)
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ if [ " ${MESON_SOURCE_ROOT} " != " " ]
4+ then
5+ cd ${MESON_SOURCE_ROOT}
6+ fi
7+
8+ python3 amalgamate/amalgamate.py -c amalgamate/config.json -s include -v yes
You can’t perform that action at this time.
0 commit comments