qt5base-lts/cmake/QtProperties.cmake
Leander Beernaert 97b76704ea Refactor QML_FILES for add_qml_module
It has been decided, that going forward all qml files are to be added
to a module via the resource system. This patch does the ground work
to make sure all qml modules in the qt codebase follow these new
conventions.

New properties on targets have been added so that we can't track all the
qml related information for later use.

To make sure it is still possible to install qml files we added the
qt_install_qml_files() command.

Pro2cmake has been adjusted to handle the special cases of versioned
qml modules (e.g: QtQuick.2). It will now insert a TARGET_PATH
override to avoid the default conversion from the URI parameter.

Finally, this patch temporarliy disables the quick compiler by moving
all relevant code into a dummy function. This will be removed in a
follow up patch where the quick compiler will be enable for all
qml files present in resource files.

Change-Id: I09fe4517fad26ec96122d9c7c777dbfbd214905c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-08-01 14:07:01 +00:00

97 lines
2.2 KiB
CMake

define_property(TARGET
PROPERTY
QT_PLUGINS
BRIEF_DOCS
"List of Qt plug-ins associated with a given Qt module."
FULL_DOCS
"This is a property on Qt modules.
For instance, sqlite;odbc for Sql"
)
define_property(TARGET
PROPERTY
MODULE_PLUGIN_TYPES
BRIEF_DOCS
"List of plugin categories associated to the Qt module"
FULL_DOCS
"This is a property on Qt modules.
For instance, sqldrivers for Sql."
)
define_property(TARGET
PROPERTY
QT_PLUGIN_CLASS_NAME
BRIEF_DOCS
"Class name of the Qt plug-in"
FULL_DOCS
"This is a property on Qt plug-ins.
For instance, QICOPlugin for the qico plug-in"
)
define_property(TARGET
PROPERTY
QT_MODULE
BRIEF_DOCS
"Qt module associated with a plug-in."
FULL_DOCS
"This is a property on Qt plug-ins.
For instance, Sql for qsqlite"
)
define_property(TARGET
PROPERTY
QT_DEFAULT_PLUGIN
BRIEF_DOCS
"Indicates whether a plug-in is added by default."
FULL_DOCS
"This is a property on Qt plug-ins.
It is mainly used to indicate if a plug-in should be added
to the default set of plug-ins when building a static app -
for instance, which QPA should be linked."
)
define_property(GLOBAL
PROPERTY
QT_KNOWN_PLUGINS
BRIEF_DOCS
""
FULL_DOCS
""
)
define_property(TARGET
PROPERTY
QT_QML_MODULE_TARGET_PATH
BRIEF_DOCS
"Specifies the target path for a qml module"
FULL_DOCS
"Specifies the target path for a qml module"
)
define_property(TARGET
PROPERTY
QT_QML_MODULE_URI
BRIEF_DOCS
"Specifies the URI for a qml module"
FULL_DOCS
"Specifies the URI for a qml module"
)
define_property(TARGET
PROPERTY
QT_QML_MODULE_RESOURCE_PREFIX
BRIEF_DOCS
"Specifies the qml module's resource prefix."
FULL_DOCS
"Specifies the qml module's resource prefix."
)
define_property(TARGET
PROPERTY
QT_QML_MODULE_VERSION
BRIEF_DOCS
"Specifies the qml module's version."
FULL_DOCS
"Specifies the qml module's version."
)