aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r--src/qml/Qt6QmlMacros.cmake74
1 files changed, 1 insertions, 73 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index cc58b77240..a47737d3bc 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -1185,79 +1185,7 @@ if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
endfunction()
endif()
-# Add Qml files (.qml,.js,.mjs) to a Qml module.
-#
-# target: The backing target of the qml module. (REQUIRED)
-#
-# QML_FILES: The qml files to add to the backing target. Supported file extensions
-# are .qml, .js and .mjs. No other file types should be listed. (REQUIRED)
-#
-# RESOURCES: Resources used in QML, for example images. (OPTIONAL)
-#
-# PREFIX: The resource path under which to add the compiled qml files. If not
-# specified, the QT_QML_MODULE_RESOURCE_PREFIX property of the target is used
-# as the default, if set (that property is set by qt6_add_qml_module()).
-# If the default is empty, this option must be provided. (OPTIONAL)
-#
-# OUTPUT_TARGETS: In static builds, additional CMake targets can be created
-# which consumers of the module will need to potentially install.
-# Supply the name of an output variable, which will be set to a list of these
-# targets. If installing the main target, you will also need to install these
-# output targets for static builds. (OPTIONAL)
-#
-# NO_LINT: Do not add the specified files to the ${target}_qmllint target.
-# If this option is not given, the default will be taken from the target.
-#
-# NO_CACHEGEN: Do not compile the qml files. Add the raw qml files to the
-# target resources instead. If this option is not given, the default will be
-# taken from the target.
-#
-# NO_QMLDIR_TYPES: Do not append type information from the qml files to the
-# qmldir file associated with the qml module. If this option is not given,
-# the default will be taken from the target.
-#
-# In addition to the above NO_... options, individual files can be explicitly
-# skipped by setting the relevant source property. These are:
-#
-# - QT_QML_SKIP_QMLLINT
-# - QT_QML_SKIP_QMLDIR_ENTRY
-# - QT_QML_SKIP_CACHEGEN
-#
-# Disabling the qmldir entry for a qml file would normally only be used for a
-# file that does not expose a public type (e.g. a private JS file).
-# If appending of type information has not been disabled for a particular qml
-# file, the following additional source properties can be specified to
-# customize the file's type details:
-#
-# QT_QML_SOURCE_VERSION: Version(s) for this qml file. If not present the module
-# major version and minor version 0 will be used. If any PAST_MAJOR_VERSIONS
-# are given, those will be amended with minor version 0 and also added to the
-# default.
-#
-# QT_QML_SOURCE_TYPENAME: Override the file's type name. If not present, the
-# type name will be deduced using the file's basename.
-#
-# QT_QML_SINGLETON_TYPE: Set to true if this qml file contains a singleton type.
-#
-# QT_QML_INTERNAL_TYPE: When set to true, the type specified by
-# QT_QML_SOURCE_TYPENAME will not be available to users of this module.
-#
-# e.g.:
-# set_source_files_properties(my_qml_file.qml
-# PROPERTIES
-# QT_QML_SOURCE_VERSION "2.3;6.0"
-# QT_QML_SOURCE_TYPENAME MyQmlFile
-#
-# qt6_target_qml_sources(my_qml_module
-# QML_FILES
-# my_qml_file.qml
-# )
-#
-# The above will produce the following entries in the qmldir file:
-#
-# MyQmlFile 2.3 my_qml_file.qml
-# MyQmlFile 6.0 my_qml_file.qml
-#
+
function(qt6_target_qml_sources target)
get_target_property(uri ${target} QT_QML_MODULE_URI)