How to automatically setup deploy steps for remote device
-
I'm using sdktool to successfully setup cross-compilation kit (Qt 6.5).
I've got set of 6 steps (Run custom remote command,Install into temporary host directory and Custom process step).
I would like those steps to set automatically also (like kit configuration).
Yet, I failed to find command to do so.
I found something useful in<MY_PRJ_SOURCE_DIR>/CMakeLists.txt.user
(xml format). I may have to do modify it manually (or with eg. xmlstarlet)
Can I do it in any other way? More robust? -
@SebastianM wrap it all into the script, call the script from the cmake or add the build step?
-
This post is deleted!
-
S SebastianM has marked this topic as solved on
-
@artwaw That sound like a solid solution. Thank you.
Script as file in repository or CMake target set to run AFTER build is completed.
I struggled a little with CMake target approach - as by default - Qt Creator set flagStage for installation
which is not accessible by CMake. Still - unmark manually by user is far easier then setup 6 deploy steps in GUI.XML approach I rejected as too big (~40 XML lines where most of them are just copy-paste) and too brittle (file
~/.config/QtProject/qtcreator/profiles.xml
).