2024-09-06 15:13:47 +08:00
|
|
|
set(UVATLAS_TAG sep2024)
|
2022-11-01 04:15:33 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/UVAtlas
|
2023-04-06 07:30:02 +08:00
|
|
|
REF ${UVATLAS_TAG}
|
2024-09-06 15:13:47 +08:00
|
|
|
SHA512 89807b52a3802f3147415d1d42dda279c04c17c5fa23e2516f6f1e72f00205f5a45842970d06ddfc86c0aae0d7c432c440a7650d94dc786b5bdc62db809e9498
|
[directxmath, directxtex, directxmesh, directxtk, directxtk12, uvatlas] ports updated (#23332)
* [directxmath, directxmesh, directxtex, directxtk, directxtk12, uvatlas] ports updated to February 2022 release
* Update baseline
* Updated directxmath to use non-deprecated functions
* Refresh baseline
* Updated for master-to-main rename
* Refresh baseline
* Remove en-us specific doc link
* Refresh version baseline
2022-03-03 06:58:20 +08:00
|
|
|
HEAD_REF main
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
|
|
|
|
2021-06-22 05:20:45 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
eigen ENABLE_USE_EIGEN
|
2023-01-05 06:44:07 +08:00
|
|
|
spectre ENABLE_SPECTRE_MITIGATION
|
2023-04-06 07:30:02 +08:00
|
|
|
tools BUILD_TOOLS
|
2021-06-22 05:20:45 +08:00
|
|
|
)
|
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if (VCPKG_HOST_IS_LINUX)
|
|
|
|
message(WARNING "Build ${PORT} requires GCC version 9 or later")
|
2020-09-28 08:33:19 +08:00
|
|
|
endif()
|
|
|
|
|
2021-10-02 08:03:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-06 07:30:02 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-02-27 16:24:49 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
|
|
|
|
2021-10-02 08:03:20 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-01-03 06:37:52 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-08-02 03:53:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/uvatlas)
|
2020-12-29 09:28:53 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/uvatlas/")
|
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if((VCPKG_TARGET_ARCHITECTURE STREQUAL x64) AND (NOT ("eigen" IN_LIST FEATURES)))
|
2021-01-16 07:24:06 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
UVATLASTOOL_EXE
|
|
|
|
URLS "https://github.com/Microsoft/UVAtlas/releases/download/${UVATLAS_TAG}/uvatlastool.exe"
|
|
|
|
FILENAME "uvatlastool-${UVATLAS_TAG}.exe"
|
2024-09-06 15:13:47 +08:00
|
|
|
SHA512 7e747fd8ae93f00d2691af748d6d7c9c42773a704132d5e9cc3230dfaff93490bf3e7273a08af5c2a92cd5344d881255d0788df3f13f288767b11789d8775da0
|
2023-04-06 07:30:02 +08:00
|
|
|
)
|
2021-04-10 00:54:41 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
file(INSTALL
|
|
|
|
"${UVATLASTOOL_EXE}"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/uvatlas/")
|
2021-04-10 00:54:41 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/uvatlas/uvatlastool-${UVATLAS_TAG}.exe" "${CURRENT_PACKAGES_DIR}/tools/uvatlas/uvatlastool.exe")
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES uvatlastool
|
2024-02-27 16:24:49 +08:00
|
|
|
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin"
|
2023-04-06 07:30:02 +08:00
|
|
|
)
|
2021-04-10 00:54:41 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
endif()
|
2020-12-29 09:28:53 +08:00
|
|
|
endif()
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-05-03 13:57:43 +08:00
|
|
|
|
[directxmesh, directxtex, directxtk, uvatlas, dxut, effects11] June 2023 update (#32033)
* [directxmesh, directxtex, directxtk, uvatlas, dxut, effects11] Update for June 13, 2023 release
* Minor format fix
* Update baseline
* Upstream fixes to CMake targets dependency handling
* Update baseline
2023-06-22 13:39:47 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-05-02 06:25:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|