2020-12-29 09:28:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_fail_port_install(ON_TARGET "OSX" "Linux")
|
2017-06-10 10:34:07 +08:00
|
|
|
|
2019-08-14 05:27:28 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectXTK12
|
2021-08-27 06:37:42 +08:00
|
|
|
REF aug2021
|
|
|
|
SHA512 9d0234d7f8d631fa7cb434487bb1fbb4a52760550962f8ebd5a8c09b33cc2b328651b0c0355057e9b172b7445c86b083f33967ee7918a5eeaf19b3e4915dfe00
|
2019-08-14 05:27:28 +08:00
|
|
|
HEAD_REF master
|
2016-11-28 10:02:07 +08:00
|
|
|
)
|
|
|
|
|
2020-10-14 04:29:51 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS -DBUILD_XAUDIO_WIN10=ON
|
2019-08-14 05:27:28 +08:00
|
|
|
)
|
2016-11-28 10:02:07 +08:00
|
|
|
|
2020-12-29 09:28:53 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
|
|
|
|
if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
|
2021-01-16 07:24:06 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
MAKESPRITEFONT_EXE
|
2021-08-27 06:37:42 +08:00
|
|
|
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/aug2021/MakeSpriteFont.exe"
|
|
|
|
FILENAME "makespritefont-aug2021.exe"
|
|
|
|
SHA512 a84786f57f7f26c4ab0cd446136d79c19a74296f5074396854c81ad67aedfccfe76e15025ba9bcfcabb993f0bb7247ca536d55b4574192efb3e7c2069abf70d7
|
2020-12-29 09:28:53 +08:00
|
|
|
)
|
|
|
|
|
2021-01-16 07:24:06 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
XWBTOOL_EXE
|
2021-08-27 06:37:42 +08:00
|
|
|
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/aug2021/XWBTool.exe"
|
|
|
|
FILENAME "xwbtool-aug2021.exe"
|
|
|
|
SHA512 3dd1ebd04db21517f74453727512783141b997d33efc1a47236c9ff343310da17b4add4c4ba6e138ad35095fb77f4207e7458a9e51ee3f4872fc0e0cf62be5b5
|
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
|
|
|
${MAKESPRITEFONT_EXE}
|
|
|
|
${XWBTOOL_EXE}
|
2020-12-29 09:28:53 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/directxtk12/)
|
2021-01-16 07:24:06 +08:00
|
|
|
|
2021-08-27 06:37:42 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont-aug2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont.exe)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool-aug2021.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
|
|
|
|
2019-10-11 22:52:19 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|