2024-01-03 06:37:52 +08:00
|
|
|
set(DIRECTXTK_TAG dec2023)
|
2022-11-01 04:15:33 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2019-08-14 05:27:28 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectXTK12
|
2023-04-06 07:30:02 +08:00
|
|
|
REF ${DIRECTXTK_TAG}
|
2024-01-03 06:37:52 +08:00
|
|
|
SHA512 7946ccd4ea9199ac981079462d1ff4621a3b10e70359948a9209a1d192ec936f0ea336bd8b6c2adaa63ace04a94950f933b1013242cadb9f7a22cd191c73699e
|
[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
|
2016-11-28 10:02:07 +08:00
|
|
|
)
|
|
|
|
|
2022-05-12 07:47:49 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2023-01-05 06:44:07 +08:00
|
|
|
spectre ENABLE_SPECTRE_MITIGATION
|
2022-05-12 07:47:49 +08:00
|
|
|
xaudio2-9 BUILD_XAUDIO_WIN10
|
|
|
|
xaudio2redist BUILD_XAUDIO_REDIST
|
|
|
|
)
|
|
|
|
|
2023-03-09 06:06:20 +08:00
|
|
|
set(EXTRA_OPTIONS -DBUILD_TESTING=OFF)
|
|
|
|
|
|
|
|
if(NOT VCPKG_TARGET_IS_XBOX)
|
|
|
|
set(DXCPATH "${CURRENT_HOST_INSTALLED_DIR}/tools/directx-dxc")
|
|
|
|
list(APPEND EXTRA_OPTIONS -DBUILD_DXIL_SHADERS=ON "-DDIRECTX_DXC_PATH=${DXCPATH}")
|
|
|
|
endif()
|
|
|
|
|
2021-10-16 10:34:23 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-03-09 06:06:20 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS} ${EXTRA_OPTIONS}
|
2019-08-14 05:27:28 +08:00
|
|
|
)
|
2016-11-28 10:02:07 +08:00
|
|
|
|
2021-10-16 10:34:23 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-01-03 06:37:52 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-06-23 03:22:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/directxtk12)
|
2020-12-29 09:28:53 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
|
2021-01-16 07:24:06 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
MAKESPRITEFONT_EXE
|
2022-11-01 04:15:33 +08:00
|
|
|
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/MakeSpriteFont.exe"
|
|
|
|
FILENAME "makespritefont-${DIRECTXTK_TAG}.exe"
|
2024-01-03 06:37:52 +08:00
|
|
|
SHA512 f5872c479e537ae02d32039dce9ed4820c834de37795365b02cb5ae0d9241fb2ece58c1555335c57394a7cfbca95202a91ddda4e77d6bdd484c6cf6e7b9d6e0e
|
2020-12-29 09:28:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
2016-11-28 10:02:07 +08:00
|
|
|
|
2023-04-06 07:30:02 +08:00
|
|
|
file(INSTALL "${MAKESPRITEFONT_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
2021-01-16 07:24:06 +08:00
|
|
|
|
2022-11-01 04:15:33 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont-${DIRECTXTK_TAG}.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont.exe")
|
2023-04-06 07:30:02 +08:00
|
|
|
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(
|
|
|
|
XWBTOOL_EXE
|
|
|
|
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/XWBTool.exe"
|
|
|
|
FILENAME "xwbtool-${DIRECTXTK_TAG}.exe"
|
2024-01-03 06:37:52 +08:00
|
|
|
SHA512 e30f786e72e0a9ec84b359e768d3ea024c7e5611ea274b01189ee30faa2ce976579b42307edd4979fa39bdae7f0bc6041463723db3e97399e98575985b15d5da
|
2023-04-06 07:30:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
|
|
|
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool-${DIRECTXTK_TAG}.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool.exe")
|
|
|
|
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(
|
|
|
|
XWBTOOL_EXE
|
|
|
|
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/XWBTool_arm64.exe"
|
|
|
|
FILENAME "xwbtool-${DIRECTXTK_TAG}-arm64.exe"
|
2024-01-03 06:37:52 +08:00
|
|
|
SHA512 8b01d120954e29e532ded2a38bd3ba883310e48655eab6af884ddcb9c4516640b59ed0d970d01eec189c7b4d04593b51a79739895761f2514c1e8f0df8504d99
|
2023-04-06 07:30:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
|
|
|
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool-${DIRECTXTK_TAG}-arm64.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool.exe")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
endif()
|
2019-08-14 05:27:28 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-08-14 05:27:28 +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")
|