forked from qt-creator/qt-creator
Maemo: Always deploy via SFTP upload.
The UTFS stuff does not seem to be reliable enough at the moment. Deploying is too important to take that risk. Reviewed-by: kh1 Reviewed-by: Leena Miettinen
This commit is contained in:
3
dist/changes-2.1.0
vendored
3
dist/changes-2.1.0
vendored
@@ -98,8 +98,7 @@ Maemo Target
|
|||||||
* Deployment information is taken from .pro file's INSTALLS variable
|
* Deployment information is taken from .pro file's INSTALLS variable
|
||||||
* Support for "subdirs" and library project types
|
* Support for "subdirs" and library project types
|
||||||
* Projects created by mobile wizards are now usable for Maemo development
|
* Projects created by mobile wizards are now usable for Maemo development
|
||||||
* Automatic creation and deployment of Desktop files for application projects
|
* Fremantle: Support for exporting host directories to the device
|
||||||
* Fremantle: Support for exporting host directories to the device (also employed for zero-copy deployment)
|
|
||||||
|
|
||||||
Designer
|
Designer
|
||||||
* Added switching between code and forms using Shift-F4
|
* Added switching between code and forms using Shift-F4
|
||||||
|
|||||||
@@ -2939,8 +2939,8 @@
|
|||||||
Qt Creator uses the compiler specified in the MADDE toolchain to
|
Qt Creator uses the compiler specified in the MADDE toolchain to
|
||||||
build the application.
|
build the application.
|
||||||
|
|
||||||
Qt Creator generates an installation package, installs in on the device,
|
Qt Creator generates an installation package, installs it on the device,
|
||||||
and executes it. You can skip the packaging step to save some time.
|
and executes the selected application.
|
||||||
The application views are displayed on the Nokia N900.
|
The application views are displayed on the Nokia N900.
|
||||||
Command-line
|
Command-line
|
||||||
output is visible in the Qt Creator \gui {Application Output} view.
|
output is visible in the Qt Creator \gui {Application Output} view.
|
||||||
@@ -3406,12 +3406,6 @@
|
|||||||
You can specify settings for deploying applications to Maemo devices in the
|
You can specify settings for deploying applications to Maemo devices in the
|
||||||
project .pro file. You can view the settings in the \gui {Run Settings}.
|
project .pro file. You can view the settings in the \gui {Run Settings}.
|
||||||
|
|
||||||
When you test your application on a device or the Maemo emulator, you can
|
|
||||||
save some time by installing the built files directly on the connected device
|
|
||||||
without packaging. Select the \gui {Skip packaging step} check box in the
|
|
||||||
\gui {Create Package} step. However, this is not recommended and is only supported
|
|
||||||
for simple application projects.
|
|
||||||
|
|
||||||
The files to be installed are listed in the
|
The files to be installed are listed in the
|
||||||
\gui {Deploy to Device} step, the \gui {Files to install} field. The
|
\gui {Deploy to Device} step, the \gui {Files to install} field. The
|
||||||
\gui {Local File Path} field displays the location of the file on the development
|
\gui {Local File Path} field displays the location of the file on the development
|
||||||
|
|||||||
@@ -408,9 +408,11 @@ void MaemoDeployStep::handleUnmounted()
|
|||||||
|
|
||||||
switch (m_unmountState) {
|
switch (m_unmountState) {
|
||||||
case OldDirsUnmount:
|
case OldDirsUnmount:
|
||||||
|
#if 0 // TODO: Disabled for 2.1. Re-enable later or throw away for good.
|
||||||
if (toolChain()->allowsRemoteMounts())
|
if (toolChain()->allowsRemoteMounts())
|
||||||
setupMount();
|
setupMount();
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
prepareSftpConnection();
|
prepareSftpConnection();
|
||||||
break;
|
break;
|
||||||
case CurrentDirsUnmount:
|
case CurrentDirsUnmount:
|
||||||
|
|||||||
@@ -167,8 +167,11 @@ bool MaemoRunControlFactory::canRun(RunConfiguration *runConfiguration,
|
|||||||
|| maemoRunConfig->remoteExecutableFilePath().isEmpty())
|
|| maemoRunConfig->remoteExecutableFilePath().isEmpty())
|
||||||
return false;
|
return false;
|
||||||
const int freePortCount = maemoRunConfig->freePorts().count();
|
const int freePortCount = maemoRunConfig->freePorts().count();
|
||||||
if (freePortCount == 0)
|
|
||||||
|
#if 0 // TODO: Enable if deployment-via-mount is enabled again, otherwise throw away.
|
||||||
|
if (maemoRunConfig->toolchain()->allowsRemoteMounts() && freePortCount == 0)
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
const int mountDirCount
|
const int mountDirCount
|
||||||
= maemoRunConfig->toolchain()->allowsRemoteMounts()
|
= maemoRunConfig->toolchain()->allowsRemoteMounts()
|
||||||
? maemoRunConfig->remoteMounts()->validMountSpecificationCount()
|
? maemoRunConfig->remoteMounts()->validMountSpecificationCount()
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ public:
|
|||||||
enum MaemoVersion { Maemo5, Maemo6 };
|
enum MaemoVersion { Maemo5, Maemo6 };
|
||||||
MaemoVersion version() const;
|
MaemoVersion version() const;
|
||||||
bool allowsRemoteMounts() const { return version() == Maemo5; }
|
bool allowsRemoteMounts() const { return version() == Maemo5; }
|
||||||
bool allowsPackagingDisabling() const { return version() == Maemo5; }
|
|
||||||
|
// TODO: Perhaps re-enable when we deploy via UTFS again, otherwise throw the whole function away.
|
||||||
|
bool allowsPackagingDisabling() const { return /* version() == Maemo5 */ false; }
|
||||||
|
|
||||||
bool allowsQmlDebugging() const { return version() == Maemo6; }
|
bool allowsQmlDebugging() const { return version() == Maemo6; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user