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/effects11 | |
Diffstat (limited to 'vcpkg/ports/effects11')
| -rw-r--r-- | vcpkg/ports/effects11/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/effects11/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/effects11/vcpkg.json | 25 |
3 files changed, 56 insertions, 0 deletions
diff --git a/vcpkg/ports/effects11/portfile.cmake b/vcpkg/ports/effects11/portfile.cmake new file mode 100644 index 0000000..e6464cc --- /dev/null +++ b/vcpkg/ports/effects11/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO microsoft/FX11 + REF jun2023 + SHA512 93a90b42efbc8e1e9cb76de80c959bc24406536af9d943d21e324a82be677d695c201deb995490e331ecfcda301d8b42285b90577fbed9acd5bb61c753efd66c + HEAD_REF main +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + spectre ENABLE_SPECTRE_MITIGATION +) +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/effects11) + +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/effects11/usage b/vcpkg/ports/effects11/usage new file mode 100644 index 0000000..f3dc35f --- /dev/null +++ b/vcpkg/ports/effects11/usage @@ -0,0 +1,4 @@ +The Effects (FX) system for Direct3D 11 package is compatible with built-in CMake targets:
+
+ find_package(effects11 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Microsoft::Effects11)
diff --git a/vcpkg/ports/effects11/vcpkg.json b/vcpkg/ports/effects11/vcpkg.json new file mode 100644 index 0000000..d7376d1 --- /dev/null +++ b/vcpkg/ports/effects11/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "effects11", + "version": "11.29", + "port-version": 3, + "description": "Effects for Direct3D 11 (FX11) is a management runtime for authoring HLSL shaders, render state, and runtime variables together.", + "homepage": "https://github.com/Microsoft/FX11", + "documentation": "https://github.com/microsoft/FX11/wiki", + "license": "MIT", + "supports": "windows & !xbox & !mingw", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "spectre": { + "description": "Build Spectre-mitigated library" + } + } +} |