Merge pull request #1781 from juandent/juandent-patch-1

Juandent patch 1 - portfile for latest version of cppwinrt
This commit is contained in:
Robert Schumacher 2017-09-21 01:44:09 -07:00 committed by GitHub
commit 3e6f32d860
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,3 @@
Source: cppwinrt
Version: feb2017_refresh-14393
Version: spring_2017_creators_update_for_vs_15.3
Description: C++/WinRT is a standard C++ language projection for the Windows Runtime.

View File

@ -1,18 +1,18 @@
include(vcpkg_common_functions)
find_program(GIT git)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cppwinrt-february_2017_refresh)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cppwinrt-spring_2017_creators_update_for_vs_15.3)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/Microsoft/cppwinrt/archive/february_2017_refresh.tar.gz"
FILENAME "cppwinrt-february_2017_refresh.tar.gz"
SHA512 0e2ed94d65ae4c7297ae4d82d64a43fa59fac7b35fbe42ea939f135f0f6eb867f57fac70b6a9cc9a78912de75aa4482d48007f83a3781b147d237ae637fdaa0e
URLS "https://github.com/Microsoft/cppwinrt/archive/spring_2017_creators_update_for_vs_15.3.tar.gz"
FILENAME "cppwinrt-spring_2017_creators_update_for_vs_15.3.tar.gz"
SHA512 779586122552e49a79aff08f4476905e00c3b4ad3dbc502240e9a7cc59ec0e4ab6304149a66505923ab84d2b334059de9e18c84a5b0ed6bde106d19119ef911f
)
vcpkg_extract_source_archive(${ARCHIVE})
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt)
file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppwinrt/license.txt ${CURRENT_PACKAGES_DIR}/share/cppwinrt/copyright)
# Copy the cppwinrt header files
file(GLOB HEADER_FILES ${SOURCE_PATH}/10.0.14393.0/winrt/*)
file(GLOB HEADER_FILES ${SOURCE_PATH}/10.0.15063.0/winrt/*)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/winrt)