2020-04-27 22:06:49 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO trailofbits/pe-parse
|
2021-10-27 14:40:12 +08:00
|
|
|
REF v1.3.0
|
|
|
|
SHA512 b723e90821e0ac67b4d6b15e5a46cf13544f21380a4d2add013eedcaa309e1be2cff6789247397c6fb4a938e4a240a835cbe21c8221bd558a4fccf8e93ce1548
|
2020-04-27 22:06:49 +08:00
|
|
|
HEAD_REF master
|
2021-10-27 14:40:12 +08:00
|
|
|
PATCHES
|
|
|
|
arm64-windows-fix.patch
|
2020-04-27 22:06:49 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_COMMAND_LINE_TOOLS=OFF
|
2020-04-27 22:06:49 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-04-27 22:06:49 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/pe-parse")
|
2020-04-27 22:06:49 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-04-27 22:06:49 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|