mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 19:09:01 +08:00
Adding re2 port
This commit is contained in:
parent
3f053c15f5
commit
03ced8199b
3
ports/re2/CONTROL
Normal file
3
ports/re2/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: re2
|
||||
Version: 2017-12-01
|
||||
Description: RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
|
19
ports/re2/portfile.cmake
Normal file
19
ports/re2/portfile.cmake
Normal file
@ -0,0 +1,19 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/re2-2017-12-01)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/google/re2/archive/2017-12-01.zip"
|
||||
FILENAME "re2-2017-12-01.zip"
|
||||
SHA512 64e9b8673201fd3b0253acfd9fcb2985e88db69724e31a9c839d3b5cddfa1b91cf9e4fb70b12250fd4d6a7934a50550f6000627607227ed97bca329bfeb5bcc4
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DRE2_BUILD_TESTING=1 -DBUILD_SHARED_LIBS=1 -DBUILD_TESTING=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
Loading…
Reference in New Issue
Block a user