2020-07-14 23:38:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zeux/meshoptimizer
|
2021-09-29 23:36:24 +08:00
|
|
|
REF v0.16
|
|
|
|
SHA512 CC6D28359FB99A615E1046A4AF1B247CBC6EA0266D9E7F41EA0516C1FC09FA1E67376071DAF138A126C77BCA3BAF9D565636ED0E3ADF045F1A08498C38B7A7E7
|
2020-07-14 23:38:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIBS)
|
|
|
|
|
2021-09-29 23:36:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-07-14 23:38:18 +08:00
|
|
|
OPTIONS
|
|
|
|
-DMESHOPT_BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
|
|
|
)
|
|
|
|
|
2021-09-29 23:36:24 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-07-14 23:38:18 +08:00
|
|
|
|
2021-09-29 23:36:24 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-07-14 23:38:18 +08:00
|
|
|
|
2021-09-29 23:36:24 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/meshoptimizer)
|
2020-07-14 23:38:18 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-29 23:36:24 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-07-14 23:38:18 +08:00
|
|
|
|
2021-09-29 23:36:24 +08:00
|
|
|
vcpkg_copy_pdbs()
|