vcpkg/ports/draco/portfile.cmake

40 lines
1.1 KiB
CMake
Raw Normal View History

2017-07-06 05:16:34 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/draco
REF "${VERSION}"
SHA512 d4bc48aeac23aba377d1770a46e6676cb01596a436493385fb0c4ef9ba3f0fae42027232131a3d438250909aff4311353e114925753d045cc585af42660be0b1
2017-07-06 05:16:34 +08:00
HEAD_REF master
PATCHES
fix-compile-error-uwp.patch
fix-uwperror.patch
fix-pkgconfig.patch
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()
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
)
vcpkg_cmake_install()
2023-12-12 17:18:35 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/draco)
vcpkg_fixup_pkgconfig()
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")