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
|
2020-09-28 08:59:45 +08:00
|
|
|
REF 83b0922745981a35be16e2907bdbb749ebf2bf43 # 1.3.6
|
|
|
|
SHA512 29b270d749c5c0efcf791aaae7e33e2ae4404103ad8849d73aaca71492a3780d2fcaec01ec225da886bce2ab20ec14b8cf2d9e0976810cdaee557f97b3b0d9b8
|
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
|
2019-06-07 10:03:08 +08:00
|
|
|
fix-uwperror.patch
|
2017-07-06 05:16:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-02-17 21:02:40 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/draco/cmake)
|
|
|
|
|
2017-07-06 05:16:34 +08:00
|
|
|
# Install tools and plugins
|
|
|
|
file(GLOB TOOLS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*.exe")
|
|
|
|
if(TOOLS)
|
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/draco)
|
|
|
|
file(COPY ${TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/draco)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
2018-02-17 21:02:40 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/draco)
|
2017-07-06 05:16:34 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
2018-02-17 21:02:40 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/draco)
|
|
|
|
|
2017-07-06 05:16:34 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-02-17 21:02:40 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-07-06 05:16:34 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-09-28 08:59:45 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|