Maemo: Use dpkg-buildpackage instead of calling dh-scripts manually.

Note to the merge person: This commit might trigger a merge conflict.
In that case, just use the code from the master branch.
This commit is contained in:
ck
2010-07-09 08:28:56 +02:00
parent 5265c25b56
commit 5b47f47dc9
2 changed files with 72 additions and 51 deletions

View File

@@ -44,6 +44,8 @@
#include <projectexplorer/buildstep.h>
#include <QtCore/QScopedPointer>
QT_BEGIN_NAMESPACE
class QFile;
class QProcess;
@@ -62,6 +64,7 @@ class MaemoPackageCreationStep : public ProjectExplorer::BuildStep
friend class MaemoPackageCreationFactory;
public:
MaemoPackageCreationStep(ProjectExplorer::BuildConfiguration *buildConfig);
~MaemoPackageCreationStep();
QString packageFilePath() const;
QString localExecutableFilePath() const;
@@ -74,6 +77,9 @@ public:
QString versionString() const;
void setVersionString(const QString &version);
private slots:
void handleBuildOutput();
private:
MaemoPackageCreationStep(ProjectExplorer::BuildConfiguration *buildConfig,
MaemoPackageCreationStep *other);
@@ -86,8 +92,8 @@ private:
virtual bool fromMap(const QVariantMap &map);
bool createPackage();
bool runCommand(QProcess &proc, const QString &command);
const Qt4BuildConfiguration *qt4BuildConfiguration() const;
bool runCommand(const QString &command);
const MaemoToolChain *maemoToolChain() const;
QString maddeRoot() const;
QString targetRoot() const;
@@ -102,6 +108,7 @@ private:
MaemoPackageContents *const m_packageContents;
bool m_packagingEnabled;
QString m_versionString;
QScopedPointer<QProcess> m_buildProc;
};
} // namespace Internal