mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[zycore] Add new port (#27195)
* [zycore] new port * [zycore] add version files * [zycore] add license field to vcpkg.json * [zycore] fix version * [zycore] fix port files' format Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [zycore]: update git-tree version * [zycore]: fix description Co-authored-by: Florian Bernd <flobernd@users.noreply.github.com> * [zycore]: update git-tree version * [zycore]: optimize portfile.cmake * [zycore]: optimize port files Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Florian Bernd <flobernd@users.noreply.github.com>
This commit is contained in:
parent
4fa284dc00
commit
0967abd175
12
ports/zycore/fix-install.patch
Normal file
12
ports/zycore/fix-install.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d17f7d7..e34f508 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -208,6 +208,7 @@ install(FILES
|
||||
|
||||
install(TARGETS "Zycore" EXPORT "zycore-targets"
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
install(EXPORT "zycore-targets"
|
28
ports/zycore/portfile.cmake
Normal file
28
ports/zycore/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
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_SHARED)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS -DZYCORE_BUILD_SHARED_LIB=${ZYCORE_BUILD_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
CONFIG_PATH lib/cmake/zycore
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
17
ports/zycore/vcpkg.json
Normal file
17
ports/zycore/vcpkg.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "zycore",
|
||||
"version": "1.3.0",
|
||||
"description": "Provides platform independent types, macros and a fallback for environments without LibC.",
|
||||
"homepage": "https://github.com/zyantific/zycore-c",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -8164,6 +8164,10 @@
|
||||
"baseline": "2021-04-23",
|
||||
"port-version": 1
|
||||
},
|
||||
"zycore": {
|
||||
"baseline": "1.3.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"zydis": {
|
||||
"baseline": "3.2.1",
|
||||
"port-version": 0
|
||||
|
9
versions/z-/zycore.json
Normal file
9
versions/z-/zycore.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "fde401adae59d8a172f55fda3899f258668e1c1b",
|
||||
"version": "1.3.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user