-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[chimera] Add new port #10132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[chimera] Add new port #10132
Changes from 8 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a008fd6
add a port for chimera
ZMZ91 35a2f76
1. remove deprecated include 2. clear buildtrees/ before installing 3…
ZMZ91 74d0462
refine port file
ZMZ91 dda6223
1. add Build-Depends: pcre 2. add usage
ZMZ91 6c0760d
add other build depdents by hyperscan
ZMZ91 33d2618
remove debugging messages
ZMZ91 a2b0db5
note that not support windows so far
ZMZ91 e8a39aa
Merge branch 'master' into feature/port/chimera
3d056bf
1. add Supports: linux|osx; 2. add chimera:arm64-windows=fail
75559e4
Merge branch 'master' of github.com:microsoft/vcpkg into feature/port…
2d8b684
Merge branch 'master' of github.com:microsoft/vcpkg into feature/port…
a4b9263
resolve conflicts from master
dd4c62d
update baseline
883d4af
update baseline
66060c7
update baseline
95a3f3b
use function vcpkg_from_github
1e85c17
Merge branch 'feature/port/chimera' of github.com:ZMZ91/vcpkg into fe…
79e33af
update baseline
4f2ff77
update to latest hyperscan
b0d270c
remove baseline rules due to Supports added in CONTROL
be34193
Revert baseline changes.
90e7ada
Revert baseline changes.
babc9b9
update due to JackBoosY's change
1fd9412
Update ports/chimera/CONTROL
JackBoosY 74bf3d0
Update ports/chimera/CONTROL
JackBoosY 06a0ae1
Update ports/chimera/portfile.cmake
JackBoosY 707800c
[chimera] Fix unix build
498b0a7
[chimera] Fix include path
cd48b8a
Disable osx build
JackBoosY e136f08
[hyperscan chimera] fix C++ standard, and remove -Werror
strega-nil 2822f98
remove Supports: !osx
strega-nil 6b0d52c
Merge branch 'master' of github.com:microsoft/vcpkg into feature/port…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Source: chimera | ||
| Version: 5.2.1 | ||
| Homepage: https://github.com/intel/hyperscan | ||
| Description: Chimera is a software regular expression matching engine that is a hybrid of Hyperscan and PCRE. The design goals of Chimera are to fully support PCRE syntax as well as to take advantage of the high performance nature of Hyperscan. | ||
| Build-Depends: boost-array, boost-chrono, boost-config, boost-core, boost-crc, boost-detail, boost-functional, boost-regex, boost-system, boost-thread, boost-type-traits, boost-unordered, boost-utility, boost-dynamic-bitset, boost-random, boost-graph, boost-multi-array, boost-icl, boost-ptr-container, pcre, python3, ragel | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| vcpkg_fail_port_install(ON_TARGET "Windows") | ||
|
|
||
| set(CHIMERA_VERSION "5.2.1") | ||
| set(PCRE_VERSION "8.41") | ||
|
|
||
| # download hyperscan source code which is required by and also contains chimera | ||
| vcpkg_download_distfile(ARCHIVE_HYPERSCAN | ||
| URLS "https://github.com/intel/hyperscan/archive/d79973efb1fcf5ed338122882c1f896829767fb6.zip" | ||
|
JackBoosY marked this conversation as resolved.
Outdated
|
||
| FILENAME "d79973efb1fcf5ed338122882c1f896829767fb6.zip" | ||
| SHA512 8bf6e8c323ab3c4b3f26d871a9f89e666edba598925c99ad2f14b3e849792c51cb87bc30ad54008ec813603a9a7c94d689ad4344e1a45c10b2a891e434a678f3 | ||
| ) | ||
| # extract hyperscan source code which contains chimera code in a sub folder | ||
| vcpkg_extract_source_archive_ex( | ||
| OUT_SOURCE_PATH CHIMERA_SOURCE_PATH | ||
| ARCHIVE ${ARCHIVE_HYPERSCAN} | ||
| REF ${CHIMERA_VERSION} | ||
| ) | ||
|
|
||
| # downlaod pcre-8.41 source code which is required by chimera | ||
| vcpkg_download_distfile(ARCHIVE_PCRE | ||
| URLS "https://ftp.pcre.org/pub/pcre/pcre-8.41.zip" | ||
| FILENAME "pcre-8.41.zip" | ||
| SHA512 a3fd57090a5d9ce9d608aeecd59f42f04deea5b86a5c5899bdb25b18d8ec3a89b2b52b62e325c6485a87411eb65f1421604f80c3eaa653bd7dbab05ad22795ea | ||
| ) | ||
|
|
||
| # extract pcre source code to hyperscan root | ||
| vcpkg_extract_source_archive_ex( | ||
| OUT_SOURCE_PATH PCRE_SOURCE_PATH | ||
| ARCHIVE ${ARCHIVE_PCRE} | ||
| WORKING_DIRECTORY ${CHIMERA_SOURCE_PATH} | ||
| ) | ||
|
|
||
| # rename the pcre source code folder to pcre-8.41 which is required by chimera | ||
| file(REMOVE_RECURSE "${CHIMERA_SOURCE_PATH}/pcre-${PCRE_VERSION}") | ||
| file(RENAME "${PCRE_SOURCE_PATH}" "${CHIMERA_SOURCE_PATH}/pcre-${PCRE_VERSION}") | ||
|
|
||
|
ZMZ91 marked this conversation as resolved.
|
||
| vcpkg_configure_cmake( | ||
| SOURCE_PATH ${CHIMERA_SOURCE_PATH} | ||
| PREFER_NINJA | ||
| ) | ||
|
|
||
| vcpkg_install_cmake() | ||
|
|
||
| # remove debug dir | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
|
||
| # Handle copyright | ||
| file(INSTALL ${CHIMERA_SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| The package @PORT@:@TARGET_TRIPLET@ provides CMake targets: | ||
|
|
||
| find_library(CHIMERA_LIBRARY NAMES chimera) | ||
| find_library(HS_LIBRARY NAMES hs) | ||
| find_path(CHIMERA_INCLUDE_DIR hs) | ||
| find_library(PCRE_LIBRARY NAMES pcre) | ||
|
|
||
| target_include_directories(main PUBLIC ${CHIMERA_INCLUDE_DIR}) | ||
| target_link_libraries(main ${CHIMERA_LIBRARY} ${HS_LIBRARY} ${PCRE_LIBRARY}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.