2024-06-07 17:18:05 +08:00
|
|
|
set(DIRECTXMESH_TAG jun2024)
|
2022-11-01 04:15:33 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-12-23 22:50:33 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectXMesh
|
2023-04-06 07:30:02 +08:00
|
|
|
REF ${DIRECTXMESH_TAG}
|
2024-06-07 17:18:05 +08:00
|
|
|
SHA512 883149da7eefbff7630aa1d5b0e0104dbb7eca9153d385dd35b82319d3091f7ff75a353ef29f1f3ec5f34b4a89f5d08d4a69bd70842134db5ebe36111c654e71
|
[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
|
2017-01-11 22:42:37 +08:00
|
|
|
)
|
|
|
|
|
2020-10-24 02:50:19 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
dx12 BUILD_DX12
|
2023-01-05 06:44:07 +08:00
|
|
|
spectre ENABLE_SPECTRE_MITIGATION
|
2023-04-06 07:30:02 +08:00
|
|
|
tools BUILD_TOOLS
|
2017-01-11 22:42:37 +08:00
|
|
|
)
|
|
|
|
|
2021-01-13 12:01:37 +08:00
|
|
|
if (VCPKG_HOST_IS_LINUX)
|
|
|
|
message(WARNING "Build ${PORT} requires GCC version 9 or later")
|
|
|
|
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}
|
2017-01-11 22:42:37 +08:00
|
|
|
)
|
2019-08-14 05:27:28 +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/directxmesh)
|
2017-01-11 22:42:37 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
2020-12-29 09:28:53 +08:00
|
|
|
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(
|
|
|
|
MESHCONVERT_EXE
|
|
|
|
URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert.exe"
|
|
|
|
FILENAME "meshconvert-${DIRECTXMESH_TAG}.exe"
|
2024-06-07 17:18:05 +08:00
|
|
|
SHA512 fe1b2faab2f138a09706c956b5283a8f6e915bc57e670243f1ef21be85c6d030e45eff8b4e46551b7ccaa70e99651efbe99c63a927a24125f4bf1567d9f7698d
|
2023-04-06 07:30:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
|
|
|
"${MESHCONVERT_EXE}"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
2021-01-16 07:24:06 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert-${DIRECTXMESH_TAG}.exe" "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert.exe")
|
2021-04-10 00:54:41 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
2021-04-10 00:54:41 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
MESHCONVERT_EXE
|
|
|
|
URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert_arm64.exe"
|
|
|
|
FILENAME "meshconvert-${DIRECTXMESH_TAG}-arm64.exe"
|
2024-06-07 17:18:05 +08:00
|
|
|
SHA512 d4be686a2e65f1385e71ed0a23e17827ae4717ab61e54c80c72170df60cc29cb3f5408b04ce9bec562519c0238c05ed976e04a58ec327775bc0d26cf13971c73
|
2021-04-10 00:54:41 +08:00
|
|
|
)
|
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
file(INSTALL
|
|
|
|
"${MESHCONVERT_EXE}"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
|
|
|
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert-${DIRECTXMESH_TAG}-arm64.exe" "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert.exe")
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES meshconvert
|
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
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
2019-08-14 05:27:28 +08:00
|
|
|
endif()
|
2017-01-11 22:42:37 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
[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")
|