[qt5-declarative] Add d3d12 feature (#31291)

This commit is contained in:
Osyotr 2023-05-10 02:34:59 +03:00 committed by GitHub
parent 602815cba4
commit 8ffcb2a78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 4 deletions

View File

@ -1,5 +1,12 @@
include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
qt_submodule_installation(OUT_SOURCE_PATH SOURCE_PATH)
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}" "")

View File

@ -1,6 +1,7 @@
{
"name": "qt5-declarative",
"version": "5.15.9",
"port-version": 1,
"description": "Qt5 Declarative (Quick 2) Module. Includes QtQuick, QtQuickParticles, QtQuickWidgets, QtQml, and QtPacketProtocol.",
"license": null,
"dependencies": [
@ -10,5 +11,26 @@
},
"qt5-imageformats",
"qt5-svg"
]
],
"default-features": [
"platform-default-features"
],
"features": {
"d3d12": {
"description": "Provides a Direct3D 12 backend for the scenegraph.",
"supports": "windows"
},
"platform-default-features": {
"description": "Enable platform-dependent default features",
"dependencies": [
{
"name": "qt5-declarative",
"features": [
"d3d12"
],
"platform": "windows"
}
]
}
}
}

View File

@ -6502,7 +6502,7 @@
},
"qt5-declarative": {
"baseline": "5.15.9",
"port-version": 0
"port-version": 1
},
"qt5-doc": {
"baseline": "5.15.9",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d3485a7652a098831fc278dd06952308704ed906",
"version": "5.15.9",
"port-version": 1
},
{
"git-tree": "c1e284599a1003dcb722972309215a0e13155f7b",
"version": "5.15.9",