mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[cppwinrt] Update to version 2.0.201008.2 (#14092)
This commit is contained in:
parent
d0695f6709
commit
839f533382
@ -1,4 +0,0 @@
|
|||||||
Source: cppwinrt
|
|
||||||
Version: fall_2017_creators_update_for_vs_15.3-2
|
|
||||||
Homepage: https://github.com/Microsoft/cppwinrt
|
|
||||||
Description: C++/WinRT is a standard C++ language projection for the Windows Runtime.
|
|
@ -1,21 +1,10 @@
|
|||||||
include(vcpkg_common_functions)
|
find_path(CPPWINRT_BASE_H
|
||||||
|
NAMES winrt/base.h
|
||||||
vcpkg_from_github(
|
PATHS $ENV{INCLUDE}
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO Microsoft/cppwinrt
|
|
||||||
REF fall_2017_creators_update_for_vs_15.3
|
|
||||||
SHA512 e3f987ed3f3dce019b8bf9f5451e53b42357473a003b8c14f9009e1848ee0463286bd46fdc3c739c8f7c2d232707e8018f5c087ffae784c745d51a8143f9a294
|
|
||||||
HEAD_REF master
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
if(NOT CPPWINRT_BASE_H)
|
||||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppwinrt)
|
message(FATAL_ERROR "Unable to locate cppwinrt. Please install Windows SDK version 10.0.17134.0 or newer.")
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppwinrt/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppwinrt/copyright)
|
endif()
|
||||||
|
|
||||||
# Copy the cppwinrt header files
|
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||||
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
|
|
||||||
)
|
|
7
ports/cppwinrt/vcpkg.json
Normal file
7
ports/cppwinrt/vcpkg.json
Normal file
@ -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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user