You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C++ implementation of big subset of Jinja2 template engine features. This library was inspired by [Jinja2CppLight](https://github.com/hughperkins/Jinja2CppLight) project and brings support of mostly all Jinja2 templates features into C++ world. Unlike [inja](https://github.com/pantor/inja) lib, you have to build Jinja2Cpp, but it has only one dependence: boost.
14
15
@@ -33,7 +34,9 @@ C++ implementation of big subset of Jinja2 template engine features. This librar
-[Link with you projects](#link-with-you-projects)
37
+
-[Acknowledgments](#acknowledgments)
36
38
-[Changelog](#changelog)
39
+
-[Version 0.9.1](#version-091)
37
40
-[Version 0.9](#version-09)
38
41
-[Version 0.6](#version-06)
39
42
@@ -526,8 +529,8 @@ Compilation of Jinja2Cpp tested on the following compilers (with C++14 enabled f
526
529
- Linux gcc 6.0
527
530
- Linux gcc 7.0
528
531
- Linux clang 5.0
529
-
- Microsoft Visual Studio 2015 x86
530
-
- Microsoft Visual Studio 2017 x86
532
+
- Microsoft Visual Studio 2015 x86, x64
533
+
- Microsoft Visual Studio 2017 x86, x64
531
534
532
535
# Build and install
533
536
Jinja2Cpp has got only two external dependency: boost library (at least version 1.55) and expected-lite. Because of types from boost are used inside library, you should compile both your projects and Jinja2Cpp library with similar compiler settings. Otherwise ABI could be broken.
@@ -573,7 +576,7 @@ In order to compile Jinja2Cpp you need:
573
576
## Additional CMake build flags
574
577
You can define (via -D command line CMake option) the following build flags:
575
578
576
-
***WITH_TESTS** (default TRUE) - build or not Jinja2Cpp tests.
579
+
***JINJA2CPP_BUILD_TESTS** (default TRUE) - build or not Jinja2Cpp tests.
577
580
***MSVC_RUNTIME_TYPE** (default /MD) - MSVC runtime type to link with (if you use Microsoft Visual Studio compiler).
578
581
***LIBRARY_TYPE** Could be STATIC (default for Windows platform) or SHARED (default for Linux). Specify the type of Jinja2Cpp library to build.
Copy file name to clipboardExpand all lines: appveyor.yml
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,54 @@
1
-
version: 0.9.{build}
1
+
version: 0.9.1.{build}
2
2
3
3
os:
4
4
- Visual Studio 2015
5
5
- Visual Studio 2017
6
6
7
+
platform:
8
+
- Win32
9
+
- x64
10
+
11
+
configuration:
12
+
- Debug
13
+
- Release
14
+
7
15
environment:
8
16
matrix:
9
-
- PLATFORM: x64
10
-
- PLATFORM: x86
17
+
- BUILD_PLATFORM: x64
18
+
MSVC_RUNTIME_TYPE: /MD
19
+
- BUILD_PLATFORM: x64
20
+
MSVC_RUNTIME_TYPE: /MT
21
+
- BUILD_PLATFORM: x64
22
+
MSVC_RUNTIME_TYPE:
23
+
- BUILD_PLATFORM: x86
24
+
MSVC_RUNTIME_TYPE: /MD
25
+
- BUILD_PLATFORM: x86
26
+
MSVC_RUNTIME_TYPE: /MT
27
+
- BUILD_PLATFORM: x86
28
+
MSVC_RUNTIME_TYPE:
11
29
12
30
matrix:
13
31
fast_finish: false
32
+
exclude:
33
+
- platform: Win32
34
+
BUILD_PLATFORM: x64
35
+
- platform: x64
36
+
BUILD_PLATFORM: x86
14
37
15
38
init:
16
-
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
17
-
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
18
-
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
19
-
20
-
install:
21
-
- git submodule -q update --init
39
+
- set BOOST_ROOT=C:\Libraries\boost_1_65_1
40
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%BUILD_PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
41
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%BUILD_PLATFORM%"=="x86" set PATH=%BOOST_ROOT%\lib32-msvc-14.1;%PATH%
42
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%BUILD_PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
43
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%BUILD_PLATFORM%"=="x64" set PATH=%BOOST_ROOT%\lib64-msvc-14.1;%PATH%
44
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%BUILD_PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
45
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%BUILD_PLATFORM%"=="x86" set PATH=%BOOST_ROOT%\lib32-msvc-14.0;%PATH%
46
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%BUILD_PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
47
+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%BUILD_PLATFORM%"=="x64" set PATH=%BOOST_ROOT%\lib64-msvc-14.0;%PATH%
0 commit comments