diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2019-06-25 13:43:11 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2019-06-27 11:43:09 +0200 |
commit | e379951162a02d3b5bde1de4a838cec6eb9ae58f (patch) | |
tree | 447694abd96ff20dd0ffe30f58d0bfff477355f9 /tests | |
parent | 732b63ed0cd38feebd17978abde2843eddd2b7b2 (diff) |
Fix deployment of QtQuick for Android in tst_parserstress
We rely on the qmlimportscanner to find out what to deploy, but it
is limited to scanning .qml files.
This test creates the QML code from C++, so qmlimportscanner fails to
detect those dependencies.
Therefore, we add a dummy_imports.qml file that has the sole purpose
of giving qmlimportscanner which additional dependencies the test has.
Change-Id: I97d706396f70b30558bb3f0e2303d39c9f321a2d
Fixes: QTBUG-73572
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/parserstress/dummy_imports.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/parserstress/dummy_imports.qml b/tests/auto/qml/parserstress/dummy_imports.qml new file mode 100644 index 0000000000..b9a196e188 --- /dev/null +++ b/tests/auto/qml/parserstress/dummy_imports.qml @@ -0,0 +1,8 @@ +// This file exists for the sole purpose for qmlimportscanner to find +// which modules it needs to extract for deployment. +// Otherwise, it fails to find the imports that are expressed in C++ +// code in tst_parserstress.cpp + +import QtQuick 2.0 + +QtObject { } // This is needed in order to keep importscanner happy |