aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-01 11:28:56 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-06 13:19:54 +0200
commitd2c9ecc727688d2519489e4b08013bfde8b0ae1e (patch)
treeba4651a167ae154e0db01b9214fc9ab464a1ae00 /src/qml
parentb1b9a619ba3d7d6304d8033936de0ec70d67c3bc (diff)
CMake: Add versionless functions for new public API
Add some missing versionless functions. Task-number: QTBUG-86827 Change-Id: I98c554429555a7692b1315658884c173129cbe81 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/Qt6QmlMacros.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index c155bac7d4..2d3d78415f 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -410,6 +410,11 @@ function(qt6_add_qml_module target)
endif()
endfunction()
+if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
+ function(qt_add_qml_module)
+ qt6_add_qml_module(${ARGV})
+ endfunction()
+endif()
#
# Add Qml files (.qml,.js,.mjs) to a Qml module. This will also append the
@@ -536,6 +541,12 @@ function(qt6_target_qml_files target)
file(APPEND ${qmldir_file} ${file_contents})
endfunction()
+if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
+ function(qt_target_qml_files)
+ qt6_target_qml_files(${ARGV})
+ endfunction()
+endif()
+
# QT_QMLTYPES_FILENAME: If the target has the target property QT_QMLTPYES_FILENAME set, it will be
# used for the name of the generated file. Otherwise, the file will be named plugins.qmltypes if the
# target is a plugin, or ${target}.qmltypes in all other cases
@@ -742,6 +753,12 @@ function(qt6_qml_type_registration target)
)
endfunction()
+if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
+ function(qt_qml_type_registration)
+ qt6_qml_type_registration(${ARGV})
+ endfunction()
+endif()
+
# Enable the qt6_quick_compiler_process_resources function in qt6_add_resource()
set(QT6_ADD_RESOURCE_DECLARATIVE_EXTENSIONS TRUE)