repo: use system re2
This commit is contained in:
@@ -29,13 +29,12 @@ add_compile_definitions(CHECKPOINT_VERSION="${CHECKPOINT_VERSION}")
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(deps IMPORTED_TARGET openssl)
|
||||
pkg_check_modules(deps IMPORTED_TARGET openssl re2)
|
||||
|
||||
target_include_directories(checkpoint
|
||||
PRIVATE
|
||||
"./subprojects/pistache/include"
|
||||
"./subprojects/glaze/include"
|
||||
"./subprojects/re2"
|
||||
"./subprojects/tinylates/include"
|
||||
"./subprojects/pistache/subprojects/cpp-httplib"
|
||||
"./subprojects/pistache/subprojects/hinnant-date/include"
|
||||
@@ -44,6 +43,5 @@ target_link_libraries(checkpoint
|
||||
PkgConfig::deps
|
||||
pistache
|
||||
fmt
|
||||
re2
|
||||
tinylates
|
||||
)
|
||||
|
||||
@@ -26,7 +26,7 @@ If you are using this, it's almost certain search engines will stop indexing you
|
||||
|
||||
## Setup guide
|
||||
|
||||
1. Clone and build this repo. You will need `openssl`, `g++>=12`, and deps for `pistache`, `fmt` and `tinylates`.
|
||||
1. Clone and build this repo. You will need `openssl`, `g++>=12`, `re2`, and deps for `pistache`, `fmt` and `tinylates`.
|
||||
2. Create a `config.jsonc`. An example one is in `example/`.
|
||||
3. Adjust the config to your needs. Options are documented with comments in the example config.
|
||||
4. Set up your IP rules if you want. These allow you to set up IPs that are automatically blocked, or allowed to access without a challenge. This is useful for e.g. search engine scrapers. Some IP ranges can be found in `example/index_bots.jsonc`.
|
||||
|
||||
Submodule subprojects/re2 deleted from c84a140c93
Reference in New Issue
Block a user