-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[zycore] Add new port #27195
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
[zycore] Add new port #27195
Changes from 6 commits
0a2284a
15a8e49
ab1162d
6b71441
fcd6fa5
5b334b8
63b4ed4
2f4b3f1
126ca78
d8ec843
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index d17f7d7..44ac4a1 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -207,8 +207,11 @@ install(FILES | ||
| ) | ||
|
|
||
| install(TARGETS "Zycore" EXPORT "zycore-targets" | ||
| - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
| + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
| +) | ||
| + | ||
|
|
||
| install(EXPORT "zycore-targets" | ||
| NAMESPACE "Zycore::" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO zyantific/zycore-c | ||
| REF 4a8b5e2ab4d6ee73aa92d04bc318fed607394e67 | ||
| SHA512 c707f5e07411d9f00fa59e3c382345009f225ed9406063b9863604f15a9c45c9a32bc9c3100f08d9c5800cc2254f71bfae817979b85bc604739ca1ee854c94e5 | ||
| HEAD_REF master | ||
| PATCHES | ||
| fix-install.patch | ||
| ) | ||
|
|
||
| string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic ZYCORE_BUILD_STATIC) | ||
fre3dm4n marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS -DZYCORE_BUILD_SHARED_LIB=${ZYCORE_BUILD_STATIC} | ||
fre3dm4n marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
|
|
||
|
|
||
| vcpkg_cmake_config_fixup( | ||
| CONFIG_PATH lib/cmake/${PORT} | ||
|
||
| ) | ||
|
|
||
| configure_file(${SOURCE_PATH}/LICENSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) | ||
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "zycore", | ||
| "version": "1.3.0", | ||
| "description": "Internal library of Zydis", | ||
fre3dm4n marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "homepage": "https://github.com/zyantific/zycore-c", | ||
| "license": "MIT", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "8bff14ed238b49e8769b9630d8d0c89313492be7", | ||
| "version": "1.3.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch can be minimized. We only need to insert
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}in the middle.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done