Commit Graph

337 Commits (master)

Author SHA1 Message Date
Kroket Ltd 13eccc467e update README 2022-10-01 01:28:23 +03:00
Kroket Ltd 45e112f7ee Improvements:
- A single and much simpler `CMakeLists.txt` (100 lines)
- Removed all git submodules - link against (system) libs instead:
  - RapidJSON
  - Boost (`system`, `filesystem`)
  - fmt
- Some small header-only libraries are included in the repo as-is:
  - `string-view-lite`, `optional-lite`, `variant-lite`, `expected-lite`
- Removed support for the `nlohmann/json` library (only support RapidJSON)
- Removed support for the Conan build system (only support CMake)
- Removed test suite and CI/CD definition(s)
- Added support for `ccache` (compilation cache)
- Removed documentation
2022-10-01 00:49:22 +03:00
rmorozov 1dacf16a1f
Update README.md
Fix links to site
2022-01-08 16:17:58 +03:00
rmorozov 4c588f632c
Create codeql-analysis.yml 2021-12-26 22:19:59 +03:00
rmorozov 6092f44df1
Bump deps: Switch to polymorphic value and latest robin_hood_hash(#220)
* bump robin_hood hashing dep to 3.11.3
* bump value-ptr-lite to latest version
* switch to polymorphic_value
* implement comparisons
* fix build: add operator!=
* polymorphic_value into jinja2cpp integration
* introduce ValuePtr and MoveValuePtr aliases
2021-12-12 23:20:15 +03:00
rmorozov 4b86a7cecb
apply llvm-header-guard, llvm-namespaces (#218)
run clang-tidy checks llvm-header-guard, llvm-namespaces to update code style
2021-08-31 13:20:53 +03:00
rmorozov dae174ceab
make jinja2cpp conan-friendly again (#217)
* make jinja2cpp conan-friendly again
* fix c++20 build mode
2021-08-26 08:42:06 +03:00
rmorozov b6ddef9588
Update README.md 2021-08-25 22:58:47 +03:00
rmorozov 5838320d52
fix build with clang -std=c++20 (#216)
* apply llvm-namespace-comment

* Make jinja2cpp compilable under clang 12 with -std=c++20
the problem arose from the fact that libfmt switched to consteval check of format
string(that is great, but makes us obliged to provide format_to with
constexpr format_string or fmt::runtime overload)

unfortunatelly I couldn't make it work with constexpr std::string
so multistringliteral returns std::basic_string_view except for cases
where it needs std::string

fix https://github.com/jinja2cpp/Jinja2Cpp/issues/213
2021-08-25 22:50:27 +03:00
mrudenko af50a9c89c Mimic the behavior of the 'in' operator when applied to strings (instead of lists) from original Jinja - search for a substring. 2021-08-25 00:58:51 +03:00
Rafael Lecina 171b5bd970 Use value of BUILD_SHARED_LIBS to initialize JINJA2CPP_BUILD_SHARED_LIBS 2021-08-09 16:25:55 +03:00
Daniel Martínez Ruiz 38212b250c
Throw an exception if the filter is not found (#209) 2021-08-09 14:34:55 +03:00
rmorozov fe911a9ffc
disable appveyour for CI builds (#211)
* disable appveyour fo CI builds
2021-08-09 13:40:32 +03:00
Ruslan Morozov 381122217d fix up github workflow for linux 2021-08-09 13:29:10 +03:00
Ruslan Morozov 2ab98c911c remove redundant header 2021-08-09 13:29:10 +03:00
Ruslan Morozov a8515ad88e switch to fmt::dynamic_format_args_store 2021-08-09 13:29:10 +03:00
Ruslan Morozov 1ceb9d80c4 fix workflows 2021-08-09 13:29:10 +03:00
Ruslan Morozov 57c03e19ef more fixes for github workflow 2021-08-09 13:29:10 +03:00
Ruslan Morozov 5bf55986ad update github workflows 2021-08-09 13:29:10 +03:00
Ruslan Morozov 6bb958fa5b move build step to separate script 2021-08-09 13:29:10 +03:00
Ruslan Morozov 15a5f7688a fix submodule recurse init 2021-08-09 13:29:10 +03:00
Ruslan Morozov f0234d1aa4 use experimental boost 2021-08-09 13:29:10 +03:00
Ruslan Morozov cb4b2d6c84 update deps:
* move to official boost cmake
* update googletest
* update non-std repos
* update json
2021-08-09 13:29:10 +03:00
Sebastian Lau b7ced2e2d1
ADD include of a c++ stl file in main library to patch compiler error (#206)
Co-authored-by: Sebastian Lau <slau@onepointer.de>
2021-08-06 11:41:23 +03:00
Flex Ferrum 78673bc72b
Fix MSVC-2019 GitHub Actions CI (#192)
* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI

* Debug window GA CI build

* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI

* Debug windows GA CI
2020-03-10 00:48:52 +03:00
Flex Ferrum 8db5c7259e Debug windows GA CI 2020-03-09 01:41:54 +03:00
Flex Ferrum a316418b42 Debug windows GA CI 2020-03-09 01:26:47 +03:00
Flex Ferrum b8140ce57a
Debug failed windows builds 2020-03-09 01:06:29 +03:00
Flex Ferrum c8820fd024 Merge branch 'master' of github.com:jinja2cpp/jinja2cpp 2020-03-08 01:45:06 +03:00
Flex Ferrum 4973c66592 Turn back 'internal' default dependency mode 2020-03-08 01:43:26 +03:00
Flex Ferrum 1416b29ee1
[skip ci] Update reference to conan.io 2020-03-04 16:50:17 +03:00
vvish e2db48d7b5 Reduced overhead of escaping special characters in json serializer (#142) (#191) 2020-01-22 11:22:56 +02:00
Flex Ferrum 889577d99f Manage global options with 'add_compile_options' instead of direct manipulation 2020-01-13 18:34:05 +02:00
Flex Ferrum 1903bda15c Set 'dynamic' MSVC runtime type for shared library build 2020-01-13 02:11:23 +02:00
Flex Ferrum 86b5620f1e Make -fPIC flag global 2020-01-13 00:24:40 +02:00
Flex Ferrum b01f431047 Add -fPIC for linux shared library config 2020-01-13 00:15:31 +02:00
Flex Ferrum fe619950f5 Add availability to build Jinja2C++ as a shared library 2020-01-12 23:57:23 +02:00
Flex Ferrum 9069a2da45 Add JINJA2CPP_PIC option which controls '-fPIC' option 2020-01-12 15:27:02 +02:00
Flex Ferrum 0cb13c850e Turn back 'internal' default dependency mode 2020-01-10 23:13:54 +02:00
Flex Ferrum b7d3a49709 Update fmtlib to the version 6.1.2 2020-01-10 12:52:44 +02:00
Flex Ferrum a34b8242a0
Release 1.1 preparation (#190) 2020-01-10 10:50:29 +02:00
Flex Ferrum e89ed39582 Fix clang and MSVC 2017 build with C++17 enabled 2020-01-04 23:18:41 +02:00
Flex Ferrum a5c6c167a5 Fix build for MSVC and clang 2020-01-04 22:01:43 +02:00
Flex Ferrum f3f08121e7 #186 Make jinja2cpp compilable with std versions of variant, string_view and optional types 2020-01-04 21:43:33 +02:00
Flex Ferrum 9eb94894e3 #188 Clean up MSVC warnings 2020-01-04 12:00:27 +02:00
Flex Ferrum 42f9d9d427
Add 'x86' build config for Windows CI 2020-01-04 01:21:15 +02:00
Flex Ferrum 20590e9b5f
Remove '-A' option for VS 2019 CI 2020-01-04 01:13:14 +02:00
Flex Ferrum a217262de4
Update windows-build.yml 2020-01-04 01:08:04 +02:00
Flex Ferrum 805a399c20 Fix GA windows CI build script 2020-01-04 01:02:10 +02:00
Flex Ferrum e04bbef1b5 #188 Remove warnings from UserCallable implementation details
#189 Add -fPIC option for gcc build
2020-01-04 00:51:18 +02:00