forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user