diff options
| author | sdcb <sdflysha@qq.com> | 2017-01-05 15:09:40 +0800 |
|---|---|---|
| committer | sdcb <sdflysha@qq.com> | 2017-01-05 15:09:40 +0800 |
| commit | 41a68f712a5c4d5000c7bfa37a200c18fef29692 (patch) | |
| tree | 2991d67d0b29cc246046cc037268cf40a6d55eed | |
| parent | b280f57002044036c1c3c9a446c06e8e0a34fb00 (diff) | |
| download | vcpkg-41a68f712a5c4d5000c7bfa37a200c18fef29692.tar.gz vcpkg-41a68f712a5c4d5000c7bfa37a200c18fef29692.zip | |
Add dx port.
| -rw-r--r-- | ports/dx/CONTROL | 3 | ||||
| -rw-r--r-- | ports/dx/portfile.cmake | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/ports/dx/CONTROL b/ports/dx/CONTROL new file mode 100644 index 000000000..460e42bdb --- /dev/null +++ b/ports/dx/CONTROL @@ -0,0 +1,3 @@ +Source: dx
+Version: 1.0.0
+Description: A modern C++ library for DirectX programming
\ No newline at end of file diff --git a/ports/dx/portfile.cmake b/ports/dx/portfile.cmake new file mode 100644 index 000000000..085f30c01 --- /dev/null +++ b/ports/dx/portfile.cmake @@ -0,0 +1,20 @@ +#header-only library
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dx-1.0.0)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/sdcb/dx/archive/1.0.0.tar.gz"
+ FILENAME "dx-1.0.0.tar.gz"
+ SHA512 7d0e0550eb27c3a7d3a9c4b78f29290aaf60c02a7c2fabb6e4769673592bc031f8ed430cd777e02096b9b9a8981c7e05b45448bf5c182704e080e61eaeab62f8
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(INSTALL
+ ${SOURCE_PATH}/dx.h
+ ${SOURCE_PATH}/debug.h
+ ${SOURCE_PATH}/handle.h
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/dx
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/LICENSE
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/dx RENAME copyright)
\ No newline at end of file |
