2017-07-06 05:16:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/draco
|
2023-05-06 01:55:33 +08:00
|
|
|
REF "${VERSION}"
|
2024-02-08 14:26:55 +08:00
|
|
|
SHA512 8b444744cdf12fb9d276916eb2ff0735cd1a6497b65b88813ec457fe2169db987db62e3db253a7d0f3ae7d45ae6502e8a9f8c0b81abde73e07b3bec69f9dc170
|
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
|
2023-05-06 01:55:33 +08:00
|
|
|
fix-pkgconfig.patch
|
2021-11-05 03:57:01 +08:00
|
|
|
disable-symlinks.patch
|
2023-12-12 17:18:35 +08:00
|
|
|
install-linkage.diff
|
2017-07-06 05:16:34 +08:00
|
|
|
)
|
|
|
|
|
2023-12-12 17:18:35 +08:00
|
|
|
if(VCPKG_TARGET_IS_EMSCRIPTEN)
|
|
|
|
set(ENV{EMSCRIPTEN} "${EMSCRIPTEN_ROOT}")
|
|
|
|
endif()
|
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-12-12 17:18:35 +08:00
|
|
|
OPTIONS
|
|
|
|
-DPYTHON_EXECUTABLE=: # unused with DRACO_JS_GLUE off
|
|
|
|
-DDRACO_JS_GLUE=OFF
|
2017-07-06 05:16:34 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:57:01 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-12-12 17:18:35 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/draco)
|
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
|
2023-12-12 17:18:35 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_EMSCRIPTEN)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES draco_encoder draco_decoder AUTO_CLEAN)
|
|
|
|
endif()
|
2017-07-06 05:16:34 +08:00
|
|
|
|
2022-10-10 04:59:27 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-07-06 05:16:34 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-10-10 04:59:27 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|