2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-07-06 05:16:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/draco
|
2022-07-06 02:06:41 +08:00
|
|
|
REF bd1e8de7dd0596c2cbe5929cbe1f5d2257cd33db #v1.5.2
|
|
|
|
SHA512 6ae7e72a9f6f55563f8f612084d38bff1d2e10934fa84aad59538d323e59d205764ed364c753a55d80e9ffc7c17f542f6475b3f922edcb9085cbd83a942759d0
|
2017-07-06 05:16:34 +08:00
|
|
|
HEAD_REF master
|
2019-03-22 14:20:18 +08:00
|
|
|
PATCHES
|
|
|
|
fix-compile-error-uwp.patch
|
2021-05-12 04:57:05 +08:00
|
|
|
fix-uwperror.patch
|
2021-11-05 03:57:01 +08:00
|
|
|
disable-symlinks.patch
|
2017-07-06 05:16:34 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-06 05:16:34 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-07-06 05:16:34 +08:00
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake)
|
2021-09-28 11:53:48 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-11-05 03:57:01 +08:00
|
|
|
|
2017-07-06 05:16:34 +08:00
|
|
|
# Install tools and plugins
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES
|
|
|
|
draco_encoder
|
|
|
|
draco_decoder
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
2017-07-06 05:16:34 +08:00
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-07-06 05:16:34 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-05 03:57:01 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|