2020-06-11 17:41:20 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
|
2017-06-10 10:34:07 +08:00
|
|
|
|
2017-12-23 22:51:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectXTK
|
2020-10-07 04:33:19 +08:00
|
|
|
REF sept2020
|
|
|
|
SHA512 fcb98ffee960494f4ba9a3edd802dce7eacf8e0d9a17f712ea971cdf6c13d9ee4e403deecbcd2c8a4555301316334e6f987d6b051b7cb87e2ae76e41f213e91e
|
2017-12-23 22:51:17 +08:00
|
|
|
HEAD_REF master
|
2016-11-25 17:37:48 +08:00
|
|
|
)
|
|
|
|
|
2020-10-28 11:32:43 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
xaudio2-9 BUILD_XAUDIO_WIN10
|
|
|
|
xaudio2-8 BUILD_XAUDIO_WIN8
|
2016-11-25 17:37:48 +08:00
|
|
|
)
|
|
|
|
|
2020-10-28 11:32:43 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-08-14 05:27:28 +08:00
|
|
|
)
|
|
|
|
|
2020-10-28 11:32:43 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_UWP)
|
|
|
|
vcpkg_build_cmake()
|
|
|
|
else()
|
|
|
|
vcpkg_build_cmake(TARGET DirectXTK)
|
|
|
|
endif()
|
2016-11-25 17:37:48 +08:00
|
|
|
|
2020-10-28 11:32:43 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/Inc/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/DirectXTK)
|
2016-11-25 17:37:48 +08:00
|
|
|
|
2020-10-28 11:32:43 +08:00
|
|
|
file(GLOB_RECURSE DEBUG_LIB ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/CMake/*.lib)
|
|
|
|
file(GLOB_RECURSE RELEASE_LIB ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake/*.lib)
|
|
|
|
file(INSTALL ${DEBUG_LIB} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
|
|
|
file(INSTALL ${RELEASE_LIB} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
2019-12-21 08:21:10 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_UWP)
|
2020-10-28 11:32:43 +08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES XWBTool
|
|
|
|
SEARCH_DIR ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake
|
|
|
|
)
|
|
|
|
vcpkg_install_msbuild(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PROJECT_SUBPATH MakeSpriteFont/MakeSpriteFont.csproj
|
|
|
|
PLATFORM AnyCPU
|
|
|
|
)
|
2019-07-19 04:50:50 +08:00
|
|
|
endif()
|
2016-11-25 17:37:48 +08:00
|
|
|
|
2019-10-11 22:52:19 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|