2016-10-13 22:23:31 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-10-24 02:43:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/cppwinrt
|
|
|
|
REF fall_2017_creators_update_for_vs_15.3
|
2017-10-21 03:35:29 +08:00
|
|
|
SHA512 e3f987ed3f3dce019b8bf9f5451e53b42357473a003b8c14f9009e1848ee0463286bd46fdc3c739c8f7c2d232707e8018f5c087ffae784c745d51a8143f9a294
|
2017-10-24 02:43:36 +08:00
|
|
|
HEAD_REF master
|
2017-03-11 03:15:11 +08:00
|
|
|
)
|
2016-10-13 22:23:31 +08:00
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2017-10-21 03:35:29 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppwinrt/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppwinrt/copyright)
|
2016-10-13 22:23:31 +08:00
|
|
|
|
|
|
|
# Copy the cppwinrt header files
|
2017-10-21 03:35:29 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/10.0.16299.0/winrt/*)
|
|
|
|
file(
|
|
|
|
COPY ${HEADER_FILES}
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include/winrt
|
|
|
|
REGEX "\.(gitattributes|gitignore)$" EXCLUDE
|
|
|
|
)
|