aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuandent <juandent@mac.com>2017-09-01 12:16:53 -0600
committerGitHub <noreply@github.com>2017-09-01 12:16:53 -0600
commit256ce192a4580baed0793d01d40efb881a5e18eb (patch)
tree8767a5d3be4ce594388854633a9f80f3001c3152
parent03edddef2402d7a578c7714b6b28d3734e3d3940 (diff)
downloadvcpkg-256ce192a4580baed0793d01d40efb881a5e18eb.tar.gz
vcpkg-256ce192a4580baed0793d01d40efb881a5e18eb.zip
This is my proposed new version of the port file
the port file for cppwinrt, latest release
-rw-r--r--portfile.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/portfile.cmake b/portfile.cmake
new file mode 100644
index 000000000..b19d946b6
--- /dev/null
+++ b/portfile.cmake
@@ -0,0 +1,18 @@
+include(vcpkg_common_functions)
+find_program(GIT git)
+
+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/spring_2017_creators_update_for_vs_15.3.tar.gz"
+ FILENAME "cppwinrt-spring_2017_creators_update_for_vs_15.3.tar.gz"
+ SHA512 6b8646270f69e3ebec13ed5fb46ed92236659d05
+)
+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(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(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/winrt)