Merge remote-tracking branch 'origin/4.5' into 4.6
Conflicts: src/shared/qbs Change-Id: Ib734825a302efe41021307d7d64eb7b453262dc4
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
@@ -51,6 +51,27 @@ namespace ProjectExplorer {
|
|||||||
// Helpers
|
// Helpers
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
static Abi::Architecture architectureFromQt()
|
||||||
|
{
|
||||||
|
const QString arch = QSysInfo::buildCpuArchitecture();
|
||||||
|
if (arch.startsWith("arm"))
|
||||||
|
return Abi::ArmArchitecture;
|
||||||
|
if (arch.startsWith("x86") || arch == "i386")
|
||||||
|
return Abi::X86Architecture;
|
||||||
|
if (arch == "ia64")
|
||||||
|
return Abi::ItaniumArchitecture;
|
||||||
|
if (arch.startsWith("mips"))
|
||||||
|
return Abi::MipsArchitecture;
|
||||||
|
if (arch.startsWith("power"))
|
||||||
|
return Abi::PowerPCArchitecture;
|
||||||
|
if (arch.startsWith("sh")) // Not in Qt documentation!
|
||||||
|
return Abi::ShArchitecture;
|
||||||
|
if (arch.startsWith("avr")) // Not in Qt documentation!
|
||||||
|
return Abi::AvrArchitecture;
|
||||||
|
|
||||||
|
return Abi::UnknownArchitecture;
|
||||||
|
}
|
||||||
|
|
||||||
static quint8 getUint8(const QByteArray &data, int pos)
|
static quint8 getUint8(const QByteArray &data, int pos)
|
||||||
{
|
{
|
||||||
return static_cast<quint8>(data.at(pos));
|
return static_cast<quint8>(data.at(pos));
|
||||||
@@ -840,7 +861,7 @@ Abi::OSFlavor Abi::flavorForMsvcVersion(int version)
|
|||||||
|
|
||||||
Abi Abi::hostAbi()
|
Abi Abi::hostAbi()
|
||||||
{
|
{
|
||||||
Architecture arch = QTC_CPU; // define set by qmake
|
Architecture arch = architectureFromQt();
|
||||||
OS os = UnknownOS;
|
OS os = UnknownOS;
|
||||||
OSFlavor subos = UnknownFlavor;
|
OSFlavor subos = UnknownFlavor;
|
||||||
BinaryFormat format = UnknownFormat;
|
BinaryFormat format = UnknownFormat;
|
||||||
|
|||||||
@@ -332,11 +332,4 @@ journald {
|
|||||||
|
|
||||||
RESOURCES += projectexplorer.qrc
|
RESOURCES += projectexplorer.qrc
|
||||||
|
|
||||||
# Some way to override the architecture used in Abi:
|
|
||||||
!isEmpty($$(QTC_CPU)) {
|
|
||||||
DEFINES += QTC_CPU=$$(QTC_CPU)
|
|
||||||
} else {
|
|
||||||
DEFINES += QTC_CPU=X86Architecture
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFINES += PROJECTEXPLORER_LIBRARY
|
DEFINES += PROJECTEXPLORER_LIBRARY
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ Project {
|
|||||||
Depends { name: "TextEditor" }
|
Depends { name: "TextEditor" }
|
||||||
Depends { name: "app_version_header" }
|
Depends { name: "app_version_header" }
|
||||||
|
|
||||||
cpp.defines: base.concat("QTC_CPU=X86Architecture")
|
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "General"
|
name: "General"
|
||||||
files: [
|
files: [
|
||||||
|
|||||||
@@ -25,13 +25,6 @@
|
|||||||
\" <comment>Linguist compiled translations</comment>\",
|
\" <comment>Linguist compiled translations</comment>\",
|
||||||
\" <glob pattern=\'*.qm\'/>\",
|
\" <glob pattern=\'*.qm\'/>\",
|
||||||
\" </mime-type>\",
|
\" </mime-type>\",
|
||||||
\" <mime-type type=\'application/x-linguist\'>\",
|
|
||||||
\" <comment>Linguist source translations</comment>\",
|
|
||||||
\" <magic>\",
|
|
||||||
\" <match value=\'<TS\' type=\'string\' offset=\'0:256\'/>\",
|
|
||||||
\" </magic>\",
|
|
||||||
\" <glob pattern=\'*.ts\' weight=\'70\'/>\",
|
|
||||||
\" </mime-type>\",
|
|
||||||
\" <mime-type type=\'application/scxml+xml\'>\",
|
\" <mime-type type=\'application/scxml+xml\'>\",
|
||||||
\" <comment>SCXML State Chart</comment>\",
|
\" <comment>SCXML State Chart</comment>\",
|
||||||
\" <sub-class-of type=\'application/xml\'/>\",
|
\" <sub-class-of type=\'application/xml\'/>\",
|
||||||
|
|||||||