aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dxut
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dxut
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dxut')
-rw-r--r--vcpkg/ports/dxut/portfile.cmake29
-rw-r--r--vcpkg/ports/dxut/usage4
-rw-r--r--vcpkg/ports/dxut/vcpkg.json31
3 files changed, 64 insertions, 0 deletions
diff --git a/vcpkg/ports/dxut/portfile.cmake b/vcpkg/ports/dxut/portfile.cmake
new file mode 100644
index 0000000..9f2bc2c
--- /dev/null
+++ b/vcpkg/ports/dxut/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO microsoft/DXUT
+ REF aug2024
+ SHA512 9ae3ff34308446b9d145306c4eee6a70319c103540e76e3df305bed6b9d4348b508976d930fbbaac29d560879afc5e53367bdd81142a02920dd28c4fc9013136
+ HEAD_REF main
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ dxtk DIRECTXTK_INTEGRATION
+ spectre ENABLE_SPECTRE_MITIGATION
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH share/dxut)
+
+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/dxut/usage b/vcpkg/ports/dxut/usage
new file mode 100644
index 0000000..f290ab4
--- /dev/null
+++ b/vcpkg/ports/dxut/usage
@@ -0,0 +1,4 @@
+The DXUT for Direct3D 11 package is compatible with built-in CMake targets:
+
+ find_package(dxut CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Microsoft::DXUTOpt Microsoft::DXUT)
diff --git a/vcpkg/ports/dxut/vcpkg.json b/vcpkg/ports/dxut/vcpkg.json
new file mode 100644
index 0000000..1fd03c7
--- /dev/null
+++ b/vcpkg/ports/dxut/vcpkg.json
@@ -0,0 +1,31 @@
+{
+ "name": "dxut",
+ "version": "11.32",
+ "description": "A \"GLUT\"-like framework for Direct3D 11.x Win32 desktop applications",
+ "homepage": "https://github.com/Microsoft/DXUT",
+ "documentation": "https://github.com/microsoft/DXUT/wiki",
+ "license": "MIT",
+ "supports": "windows & !uwp & !xbox",
+ "dependencies": [
+ "directxmath",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "dxtk": {
+ "description": "Support integration with DirectX Tool Kit for DX11",
+ "dependencies": [
+ "directxtk"
+ ]
+ },
+ "spectre": {
+ "description": "Build Spectre-mitigated library"
+ }
+ }
+}