2020-12-29 09:28:53 +08:00
vcpkg_check_linkage ( ONLY_STATIC_LIBRARY )
2022-05-12 07:47:49 +08:00
if ( VCPKG_TARGET_IS_MINGW )
message ( NOTICE "Building ${PORT} for MinGW requires the HLSL Compiler dxc.exe also be in the PATH. See https://github.com/microsoft/DirectXShaderCompiler." )
endif ( )
2019-08-14 05:27:28 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O M i c r o s o f t / D i r e c t X T K 1 2
2022-05-12 07:47:49 +08:00
R E F m a y 2 0 2 2
S H A 5 1 2 a 3 0 6 7 9 2 c 1 3 4 4 5 8 7 6 6 f f 0 c e 2 6 7 2 b 4 7 6 9 d 2 6 1 0 8 0 2 5 8 2 0 7 1 7 3 a a f f 9 e 5 9 c 3 a 9 7 5 8 5 9 d f 2 a 5 4 0 e a 8 5 3 7 e 2 8 f c 2 a a 1 6 9 3 2 3 7 c 3 6 0 9 6 6 5 b 8 7 c 4 c f 1 d 9 1 1 5 a c 4 1 c 7 a 4 5 f f 5 d 6 1
[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
H E A D _ R E F m a i n
2016-11-28 10:02:07 +08:00
)
2022-05-12 07:47:49 +08:00
vcpkg_check_features (
O U T _ F E A T U R E _ O P T I O N S F E A T U R E _ O P T I O N S
F E A T U R E S
x a u d i o 2 - 9 B U I L D _ X A U D I O _ W I N 1 0
x a u d i o 2 r e d i s t B U I L D _ X A U D I O _ R E D I S T
)
2021-10-16 10:34:23 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2022-05-12 07:47:49 +08:00
O P T I O N S $ { F E A T U R E _ O P T I O N S } - D B U I L D _ D X I L _ S H A D E R S = O N
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 ( )
2022-05-12 07:47:49 +08:00
vcpkg_cmake_config_fixup ( CONFIG_PATH share/directxtk12/cmake )
2020-12-29 09:28:53 +08:00
if ( ( VCPKG_HOST_IS_WINDOWS ) AND ( VCPKG_TARGET_ARCHITECTURE MATCHES x64 ) )
2021-01-16 07:24:06 +08:00
vcpkg_download_distfile (
M A K E S P R I T E F O N T _ E X E
2022-05-12 07:47:49 +08:00
U R L S " h t t p s : / / g i t h u b . c o m / M i c r o s o f t / D i r e c t X T K 1 2 / r e l e a s e s / d o w n l o a d / m a y 2 0 2 2 / M a k e S p r i t e F o n t . e x e "
F I L E N A M E " m a k e s p r i t e f o n t - m a y 2 0 2 2 . e x e "
S H A 5 1 2 6 f 8 8 f e c 7 8 7 f 9 d b 0 8 2 3 c c 0 c 5 a a 3 d 2 5 7 9 2 4 8 c 3 d e a 5 6 6 9 0 9 a 8 d 4 1 4 1 7 f 4 2 a 3 b d 2 a f 1 4 7 f f 9 a f 8 2 a 3 b 9 6 a 3 b 1 d 0 f 8 6 6 1 d f f d a 2 7 5 3 0 5 6 5 b b 8 f e d 0 a 2 e 7 d 8 1 9 d 4 7 1 e 5 1 4 9 3 b
2020-12-29 09:28:53 +08:00
)
2021-01-16 07:24:06 +08:00
vcpkg_download_distfile (
X W B T O O L _ E X E
2022-05-12 07:47:49 +08:00
U R L S " h t t p s : / / g i t h u b . c o m / M i c r o s o f t / D i r e c t X T K 1 2 / r e l e a s e s / d o w n l o a d / m a y 2 0 2 2 / X W B T o o l . e x e "
F I L E N A M E " x w b t o o l - m a y 2 0 2 2 . e x e "
S H A 5 1 2 5 0 5 c 7 a a 7 a 2 2 e a 7 8 a 7 9 3 b a 7 0 f 1 3 6 b 1 3 5 4 8 a 6 9 b 3 6 c d 8 e c 1 6 3 1 9 6 9 2 0 3 d e f f 6 e 9 3 2 3 6 4 6 0 c 6 7 4 b 2 1 9 3 1 6 7 9 3 a a 4 7 5 f 1 3 5 0 a d 5 6 f 4 a 3 f 8 4 4 e 9 4 c 3 a d b a 0 a f 7 b 1 7 2 3 c 8 7 6 5 e
2020-12-29 09:28:53 +08:00
)
file ( MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk12/" )
2016-11-28 10:02:07 +08:00
2020-12-29 09:28:53 +08:00
file ( INSTALL
2021-01-16 07:24:06 +08:00
$ { M A K E S P R I T E F O N T _ E X E }
$ { X W B T O O L _ E X E }
2021-10-16 10:34:23 +08:00
D E S T I N A T I O N " $ { C U R R E N T _ P A C K A G E S _ D I R } / t o o l s / d i r e c t x t k 1 2 / " )
2021-01-16 07:24:06 +08:00
2022-05-12 07:47:49 +08:00
file ( RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont-may2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont.exe" )
file ( RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool-may2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool.exe" )
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
2021-10-16 10:34:23 +08:00
file ( INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )