forked from qt-creator/qt-creator
qmakestep: add configuration paramenters for ios
Change-Id: Id0e6eceea5344929e7d2804ebd8cb47684f7ffe8 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -157,6 +157,7 @@ QString QMakeStep::allArguments(bool shorted)
|
|||||||
///
|
///
|
||||||
/// moreArguments,
|
/// moreArguments,
|
||||||
/// -unix for Maemo
|
/// -unix for Maemo
|
||||||
|
/// iphoneos/iphonesimulator for ios
|
||||||
/// QMAKE_VAR_QMLJSDEBUGGER_PATH
|
/// QMAKE_VAR_QMLJSDEBUGGER_PATH
|
||||||
QStringList QMakeStep::deducedArguments()
|
QStringList QMakeStep::deducedArguments()
|
||||||
{
|
{
|
||||||
@@ -175,11 +176,18 @@ QStringList QMakeStep::deducedArguments()
|
|||||||
arguments << QLatin1String("CONFIG+=x86");
|
arguments << QLatin1String("CONFIG+=x86");
|
||||||
else if (targetAbi.wordWidth() == 64)
|
else if (targetAbi.wordWidth() == 64)
|
||||||
arguments << QLatin1String("CONFIG+=x86_64");
|
arguments << QLatin1String("CONFIG+=x86_64");
|
||||||
|
|
||||||
|
const char IOSQT[] = "Qt4ProjectManager.QtVersion.Ios"; // from Ios::Constants (include header?)
|
||||||
|
QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(target()->kit());
|
||||||
|
if (version && version->type() == QLatin1String(IOSQT))
|
||||||
|
arguments << QLatin1String("CONFIG+=iphonesimulator");
|
||||||
} else if (targetAbi.architecture() == ProjectExplorer::Abi::PowerPCArchitecture) {
|
} else if (targetAbi.architecture() == ProjectExplorer::Abi::PowerPCArchitecture) {
|
||||||
if (targetAbi.wordWidth() == 32)
|
if (targetAbi.wordWidth() == 32)
|
||||||
arguments << QLatin1String("CONFIG+=ppc");
|
arguments << QLatin1String("CONFIG+=ppc");
|
||||||
else if (targetAbi.wordWidth() == 64)
|
else if (targetAbi.wordWidth() == 64)
|
||||||
arguments << QLatin1String("CONFIG+=ppc64");
|
arguments << QLatin1String("CONFIG+=ppc64");
|
||||||
|
} else if (targetAbi.architecture() == ProjectExplorer::Abi::ArmArchitecture) {
|
||||||
|
arguments << QLatin1String("CONFIG+=iphoneos");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user