Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share build step in Qt Creator

Qt Creator has an option to add custom build steps for the project which is cool. However the command line for the additional build step is stored in the .pro.user file which should not be added to version control, because it contains machine specific data. When I push my project to the repo and then clone it in another location the user file is different and the custom build steps are missing. How can I share my custom build steps so the project is built easily on every machine with Qt installed?

like image 675
Uga Buga Avatar asked May 19 '15 14:05

Uga Buga


1 Answers

Try replacing the custom build steps with QMAKE_POST_LINK commands (QMAKE_POST_LINK Reference)

They can be linked to a script that can be committed:

win32 {
    QMAKE_POST_LINK = install/win/deploy
}
unix {
    QMAKE_POST_LINK = install/unix/deploy
}

To create pre-build steps, this is a nice example: Pre-pre-build commands with qmake.

like image 63
Thalia Avatar answered Sep 28 '22 09:09

Thalia