aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMérill Téterel <59962715+mteterel@users.noreply.github.com>2020-09-11 22:18:30 +0200
committerGitHub <noreply@github.com>2020-09-11 13:18:30 -0700
commit0896bb867b61cc35dd3d1850171b92bd2a32cf67 (patch)
tree5e5ba9e3f7a478c47b546251a7018fe5620aaffa
parente8790f0f1aaf7f9e450e131c9adfeb79fe6f67ea (diff)
downloadvcpkg-0896bb867b61cc35dd3d1850171b92bd2a32cf67.tar.gz
vcpkg-0896bb867b61cc35dd3d1850171b92bd2a32cf67.zip
[d3dx12] Add new port (#13360)
* [d3dx12] new port * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update portfile.cmake Use the correct d3dx12.h that does not require the very latest Windows SDK * Apply suggestions from code review Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/d3dx12/portfile.cmake * [d3dx12] Download license file Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
-rw-r--r--ports/d3dx12/portfile.cmake15
-rw-r--r--ports/d3dx12/vcpkg.json6
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/d3dx12/portfile.cmake b/ports/d3dx12/portfile.cmake
new file mode 100644
index 000000000..3f25d6d5c
--- /dev/null
+++ b/ports/d3dx12/portfile.cmake
@@ -0,0 +1,15 @@
+set(VERSION may2020)
+
+vcpkg_download_distfile(D3DX12_H
+ URLS "https://raw.githubusercontent.com/walbourn/directx-vs-templates/${VERSION}/d3d12game_win32_dr/d3dx12.h"
+ FILENAME "directx-vs-templates-${VERSION}-d3dx12.h"
+ SHA512 "829b72ddf861652bd96518b7d54f7a103c95b4434ec022e1551fb085e4dfc8f804e01ccdb4677e3f64367553c56d35291b305e10c2ea6186ddadaaa071c6d7a2"
+)
+vcpkg_download_distfile(LICENSE
+ URLS "https://raw.githubusercontent.com/walbourn/directx-vs-templates/${VERSION}/LICENSE"
+ FILENAME "directx-vs-templates-${VERSION}-LICENSE"
+ SHA512 "f1c9c9b83627d00ec98c9e54c4b708716731e4b0b27f38e95d21b01f8fe4e1f27eeade5d802f93caa83ede17610411ca082ea1ce79150c372f3abdceaaa9a4a3"
+)
+
+file(INSTALL "${D3DX12_H}" DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME d3dx12.h)
+file(INSTALL "${LICENSE}" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/d3dx12/vcpkg.json b/ports/d3dx12/vcpkg.json
new file mode 100644
index 000000000..c4565a55a
--- /dev/null
+++ b/ports/d3dx12/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "d3dx12",
+ "version-string": "may2020",
+ "description": "The D3D12 Helper Library",
+ "homepage": "https://github.com/microsoft/DirectX-Graphics-Samples/tree/master/Libraries/D3DX12"
+}