aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlsplitlib
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Allow omitting the version of QML modulesUlf Hermann2023-01-271-1/+0
| | | | | | | | | | | | | | | | | Also, drop all the VERSION 1.0 lines from the examples and tests. 1.0 is actually a bad default version since it's before all the Qt versions. [ChangeLog][QML] You can now omit the VERSION argument to qt_add_qml_module(). This will automatically generate the highest possible version. Pick-to: 6.5 Task-number: QTBUG-99146 Change-Id: Ic10ec69b87c224e0e94e1785f65653815d4c778c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-09-071-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: Id89ed14990804a5024183e75382cc539d4293da1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-081-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I72c89a98c42bbc9234d8495e9e503bec81d11037 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: add dependency to QmlIntegration in qmlsplitlib testSamuli Piippo2022-06-281-1/+1
| | | | | | | | | | | | Amend c3503e19e71a9fecf08a181c50d90043a4ea4edf and add dependency to QmlIntegration to fix: | /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative/6.5.0-r0/git/tests/auto/qml/qmlsplitlib/lib.h:8:10: fatal error: QtQmlIntegration/qqmlintegration.h: No such file or directory | 8 | #include <QtQmlIntegration/qqmlintegration.h> | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I591b6cc4d0d2aefc20f243a0a5b9f7780b5e47bd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Introduce a sane resource path to qt_add_qml_moduleUlf Hermann2022-06-232-1/+2
| | | | | | | | | | | | | | | | | | Since "/qt" is reserved, we can use "/qt/qml" as the default path for user QML modules. [ChangeLog][QtQml] The AUTO_RESOURCE_PREFIX option was added to qt_add_qml_module(). It places your QML modules in the otherwise reserved resource directory /qt/qml. This directory is also added to the default QML import path. By using it you don't have to specify custom import paths anymore. Specifying neither AUTO_RESOURCE_PREFIX nor an explicit RESOURCE_PREFIX will generate a warning now because such QML modules are likely invisible in the resource file system. Fixes: QTBUG-95145 Fixes: QTBUG-103452 Change-Id: Ie27dec5cbf34ea06258d55c659d202cdd61e54b2 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* tst_qmlsplitlib: Utilize qmlintegration.hMaximilian Goldstein2022-06-151-30/+1
| | | | | | | | | | | Now that we have split integration into a separate module, use that instead. Also fixes a warning about redefining QML_SINGLETON. Change-Id: Iad54ac7815957222d64e96342e48bb9eb25be2c0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-114-130/+8
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* qmlRegisterTypesAndRevisions: Simplify templateFabian Kosmale2021-12-061-2/+2
| | | | | | | | Using a fold expression ought to be faster to instantiate than the recursive template calls. Change-Id: Iffed70a2da74399bf96a9f78bfe1bb9a65d0be30 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Support QML type registration split: build system + tools integrationFabian Kosmale2021-11-266-0/+261
This change addresses the following issue: - Module A wants to have an optional QML API without depending on declarative (e.g., because it has a C++ only API usable for Widgets based applications that normally would not link against declarative). - Thus we add a module B with all the QML support (type registration, maybe additional types/functions/image providers). - Currently, this would require to wrap every type from module A into QML_FOREIGN manually, adding large amounts of boilerplate. To solve this, we extend qmltyperegistrar and the CMake API: - qmltyperegistrar gains a new --extract option to generate a file with all QML_FOREIGN declarations. More precisely, it generates a header and source file; the source file includes the header and the moc generated file. - We expose this in cmake via a new qt6_generate_foreign_qml_types function. That function takes two targets, the source library's target and the QML module's target. It then runs qmltyperegistrar on the source library, and adds the generated files to the QML module's target, and adds the proper dependencies between the targets. The remaining step to achieve the goal of split registration is to provide the QML registration macros in a separate header. Task-number: QTBUG-92258 Change-Id: I51c4ef660ca7476b556b1991a6c76bbcad2c69af Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>