Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cppwinrt] Update to version 2.0.201008.2 #14092

Merged
merged 5 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ports/cppwinrt/CONTROL

This file was deleted.

25 changes: 7 additions & 18 deletions ports/cppwinrt/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/cppwinrt
REF fall_2017_creators_update_for_vs_15.3
SHA512 e3f987ed3f3dce019b8bf9f5451e53b42357473a003b8c14f9009e1848ee0463286bd46fdc3c739c8f7c2d232707e8018f5c087ffae784c745d51a8143f9a294
HEAD_REF master
find_path(CPPWINRT_BASE_H
NAMES winrt/base.h
PATHS $ENV{INCLUDE}
)

# Put the licence file where vcpkg expects it
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)
if(NOT CPPWINRT_BASE_H)
message(FATAL_ERROR "Unable to locate cppwinrt. Please install Windows SDK version 10.0.17134.0 or newer.")
endif()

# Copy the cppwinrt header files
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
)
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
7 changes: 7 additions & 0 deletions ports/cppwinrt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "cppwinrt",
"version-string": "windows-sdk",
"description": "C++/WinRT is a standard C++ language projection for the Windows Runtime.",
"homepage": "https://github.com/Microsoft/cppwinrt",
"supports": "windows"
}