How to automatically setup deploy steps for remote device
-
wrote on 5 Sept 2024, 07:58 last edited by SebastianM 9 May 2024, 07:59
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? -
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?wrote on 5 Sept 2024, 17:02 last edited by@SebastianM wrap it all into the script, call the script from the cmake or add the build step?
-
wrote on 6 Sept 2024, 13:03 last edited byThis post is deleted!
-
@SebastianM wrap it all into the script, call the script from the cmake or add the build step?
wrote on 11 Sept 2024, 09:06 last edited by@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
). -
1/4