re2 1.19.2 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/actions/linux-alpine-node-16/Dockerfile +1 -1
- package/.github/actions/linux-alpine-node-18/Dockerfile +1 -1
- package/.github/actions/linux-alpine-node-20/Dockerfile +1 -1
- package/.gitmodules +5 -2
- package/README.md +1 -0
- package/binding.gyp +82 -25
- package/lib/replace.cc +4 -4
- package/package.json +1 -1
- package/tsconfig.json +2 -1
- package/vendor/re2/.bazelrc +16 -0
- package/vendor/re2/.github/bazel.sh +24 -0
- package/vendor/re2/.github/cmake.sh +12 -0
- package/vendor/re2/.github/workflows/ci-bazel.yml +17 -0
- package/vendor/re2/.github/workflows/ci-cmake.yml +108 -0
- package/vendor/re2/.github/workflows/ci.yml +89 -0
- package/vendor/re2/.github/workflows/pr.yml +26 -0
- package/vendor/re2/.github/workflows/python.yml +185 -0
- package/vendor/re2/AUTHORS +13 -0
- package/vendor/re2/BUILD.bazel +280 -0
- package/vendor/re2/CMakeLists.txt +268 -0
- package/vendor/re2/CONTRIBUTING.md +2 -0
- package/vendor/re2/CONTRIBUTORS +41 -0
- package/vendor/re2/Makefile +400 -0
- package/vendor/{README → re2/README} +5 -0
- package/vendor/re2/SECURITY.md +4 -0
- package/vendor/re2/WORKSPACE.bazel +62 -0
- package/vendor/re2/app/BUILD.bazel +19 -0
- package/vendor/re2/app/_re2.cc +94 -0
- package/vendor/re2/app/_re2.d.ts +23 -0
- package/vendor/re2/app/app.ts +111 -0
- package/vendor/re2/app/build.sh +50 -0
- package/vendor/re2/app/index.html +5 -0
- package/vendor/re2/app/package.json +14 -0
- package/vendor/re2/app/rollup.config.js +28 -0
- package/vendor/re2/app/tsconfig.json +17 -0
- package/vendor/re2/benchlog/benchplot.py +98 -0
- package/vendor/re2/benchlog/mktable +155 -0
- package/vendor/re2/doc/mksyntaxgo +42 -0
- package/vendor/re2/doc/mksyntaxhtml +42 -0
- package/vendor/re2/doc/mksyntaxwiki +36 -0
- package/vendor/re2/doc/syntax.html +477 -0
- package/vendor/re2/doc/syntax.txt +463 -0
- package/vendor/re2/lib/git/commit-msg.hook +104 -0
- package/vendor/re2/libre2.symbols +19 -0
- package/vendor/re2/libre2.symbols.darwin +15 -0
- package/vendor/re2/python/BUILD.bazel +36 -0
- package/vendor/re2/python/README +1 -0
- package/vendor/re2/python/_re2.cc +338 -0
- package/vendor/re2/python/re2.py +582 -0
- package/vendor/re2/python/re2_test.py +482 -0
- package/vendor/re2/python/setup.py +105 -0
- package/vendor/re2/{bitmap256.cc → re2/bitmap256.cc} +4 -4
- package/vendor/re2/{bitstate.cc → re2/bitstate.cc} +21 -25
- package/vendor/re2/{compile.cc → re2/compile.cc} +5 -4
- package/vendor/re2/{dfa.cc → re2/dfa.cc} +120 -101
- package/vendor/re2/{filtered_re2.cc → re2/filtered_re2.cc} +8 -11
- package/vendor/re2/{filtered_re2.h → re2/filtered_re2.h} +5 -4
- package/vendor/re2/{fuzzing → re2/fuzzing}/re2_fuzzer.cc +4 -6
- package/vendor/re2/{mimics_pcre.cc → re2/mimics_pcre.cc} +0 -1
- package/vendor/re2/{nfa.cc → re2/nfa.cc} +34 -37
- package/vendor/re2/{onepass.cc → re2/onepass.cc} +25 -27
- package/vendor/re2/{parse.cc → re2/parse.cc} +118 -121
- package/vendor/re2/{prefilter.cc → re2/prefilter.cc} +2 -3
- package/vendor/re2/{prefilter.h → re2/prefilter.h} +0 -1
- package/vendor/re2/{prefilter_tree.cc → re2/prefilter_tree.cc} +4 -5
- package/vendor/re2/{prefilter_tree.h → re2/prefilter_tree.h} +1 -2
- package/vendor/re2/{prog.cc → re2/prog.cc} +20 -21
- package/vendor/re2/{prog.h → re2/prog.h} +21 -22
- package/vendor/re2/{re2.cc → re2/re2.cc} +51 -62
- package/vendor/re2/{re2.h → re2/re2.h} +78 -40
- package/vendor/re2/{regexp.cc → re2/regexp.cc} +11 -12
- package/vendor/re2/{regexp.h → re2/regexp.h} +9 -10
- package/vendor/re2/{set.cc → re2/set.cc} +3 -5
- package/vendor/re2/{set.h → re2/set.h} +4 -3
- package/vendor/re2/{simplify.cc → re2/simplify.cc} +1 -2
- package/vendor/re2/re2/stringpiece.h +24 -0
- package/vendor/re2/{testing → re2/testing}/backtrack.cc +22 -25
- package/vendor/re2/{testing → re2/testing}/charclass_test.cc +23 -21
- package/vendor/re2/{testing → re2/testing}/compile_test.cc +5 -4
- package/vendor/re2/{testing → re2/testing}/dfa_test.cc +36 -30
- package/vendor/re2/{testing → re2/testing}/dump.cc +8 -8
- package/vendor/re2/{testing → re2/testing}/exhaustive1_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/exhaustive2_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/exhaustive3_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/exhaustive_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/exhaustive_tester.cc +36 -32
- package/vendor/re2/{testing → re2/testing}/exhaustive_tester.h +0 -1
- package/vendor/re2/{testing → re2/testing}/filtered_re2_test.cc +9 -8
- package/vendor/re2/{testing → re2/testing}/mimics_pcre_test.cc +3 -2
- package/vendor/re2/{testing → re2/testing}/null_walker.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/parse_test.cc +13 -12
- package/vendor/re2/{testing → re2/testing}/possible_match_test.cc +15 -14
- package/vendor/re2/{testing → re2/testing}/random_test.cc +13 -12
- package/vendor/re2/{testing → re2/testing}/re2_arg_test.cc +25 -2
- package/vendor/re2/{testing → re2/testing}/re2_test.cc +49 -47
- package/vendor/re2/{testing → re2/testing}/regexp_benchmark.cc +144 -145
- package/vendor/re2/{testing → re2/testing}/regexp_generator.cc +18 -14
- package/vendor/re2/{testing → re2/testing}/regexp_generator.h +3 -4
- package/vendor/re2/{testing → re2/testing}/regexp_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/required_prefix_test.cc +5 -4
- package/vendor/re2/{testing → re2/testing}/search_test.cc +3 -2
- package/vendor/re2/{testing → re2/testing}/set_test.cc +1 -1
- package/vendor/re2/{testing → re2/testing}/simplify_test.cc +3 -2
- package/vendor/re2/{testing → re2/testing}/string_generator.cc +3 -3
- package/vendor/re2/{testing → re2/testing}/string_generator.h +5 -6
- package/vendor/re2/{testing → re2/testing}/string_generator_test.cc +2 -2
- package/vendor/re2/{testing → re2/testing}/tester.cc +77 -78
- package/vendor/re2/{testing → re2/testing}/tester.h +13 -15
- package/vendor/re2/{tostring.cc → re2/tostring.cc} +7 -8
- package/vendor/re2/{unicode_casefold.h → re2/unicode_casefold.h} +0 -1
- package/vendor/re2/{unicode_groups.h → re2/unicode_groups.h} +0 -1
- package/vendor/re2/{walker-inl.h → re2/walker-inl.h} +2 -1
- package/vendor/re2/re2.pc.in +9 -0
- package/vendor/re2/re2Config.cmake.in +28 -0
- package/vendor/re2/runtests +33 -0
- package/vendor/re2/testinstall.cc +27 -0
- package/vendor/re2/ucs2.diff +567 -0
- package/vendor/{util → re2/util}/logging.h +2 -2
- package/vendor/{util → re2/util}/pcre.cc +47 -116
- package/vendor/{util → re2/util}/pcre.h +53 -63
- package/vendor/re2/util/strutil.cc +26 -0
- package/vendor/{util → re2/util}/strutil.h +0 -5
- package/vendor/re2/stringpiece.cc +0 -65
- package/vendor/re2/stringpiece.h +0 -213
- package/vendor/util/benchmark.cc +0 -131
- package/vendor/util/benchmark.h +0 -156
- package/vendor/util/flags.h +0 -26
- package/vendor/util/mix.h +0 -41
- package/vendor/util/mutex.h +0 -164
- package/vendor/util/strutil.cc +0 -149
- package/vendor/util/test.cc +0 -34
- package/vendor/util/test.h +0 -50
- package/vendor/util/util.h +0 -42
- /package/vendor/{LICENSE → re2/LICENSE} +0 -0
- /package/vendor/re2/{bitmap256.h → re2/bitmap256.h} +0 -0
- /package/vendor/re2/{fuzzing → re2/fuzzing}/compiler-rt/LICENSE +0 -0
- /package/vendor/re2/{fuzzing → re2/fuzzing}/compiler-rt/include/fuzzer/FuzzedDataProvider.h +0 -0
- /package/vendor/re2/{make_perl_groups.pl → re2/make_perl_groups.pl} +0 -0
- /package/vendor/re2/{make_unicode_casefold.py → re2/make_unicode_casefold.py} +0 -0
- /package/vendor/re2/{make_unicode_groups.py → re2/make_unicode_groups.py} +0 -0
- /package/vendor/re2/{perl_groups.cc → re2/perl_groups.cc} +0 -0
- /package/vendor/re2/{pod_array.h → re2/pod_array.h} +0 -0
- /package/vendor/re2/{sparse_array.h → re2/sparse_array.h} +0 -0
- /package/vendor/re2/{sparse_set.h → re2/sparse_set.h} +0 -0
- /package/vendor/re2/{unicode.py → re2/unicode.py} +0 -0
- /package/vendor/re2/{unicode_casefold.cc → re2/unicode_casefold.cc} +0 -0
- /package/vendor/re2/{unicode_groups.cc → re2/unicode_groups.cc} +0 -0
- /package/vendor/{util → re2/util}/fuzz.cc +0 -0
- /package/vendor/{util → re2/util}/malloc_counter.h +0 -0
- /package/vendor/{util → re2/util}/rune.cc +0 -0
- /package/vendor/{util → re2/util}/utf.h +0 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# Copyright 2015 The RE2 Authors. All Rights Reserved.
|
|
2
|
+
# Use of this source code is governed by a BSD-style
|
|
3
|
+
# license that can be found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
# Old enough to support Ubuntu Bionic,
|
|
6
|
+
# but just the MAJOR.MINOR components.
|
|
7
|
+
cmake_minimum_required(VERSION 3.10)
|
|
8
|
+
|
|
9
|
+
project(RE2 CXX)
|
|
10
|
+
include(CMakePackageConfigHelpers)
|
|
11
|
+
include(CTest)
|
|
12
|
+
include(GNUInstallDirs)
|
|
13
|
+
|
|
14
|
+
option(BUILD_SHARED_LIBS "build shared libraries" OFF)
|
|
15
|
+
option(RE2_USE_ICU "build against ICU for full Unicode properties support" OFF)
|
|
16
|
+
|
|
17
|
+
# For historical reasons, this is just "USEPCRE", not "RE2_USE_PCRE".
|
|
18
|
+
option(USEPCRE "build against PCRE for testing and benchmarking" OFF)
|
|
19
|
+
|
|
20
|
+
# See https://groups.google.com/g/re2-dev/c/P6_NM0YIWvA for details.
|
|
21
|
+
# This has no effect unless RE2 is being built for an Apple platform
|
|
22
|
+
# such as macOS or iOS.
|
|
23
|
+
option(RE2_BUILD_FRAMEWORK "build RE2 as a framework" OFF)
|
|
24
|
+
|
|
25
|
+
# CMake seems to have no way to enable/disable testing per subproject,
|
|
26
|
+
# so we provide an option similar to BUILD_TESTING, but just for RE2.
|
|
27
|
+
option(RE2_BUILD_TESTING "enable testing for RE2" OFF)
|
|
28
|
+
|
|
29
|
+
# The pkg-config Requires: field.
|
|
30
|
+
set(REQUIRES)
|
|
31
|
+
|
|
32
|
+
# ABI version
|
|
33
|
+
# http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
|
|
34
|
+
set(SONAME 11)
|
|
35
|
+
|
|
36
|
+
set(EXTRA_TARGET_LINK_LIBRARIES)
|
|
37
|
+
|
|
38
|
+
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
39
|
+
if(MSVC_VERSION LESS 1920)
|
|
40
|
+
message(FATAL_ERROR "you need Visual Studio 2019 or later")
|
|
41
|
+
endif()
|
|
42
|
+
if(BUILD_SHARED_LIBS)
|
|
43
|
+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
44
|
+
endif()
|
|
45
|
+
# CMake defaults to /W3, but some users like /W4 (or /Wall) and /WX,
|
|
46
|
+
# so we disable various warnings that aren't particularly helpful.
|
|
47
|
+
add_compile_options(/wd4100 /wd4201 /wd4456 /wd4457 /wd4702 /wd4815)
|
|
48
|
+
# Without a byte order mark (BOM), Visual Studio assumes that the source
|
|
49
|
+
# file is encoded using the current user code page, so we specify UTF-8.
|
|
50
|
+
add_compile_options(/utf-8)
|
|
51
|
+
endif()
|
|
52
|
+
|
|
53
|
+
if(WIN32)
|
|
54
|
+
add_definitions(-DUNICODE -D_UNICODE -DSTRICT -DNOMINMAX)
|
|
55
|
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
if(UNIX)
|
|
59
|
+
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
60
|
+
find_package(Threads REQUIRED)
|
|
61
|
+
endif()
|
|
62
|
+
|
|
63
|
+
set(ABSL_DEPS
|
|
64
|
+
absl_base
|
|
65
|
+
absl_core_headers
|
|
66
|
+
absl_fixed_array
|
|
67
|
+
absl_flags
|
|
68
|
+
absl_flat_hash_map
|
|
69
|
+
absl_flat_hash_set
|
|
70
|
+
absl_inlined_vector
|
|
71
|
+
absl_optional
|
|
72
|
+
absl_span
|
|
73
|
+
absl_str_format
|
|
74
|
+
absl_strings
|
|
75
|
+
absl_synchronization
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# If a top-level project has called add_directory(abseil-cpp) already (possibly
|
|
79
|
+
# indirectly), let that take precedence over any copy of Abseil that might have
|
|
80
|
+
# been installed on the system. And likewise for ICU, GoogleTest and Benchmark.
|
|
81
|
+
if(NOT TARGET absl::base)
|
|
82
|
+
find_package(absl REQUIRED)
|
|
83
|
+
endif()
|
|
84
|
+
list(APPEND REQUIRES ${ABSL_DEPS})
|
|
85
|
+
|
|
86
|
+
if(RE2_USE_ICU)
|
|
87
|
+
if(NOT TARGET ICU::uc)
|
|
88
|
+
find_package(ICU REQUIRED COMPONENTS uc)
|
|
89
|
+
endif()
|
|
90
|
+
add_definitions(-DRE2_USE_ICU)
|
|
91
|
+
list(APPEND REQUIRES icu-uc)
|
|
92
|
+
endif()
|
|
93
|
+
|
|
94
|
+
if(USEPCRE)
|
|
95
|
+
add_definitions(-DUSEPCRE)
|
|
96
|
+
list(APPEND EXTRA_TARGET_LINK_LIBRARIES pcre)
|
|
97
|
+
endif()
|
|
98
|
+
|
|
99
|
+
# TODO(junyer): Use string(JOIN " " ...) whenever CMake 3.12 (or newer) becomes
|
|
100
|
+
# the minimum required: that will make this hack slightly less filthy. For now,
|
|
101
|
+
# CMake does the same thing as string(CONCAT ...), basically, if we don't quote
|
|
102
|
+
# ${REQUIRES}, so quote it despite prevailing style.
|
|
103
|
+
string(REPLACE ";" " " REQUIRES "${REQUIRES}")
|
|
104
|
+
|
|
105
|
+
set(RE2_SOURCES
|
|
106
|
+
re2/bitmap256.cc
|
|
107
|
+
re2/bitstate.cc
|
|
108
|
+
re2/compile.cc
|
|
109
|
+
re2/dfa.cc
|
|
110
|
+
re2/filtered_re2.cc
|
|
111
|
+
re2/mimics_pcre.cc
|
|
112
|
+
re2/nfa.cc
|
|
113
|
+
re2/onepass.cc
|
|
114
|
+
re2/parse.cc
|
|
115
|
+
re2/perl_groups.cc
|
|
116
|
+
re2/prefilter.cc
|
|
117
|
+
re2/prefilter_tree.cc
|
|
118
|
+
re2/prog.cc
|
|
119
|
+
re2/re2.cc
|
|
120
|
+
re2/regexp.cc
|
|
121
|
+
re2/set.cc
|
|
122
|
+
re2/simplify.cc
|
|
123
|
+
re2/tostring.cc
|
|
124
|
+
re2/unicode_casefold.cc
|
|
125
|
+
re2/unicode_groups.cc
|
|
126
|
+
util/rune.cc
|
|
127
|
+
util/strutil.cc
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
set(RE2_HEADERS
|
|
131
|
+
re2/filtered_re2.h
|
|
132
|
+
re2/re2.h
|
|
133
|
+
re2/set.h
|
|
134
|
+
re2/stringpiece.h
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
add_library(re2 ${RE2_SOURCES})
|
|
138
|
+
target_compile_features(re2 PUBLIC cxx_std_14)
|
|
139
|
+
target_include_directories(re2 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
|
140
|
+
# CMake gives "set_target_properties called with incorrect number of arguments."
|
|
141
|
+
# errors if we don't quote ${RE2_HEADERS}, so quote it despite prevailing style.
|
|
142
|
+
set_target_properties(re2 PROPERTIES PUBLIC_HEADER "${RE2_HEADERS}")
|
|
143
|
+
set_target_properties(re2 PROPERTIES SOVERSION ${SONAME} VERSION ${SONAME}.0.0)
|
|
144
|
+
add_library(re2::re2 ALIAS re2)
|
|
145
|
+
|
|
146
|
+
if(APPLE AND RE2_BUILD_FRAMEWORK)
|
|
147
|
+
set_target_properties(re2 PROPERTIES
|
|
148
|
+
FRAMEWORK TRUE
|
|
149
|
+
FRAMEWORK_VERSION A
|
|
150
|
+
MACOSX_FRAMEWORK_IDENTIFIER com.googlesource.code.re2)
|
|
151
|
+
endif()
|
|
152
|
+
|
|
153
|
+
if(UNIX)
|
|
154
|
+
target_link_libraries(re2 PUBLIC Threads::Threads)
|
|
155
|
+
endif()
|
|
156
|
+
|
|
157
|
+
foreach(dep ${ABSL_DEPS})
|
|
158
|
+
string(REGEX REPLACE "^absl_" "absl::" dep ${dep})
|
|
159
|
+
target_link_libraries(re2 PUBLIC ${dep})
|
|
160
|
+
endforeach()
|
|
161
|
+
|
|
162
|
+
if(RE2_USE_ICU)
|
|
163
|
+
target_link_libraries(re2 PUBLIC ICU::uc)
|
|
164
|
+
endif()
|
|
165
|
+
|
|
166
|
+
if(RE2_BUILD_TESTING)
|
|
167
|
+
if(NOT TARGET GTest::gtest)
|
|
168
|
+
find_package(GTest REQUIRED)
|
|
169
|
+
endif()
|
|
170
|
+
if(NOT TARGET benchmark::benchmark)
|
|
171
|
+
find_package(benchmark REQUIRED)
|
|
172
|
+
endif()
|
|
173
|
+
|
|
174
|
+
set(TESTING_SOURCES
|
|
175
|
+
re2/testing/backtrack.cc
|
|
176
|
+
re2/testing/dump.cc
|
|
177
|
+
re2/testing/exhaustive_tester.cc
|
|
178
|
+
re2/testing/null_walker.cc
|
|
179
|
+
re2/testing/regexp_generator.cc
|
|
180
|
+
re2/testing/string_generator.cc
|
|
181
|
+
re2/testing/tester.cc
|
|
182
|
+
util/pcre.cc
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
add_library(testing ${TESTING_SOURCES})
|
|
186
|
+
if(BUILD_SHARED_LIBS AND WIN32)
|
|
187
|
+
target_compile_definitions(testing PRIVATE -DRE2_BUILD_TESTING_DLL)
|
|
188
|
+
endif()
|
|
189
|
+
target_compile_features(testing PUBLIC cxx_std_14)
|
|
190
|
+
target_link_libraries(testing PUBLIC re2 GTest::gtest)
|
|
191
|
+
|
|
192
|
+
set(TEST_TARGETS
|
|
193
|
+
charclass_test
|
|
194
|
+
compile_test
|
|
195
|
+
filtered_re2_test
|
|
196
|
+
mimics_pcre_test
|
|
197
|
+
parse_test
|
|
198
|
+
possible_match_test
|
|
199
|
+
re2_test
|
|
200
|
+
re2_arg_test
|
|
201
|
+
regexp_test
|
|
202
|
+
required_prefix_test
|
|
203
|
+
search_test
|
|
204
|
+
set_test
|
|
205
|
+
simplify_test
|
|
206
|
+
string_generator_test
|
|
207
|
+
|
|
208
|
+
dfa_test
|
|
209
|
+
exhaustive1_test
|
|
210
|
+
exhaustive2_test
|
|
211
|
+
exhaustive3_test
|
|
212
|
+
exhaustive_test
|
|
213
|
+
random_test
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
set(BENCHMARK_TARGETS
|
|
217
|
+
regexp_benchmark
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
foreach(target ${TEST_TARGETS})
|
|
221
|
+
add_executable(${target} re2/testing/${target}.cc)
|
|
222
|
+
if(BUILD_SHARED_LIBS AND WIN32)
|
|
223
|
+
target_compile_definitions(${target} PRIVATE -DRE2_CONSUME_TESTING_DLL)
|
|
224
|
+
endif()
|
|
225
|
+
target_compile_features(${target} PUBLIC cxx_std_14)
|
|
226
|
+
target_link_libraries(${target} PUBLIC testing GTest::gtest_main ${EXTRA_TARGET_LINK_LIBRARIES})
|
|
227
|
+
add_test(NAME ${target} COMMAND ${target})
|
|
228
|
+
endforeach()
|
|
229
|
+
|
|
230
|
+
foreach(target ${BENCHMARK_TARGETS})
|
|
231
|
+
add_executable(${target} re2/testing/${target}.cc)
|
|
232
|
+
if(BUILD_SHARED_LIBS AND WIN32)
|
|
233
|
+
target_compile_definitions(${target} PRIVATE -DRE2_CONSUME_TESTING_DLL)
|
|
234
|
+
endif()
|
|
235
|
+
target_compile_features(${target} PUBLIC cxx_std_14)
|
|
236
|
+
target_link_libraries(${target} PUBLIC testing benchmark::benchmark_main ${EXTRA_TARGET_LINK_LIBRARIES})
|
|
237
|
+
endforeach()
|
|
238
|
+
endif()
|
|
239
|
+
|
|
240
|
+
install(TARGETS re2
|
|
241
|
+
EXPORT re2Targets
|
|
242
|
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
243
|
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
244
|
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
245
|
+
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
246
|
+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/re2
|
|
247
|
+
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
248
|
+
install(EXPORT re2Targets
|
|
249
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/re2
|
|
250
|
+
NAMESPACE re2::)
|
|
251
|
+
|
|
252
|
+
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/re2Config.cmake.in
|
|
253
|
+
${CMAKE_CURRENT_BINARY_DIR}/re2Config.cmake
|
|
254
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/re2)
|
|
255
|
+
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/re2ConfigVersion.cmake
|
|
256
|
+
VERSION ${SONAME}.0.0
|
|
257
|
+
COMPATIBILITY SameMajorVersion)
|
|
258
|
+
|
|
259
|
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/re2Config.cmake
|
|
260
|
+
${CMAKE_CURRENT_BINARY_DIR}/re2ConfigVersion.cmake
|
|
261
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/re2)
|
|
262
|
+
|
|
263
|
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/re2.pc.in
|
|
264
|
+
${CMAKE_CURRENT_BINARY_DIR}/re2.pc
|
|
265
|
+
@ONLY)
|
|
266
|
+
|
|
267
|
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/re2.pc
|
|
268
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This is the official list of people who can contribute
|
|
2
|
+
# (and typically have contributed) code to the RE2 repository.
|
|
3
|
+
# The AUTHORS file lists the copyright holders; this file
|
|
4
|
+
# lists people. For example, Google employees are listed here
|
|
5
|
+
# but not in AUTHORS, because Google holds the copyright.
|
|
6
|
+
#
|
|
7
|
+
# The submission process automatically checks to make sure
|
|
8
|
+
# that people submitting code are listed in this file (by email address).
|
|
9
|
+
#
|
|
10
|
+
# Names should be added to this file only after verifying that
|
|
11
|
+
# the individual or the individual's organization has agreed to
|
|
12
|
+
# the appropriate Contributor License Agreement, found here:
|
|
13
|
+
#
|
|
14
|
+
# http://code.google.com/legal/individual-cla-v1.0.html
|
|
15
|
+
# http://code.google.com/legal/corporate-cla-v1.0.html
|
|
16
|
+
#
|
|
17
|
+
# The agreement for individuals can be filled out on the web.
|
|
18
|
+
#
|
|
19
|
+
# When adding J Random Contributor's name to this file,
|
|
20
|
+
# either J's name or J's organization's name should be
|
|
21
|
+
# added to the AUTHORS file, depending on whether the
|
|
22
|
+
# individual or corporate CLA was used.
|
|
23
|
+
|
|
24
|
+
# Names should be added to this file like so:
|
|
25
|
+
# Name <email address>
|
|
26
|
+
|
|
27
|
+
# Please keep the list sorted.
|
|
28
|
+
|
|
29
|
+
Dominic Battré <battre@chromium.org>
|
|
30
|
+
Doug Kwan <dougkwan@google.com>
|
|
31
|
+
Dmitriy Vyukov <dvyukov@google.com>
|
|
32
|
+
John Millikin <jmillikin@gmail.com>
|
|
33
|
+
Mike Nazarewicz <mpn@google.com>
|
|
34
|
+
Nico Weber <thakis@chromium.org>
|
|
35
|
+
Pawel Hajdan <phajdan.jr@gmail.com>
|
|
36
|
+
Rob Pike <r@google.com>
|
|
37
|
+
Russ Cox <rsc@swtch.com>
|
|
38
|
+
Sanjay Ghemawat <sanjay@google.com>
|
|
39
|
+
Stefano Rivera <stefano.rivera@gmail.com>
|
|
40
|
+
Srinivasan Venkatachary <vsri@google.com>
|
|
41
|
+
Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
|