The cgo files are now generated by parsing the Makefiles generated by
qmake.
This greatly simplifies the support for additional targets, and also
removes the need to maintain extra backward and forward compatibility
code.
But these (backend) changes needed to come along with some breaking
changes to the (fontend) tooling.
So there is now the need to always specify the target when you use
qtmoc, qtrcc or qtminimal.
Some other minor breaking changes were:
The moc and rcc files are not automatically removed anymore by qtdeploy.
Because qtdeploy now has a -fast flag to make used of these cached
files.
The use of docker is now specified by using the -docker flag.
And the docker images were renamed to make their use case more clear.
AsteroidOS is an open-source operating system for smartwatches [1] built
on Qt 5.6 and OpenEmbedded. This commit adds initial support for
compiling Go Qt programs against the AsteroidOS SDK toolchain. The SDK
includes a script that gets sourced before every build and we use the
OECORE_TARGET_SYSROOT env variable when generating the cgo source files.
Information on building the SDK can be found here [2]. There is
currently no emulator for AsteroidOS so this commit does not add any
code to qtdeploy. Most of the changes are based off the Sailfish code.
Tested using Qt 5.7.0 official prebuilt package and the latest
AsteroidOS SDK.
[1] https://asteroidos.org/
[2] https://asteroidos.org/wiki/creating-an-asteroid-app/
1. the qt api changed in various places
2. dropped the "_minimal" suffix for the deployment folders
3. to keep using older versions of Qt (5.7.1 for example), one would
now need to explicit export "QT_VERSION=5.7.1" and also
"QT_DIR=/path/to/Qt5.7.1"