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-11-18 06:45:32 +08:00
|
|
|
REF nov2020
|
|
|
|
SHA512 9d10a851f37deb428c16166cdecf38ffba28a4ab836f9753f071bccc570fcb22ce98271c6bbad9fa1380dddd1fa6602156a7aa1607d347139bda1860fc2210ce
|
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)
|