Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
1.16.0
-
None
Description
I'm trying out the new QML import support (QBS-1531):
A .cpp file is generated as expected:
/home/mitch/dev/slate-qt_dev_debug_no_asan-Debug/Debug_qt_dev_d_750558401e966ce4/lib.9d062baf/slate_qmltyperegistrations.cpp
but the first include from my project in that file cannot be found:
#include <QtQml/qqml.h>
#include <QtQml/qqmlmoduleregistration.h>
#include <animationplayback.h> // <===
...
From looking at the change, I can see where the *_qmltyperegistrations file is created:
but I don't see where it's included as part of the project's sources. In qmake, it seems to be done here:
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/qmltyperegistrar/qmltypes.prf#n77
Adding the project's own source directory to cpp.includePaths fixes it:
cpp.includePaths: [ product.sourceDirectory + "/3rdparty", "." ]
However, I don't think this is necessary with qmake, so I wonder if it should be necessary with qbs.
Attachments
Issue Links
- is duplicated by
-
QBS-1591 Generated qmltyperegistrations file has wrong include
-
- Closed
-