mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 18:28:59 +08:00
defe7b7fb3
* [draco] Update to v1.5.6 * [draco] Update baseline * [draco] Fix pkgconfig * [draco] Update version * [draco] Use VERSION variable for git ref Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * [draco] Revert line ending change * [draco] Update version --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
38 lines
900 B
CMake
38 lines
900 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/draco
|
|
REF "${VERSION}"
|
|
SHA512 d4bc48aeac23aba377d1770a46e6676cb01596a436493385fb0c4ef9ba3f0fae42027232131a3d438250909aff4311353e114925753d045cc585af42660be0b1
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-compile-error-uwp.patch
|
|
fix-uwperror.patch
|
|
fix-pkgconfig.patch
|
|
disable-symlinks.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/${PORT})
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Install tools and plugins
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES
|
|
draco_encoder
|
|
draco_decoder
|
|
AUTO_CLEAN
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|