mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 15:55:39 +08:00
45287bdd9d
* [zydis] update to v4.0 * update version * revert patch formating * update version * fix eror * fix hash * [polyhook2]: update to 2023.05.16 * CI [skip actions] * CI --------- Co-authored-by: Jonliu1993 <13720414433@163.com>
45 lines
1.4 KiB
CMake
45 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO stevemk14ebr/PolyHook_2_0
|
|
REF 1ff1d0285fc28bfd206aa0a38ae93022a5ad9be1
|
|
SHA512 056b5ce76683e130e053e1f62ccc3fbd060670ac74e0235f100d16bba36707bad5e84d2100fd2cc3a67a7c294eeaf5fb72a213f3d3af099013fe13c92575cc8b
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
exception POLYHOOK_FEATURE_EXCEPTION
|
|
detours POLYHOOK_FEATURE_DETOURS
|
|
inlinentd POLYHOOK_FEATURE_INLINENTD
|
|
pe POLYHOOK_FEATURE_PE
|
|
virtuals POLYHOOK_FEATURE_VIRTUALS
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIB)
|
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL "static")
|
|
set(BUILD_STATIC_RUNTIME ON)
|
|
else()
|
|
set(BUILD_STATIC_RUNTIME OFF)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DPOLYHOOK_BUILD_SHARED_LIB=${BUILD_SHARED_LIB}
|
|
-DPOLYHOOK_BUILD_STATIC_RUNTIME=${BUILD_STATIC_RUNTIME}
|
|
-DPOLYHOOK_USE_EXTERNAL_ASMJIT=ON
|
|
-DPOLYHOOK_USE_EXTERNAL_ASMTK=ON
|
|
-DPOLYHOOK_USE_EXTERNAL_ZYDIS=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME PolyHook_2 CONFIG_PATH lib/PolyHook_2)
|
|
|
|
# Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|