early-access version 2853
This commit is contained in:
10
externals/vcpkg/ports/minhook/fix-usage.patch
vendored
Executable file
10
externals/vcpkg/ports/minhook/fix-usage.patch
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
diff --git a/cmake/minhook-config.cmake.in b/cmake/minhook-config.cmake.in
|
||||
index 14e6463..28fa17c 100644
|
||||
--- a/cmake/minhook-config.cmake.in
|
||||
+++ b/cmake/minhook-config.cmake.in
|
||||
@@ -36,4 +36,4 @@ set(MINHOOK_FOUND ON)
|
||||
set_and_check(MINHOOK_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/")
|
||||
set_and_check(MINHOOK_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib")
|
||||
|
||||
-include("${PACKAGE_PREFIX_DIR}/lib/minhook/minhook-targets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/minhook-targets.cmake")
|
||||
40
externals/vcpkg/ports/minhook/portfile.cmake
vendored
Executable file
40
externals/vcpkg/ports/minhook/portfile.cmake
vendored
Executable file
@@ -0,0 +1,40 @@
|
||||
if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
||||
set(BUILD_ARCH "Win32")
|
||||
set(OUTPUT_DIR "Win32")
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
||||
set(BUILD_ARCH "x64")
|
||||
set(OUTPUT_DIR "Win64")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
# Download files to enable CMake support for minhook - Adds CMakeLists.txt and minhook-config.cmake.in
|
||||
vcpkg_download_distfile(
|
||||
CMAKE_SUPPORT_PATCH
|
||||
URLS https://github.com/TsudaKageyu/minhook/commit/3f2e34976c1685ee372a09f54c0c8c8f4240ef90.patch
|
||||
FILENAME minhook-cmake-support.patch
|
||||
SHA512 5f353b167e2c31e5e06258420c78fbae0095368cf687ff06a350d6b69b30476824785dde5dbcea3e30ff827e7cdb293727a73e6b1e6875f00aa891b2980c3877
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO TsudaKageyu/minhook
|
||||
REF v1.3.3
|
||||
SHA512 9f10c92a926a06cde1e4092b664a3aab00477e8b9f20cee54e1d2b3747fad91043d199a2753f7e083497816bbefc5d75d9162d2098dd044420dbca555e80b060
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
"${CMAKE_SUPPORT_PATCH}"
|
||||
fix-usage.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/minhook)
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
17
externals/vcpkg/ports/minhook/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/minhook/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "minhook",
|
||||
"version": "1.3.3",
|
||||
"port-version": 3,
|
||||
"description": "The Minimalistic x86/x64 API Hooking Library for Windows.",
|
||||
"supports": "windows & !uwp & !arm",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user