2019-02-13 08:56:35 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-26 05:50:30 +08:00
|
|
|
REPO microsoft/Detours
|
2019-02-13 08:56:35 +08:00
|
|
|
REF v4.0.1
|
|
|
|
SHA512 0a9c21b8222329add2de190d2e94d99195dfa55de5a914b75d380ffe0fb787b12e016d0723ca821001af0168fd1643ffd2455298bf3de5fdc155b3393a3ccc87
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
find-jmp-bounds-arm64.patch
|
|
|
|
)
|
|
|
|
|
2019-11-02 02:45:30 +08:00
|
|
|
vcpkg_build_nmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PROJECT_SUBPATH "src"
|
|
|
|
PROJECT_NAME "Makefile"
|
|
|
|
OPTIONS "PROCESSOR_ARCHITECTURE=${VCPKG_TARGET_ARCHITECTURE}"
|
|
|
|
NO_DEBUG
|
2019-02-13 08:56:35 +08:00
|
|
|
)
|
|
|
|
|
2019-11-02 02:45:30 +08:00
|
|
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/lib.${VCPKG_TARGET_ARCHITECTURE}/ DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/lib.${VCPKG_TARGET_ARCHITECTURE}/ DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
|
|
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/include DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME detours)
|
|
|
|
|
2019-10-26 05:50:30 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|