Solved qmake & the directory of generated files
-
So, I was going through the qmake variable references because I have a bunch of *cpp files that are generated in connection with my QML- files, and I would like them to be bundled in their own folder.
Those cpp files consists of namespaces and a single very large usigned char array
extern const unsigned char qmlData alignas(16) [] = { ... }
I found
- OBJECTS_DIR
- MOC_DIR
- RCC_DIR
- UI_DIR
and those do what they are supposed to, but none effect those qml-related cpp files.
So is there something to target these files, to generate them somewhere else?
-
@J.Hilk said in qmake & the directory of generated files:
and those do what they are supposed to, but none effect those qml-related cpp files.
What are those qml-related cpp files? I imagine they're not generated from the Qt infrastructure itself or am I wrong?
So is there something to target these files, to generate them somewhere else?
You can create a custom target. (See the advanced qmake usage from the manual you sourced).
-
These are files generated by the Qt Quick Compiler (see https://doc.qt.io/QtQuickCompiler/).
You can set QMLCACHE_DIR to move the generated files to a sub-directory of the build directory.
-
@kkoehne said in qmake & the directory of generated files:
These are files generated by the Qt Quick Compiler
Okay, my bad then.
-
@kkoehne said in qmake & the directory of generated files:
QMLCACHE_DIR
Ah perfect!
Thank you @kkoehne , that's exactly what I was looking for!