diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/directx-headers | |
Diffstat (limited to 'vcpkg/ports/directx-headers')
| -rw-r--r-- | vcpkg/ports/directx-headers/portfile.cmake | 21 | ||||
| -rw-r--r-- | vcpkg/ports/directx-headers/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/directx-headers/vcpkg.json | 19 |
3 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/directx-headers/portfile.cmake b/vcpkg/ports/directx-headers/portfile.cmake new file mode 100644 index 0000000..39849a8 --- /dev/null +++ b/vcpkg/ports/directx-headers/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Microsoft/DirectX-Headers
+ REF v${VERSION}
+ SHA512 4d75cc0fdedc16b8c8e9361400da69afc728aef70818051239e4519837682aefa30d10fc816595f5f45bf5244c59632d4e29ffd4efe80c3b6f50d756586d3b36
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS -DDXHEADERS_INSTALL=ON -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/directx-headers/usage b/vcpkg/ports/directx-headers/usage new file mode 100644 index 0000000..bc87375 --- /dev/null +++ b/vcpkg/ports/directx-headers/usage @@ -0,0 +1,4 @@ +The DirectX Headers package provides CMake targets:
+
+ find_package(directx-headers CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Microsoft::DirectX-Headers)
diff --git a/vcpkg/ports/directx-headers/vcpkg.json b/vcpkg/ports/directx-headers/vcpkg.json new file mode 100644 index 0000000..fcf6856 --- /dev/null +++ b/vcpkg/ports/directx-headers/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "directx-headers", + "version": "1.618.2", + "description": "Official DirectX 12 Headers", + "homepage": "https://devblogs.microsoft.com/directx/", + "documentation": "https://devblogs.microsoft.com/directx/gettingstarted-dx12agility/", + "license": "MIT", + "supports": "(windows & !arm32 & !xbox) | linux", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |