forked from qt-creator/qt-creator
Merge remote branch 'origin/2.0'
Conflicts: doc/qtcreator.qdoc share/qtcreator/gdbmacros/dumper.py src/libs/qmljs/qmljs-lib.pri src/plugins/debugger/breakhandler.cpp src/plugins/projectexplorer/projectexplorer.h src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
This commit is contained in:
@@ -150,7 +150,7 @@ bool MaemoPackageCreationStep::createPackage()
|
||||
env.insert(key, path % QLatin1String("madbin") % colon % env.value(key));
|
||||
env.insert(QLatin1String("PERL5LIB"), path % QLatin1String("madlib/perl5"));
|
||||
|
||||
const QString buildDir = QFileInfo(localExecutableFilePath()).absolutePath();
|
||||
const QString buildDir = buildDirectory();
|
||||
env.insert(QLatin1String("PWD"), buildDir);
|
||||
|
||||
const QRegExp envPattern(QLatin1String("([^=]+)=[\"']?([^;\"']+)[\"']? ;.*"));
|
||||
@@ -174,7 +174,7 @@ bool MaemoPackageCreationStep::createPackage()
|
||||
|
||||
if (!QFileInfo(buildDir + QLatin1String("/debian")).exists()) {
|
||||
const QString command = QLatin1String("dh_make -s -n -p ")
|
||||
% executableFileName().toLower() % QLatin1Char('_') % version;
|
||||
% executableFileName().toLower() % QLatin1Char('_') % versionString();
|
||||
if (!runCommand(buildProc, command))
|
||||
return false;
|
||||
|
||||
@@ -291,6 +291,13 @@ QString MaemoPackageCreationStep::localExecutableFilePath() const
|
||||
+ QLatin1Char('/') + executableFileName()));
|
||||
}
|
||||
|
||||
QString MaemoPackageCreationStep::buildDirectory() const
|
||||
{
|
||||
const TargetInformation &ti = qt4BuildConfiguration()->qt4Target()
|
||||
->qt4Project()->rootProjectNode()->targetInformation();
|
||||
return ti.valid ? ti.buildDir : QString();
|
||||
}
|
||||
|
||||
QString MaemoPackageCreationStep::executableFileName() const
|
||||
{
|
||||
const Qt4Project * const project
|
||||
@@ -338,8 +345,7 @@ bool MaemoPackageCreationStep::packagingNeeded() const
|
||||
|
||||
QString MaemoPackageCreationStep::packageFilePath() const
|
||||
{
|
||||
QFileInfo execInfo(localExecutableFilePath());
|
||||
return execInfo.path() % QDir::separator() % execInfo.fileName().toLower()
|
||||
return buildDirectory() % QDir::separator() % executableFileName().toLower()
|
||||
% QLatin1Char('_') % versionString() % QLatin1String("_armel.deb");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user