Wizards: Add deployment rules to Widgets and Console applications

Otherwise they can't be deployed to Boot2Qt (and other) devices. Quick
application wizards already have these deployment rules.

Task-number: QTCREATORBUG-20358
Change-Id: I5a19ada3f6a382e8553750769478c398a50352c9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Kari Hormi <kari.hormi@qt.io>
This commit is contained in:
Kari Oikarinen
2018-05-02 16:38:07 +03:00
parent 6456e725b9
commit 087af41871
2 changed files with 9 additions and 1 deletions

View File

@@ -16,3 +16,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \\
%{CppFileName}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

View File

@@ -200,7 +200,10 @@ Core::GeneratedFiles GuiAppWizard::generateFiles(const QWizard *w,
<< "\nMOBILITY = "
<< "\n";
}
proStr << '\n';
proStr << "\n\n# Default rules for deployment.\n"
"qnx: target.path = /tmp/$${TARGET}/bin\n"
"else: unix:!android: target.path = /opt/$${TARGET}/bin\n"
"!isEmpty(target.path): INSTALLS += target\n";
}
profile.setContents(contents);
// List