diff options
Diffstat (limited to 'vcpkg/ports/qt5-declarative')
| -rw-r--r-- | vcpkg/ports/qt5-declarative/portfile.cmake | 13 | ||||
| -rw-r--r-- | vcpkg/ports/qt5-declarative/vcpkg.json | 35 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/qt5-declarative/portfile.cmake b/vcpkg/ports/qt5-declarative/portfile.cmake new file mode 100644 index 0000000..7ab4aeb --- /dev/null +++ b/vcpkg/ports/qt5-declarative/portfile.cmake @@ -0,0 +1,13 @@ +include("${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake")
+
+if("d3d12" IN_LIST FEATURES)
+ list(APPEND CORE_OPTIONS -d3d12)
+else()
+ list(APPEND CORE_OPTIONS -no-d3d12)
+endif()
+
+qt_submodule_installation(OUT_SOURCE_PATH SOURCE_PATH BUILD_OPTIONS ${CORE_OPTIONS})
+
+if(NOT QT_UPDATE_VERSION)
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/qt5/QtQml/${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER}/QtQml/private/qqmljsparser_p.h" "${SOURCE_PATH}" "")
+endif()
diff --git a/vcpkg/ports/qt5-declarative/vcpkg.json b/vcpkg/ports/qt5-declarative/vcpkg.json new file mode 100644 index 0000000..4a968aa --- /dev/null +++ b/vcpkg/ports/qt5-declarative/vcpkg.json @@ -0,0 +1,35 @@ +{ + "name": "qt5-declarative", + "version": "5.15.18", + "description": "Qt Declarative (Quick 2)", + "license": null, + "dependencies": [ + { + "name": "qt5-base", + "default-features": false + }, + "qt5-imageformats", + "qt5-svg" + ], + "default-features": [ + "platform-default-features" + ], + "features": { + "d3d12": { + "description": "Provides a Direct3D 12 backend for the scenegraph.", + "supports": "windows & !mingw" + }, + "platform-default-features": { + "description": "Enable platform-dependent default features", + "dependencies": [ + { + "name": "qt5-declarative", + "features": [ + "d3d12" + ], + "platform": "windows & !mingw" + } + ] + } + } +} |