Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
5cf0e625
Commit
5cf0e625
authored
May 13, 2011
by
Tobias Hunger
Browse files
Remove code that is no longer necessary
We can figure out now whether something was build with mingw or not.
parent
99911c5f
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/baseqtversion.cpp
View file @
5cf0e625
...
...
@@ -1107,20 +1107,9 @@ QString BaseQtVersion::qtCorePath(const QHash<QString,QString> &versionInfo, con
return
QString
();
}
QList
<
ProjectExplorer
::
Abi
>
BaseQtVersion
::
qtAbisFromLibrary
(
const
QString
&
coreLibrary
,
bool
mingw
)
QList
<
ProjectExplorer
::
Abi
>
BaseQtVersion
::
qtAbisFromLibrary
(
const
QString
&
coreLibrary
)
{
QList
<
ProjectExplorer
::
Abi
>
qtAbis
=
ProjectExplorer
::
Abi
::
abisOfBinary
(
coreLibrary
);
#if defined (Q_OS_WIN)
if
(
mingw
)
{
QList
<
ProjectExplorer
::
Abi
>
tmp
=
qtAbis
;
qtAbis
.
clear
();
foreach
(
const
ProjectExplorer
::
Abi
&
abi
,
tmp
)
qtAbis
.
append
(
ProjectExplorer
::
Abi
(
abi
.
architecture
(),
abi
.
os
(),
ProjectExplorer
::
Abi
::
WindowsMSysFlavor
,
abi
.
binaryFormat
(),
abi
.
wordWidth
()));
}
#else
Q_UNUSED
(
mingw
)
#endif
if
(
qtAbis
.
isEmpty
()
&&
!
coreLibrary
.
isEmpty
())
{
qWarning
(
"Warning: Could not find ABI for '%s'"
"Qt Creator does not know about the system includes, "
...
...
src/plugins/qt4projectmanager/baseqtversion.h
View file @
5cf0e625
...
...
@@ -195,7 +195,7 @@ protected:
// helper function for desktop and simulator to figure out the supported abis based on the libraries
static
QString
qtCorePath
(
const
QHash
<
QString
,
QString
>
&
versionInfo
,
const
QString
&
versionString
);
static
QList
<
ProjectExplorer
::
Abi
>
qtAbisFromLibrary
(
const
QString
&
coreLibrary
,
bool
mingw
);
static
QList
<
ProjectExplorer
::
Abi
>
qtAbisFromLibrary
(
const
QString
&
coreLibrary
);
void
ensureMkSpecParsed
()
const
;
virtual
void
parseMkSpec
(
ProFileEvaluator
*
)
const
;
...
...
src/plugins/qt4projectmanager/qt-desktop/desktopqtversion.cpp
View file @
5cf0e625
...
...
@@ -87,18 +87,12 @@ QString DesktopQtVersion::invalidReason() const
return
QString
();
}
void
DesktopQtVersion
::
parseMkSpec
(
ProFileEvaluator
*
evaluator
)
const
{
m_mingw
=
(
evaluator
->
value
(
"MAKEFILE_GENERATOR"
)
==
"MINGW"
);
BaseQtVersion
::
parseMkSpec
(
evaluator
);
}
QList
<
ProjectExplorer
::
Abi
>
DesktopQtVersion
::
qtAbis
()
const
{
if
(
!
m_qtAbisUpToDate
)
{
m_qtAbisUpToDate
=
true
;
ensureMkSpecParsed
();
m_qtAbis
=
qtAbisFromLibrary
(
qtCorePath
(
versionInfo
(),
qtVersionString
())
,
m_mingw
);
m_qtAbis
=
qtAbisFromLibrary
(
qtCorePath
(
versionInfo
(),
qtVersionString
()));
}
return
m_qtAbis
;
}
...
...
src/plugins/qt4projectmanager/qt-desktop/desktopqtversion.h
View file @
5cf0e625
...
...
@@ -58,12 +58,10 @@ public:
virtual
QSet
<
QString
>
supportedTargetIds
()
const
;
QString
description
()
const
;
protected:
void
parseMkSpec
(
ProFileEvaluator
*
)
const
;
private:
mutable
bool
m_qtAbisUpToDate
;
mutable
QList
<
ProjectExplorer
::
Abi
>
m_qtAbis
;
mutable
bool
m_mingw
;
};
}
...
...
src/plugins/qt4projectmanager/qt-desktop/simulatorqtversion.cpp
View file @
5cf0e625
...
...
@@ -92,17 +92,11 @@ QList<ProjectExplorer::Abi> SimulatorQtVersion::qtAbis() const
if
(
!
m_qtAbisUpToDate
)
{
m_qtAbisUpToDate
=
true
;
ensureMkSpecParsed
();
m_qtAbis
=
qtAbisFromLibrary
(
qtCorePath
(
versionInfo
(),
qtVersionString
())
,
m_mingw
);
m_qtAbis
=
qtAbisFromLibrary
(
qtCorePath
(
versionInfo
(),
qtVersionString
()));
}
return
m_qtAbis
;
}
void
SimulatorQtVersion
::
parseMkSpec
(
ProFileEvaluator
*
evaluator
)
const
{
m_mingw
=
(
evaluator
->
value
(
"MAKEFILE_GENERATOR"
)
==
"MINGW"
);
BaseQtVersion
::
parseMkSpec
(
evaluator
);
}
bool
SimulatorQtVersion
::
supportsTargetId
(
const
QString
&
id
)
const
{
return
id
==
QLatin1String
(
Constants
::
QT_SIMULATOR_TARGET_ID
);
...
...
src/plugins/qt4projectmanager/qt-desktop/simulatorqtversion.h
View file @
5cf0e625
...
...
@@ -58,12 +58,10 @@ public:
virtual
QSet
<
QString
>
supportedTargetIds
()
const
;
QString
description
()
const
;
protected:
void
parseMkSpec
(
ProFileEvaluator
*
evaluator
)
const
;
private:
mutable
bool
m_qtAbisUpToDate
;
mutable
QList
<
ProjectExplorer
::
Abi
>
m_qtAbis
;
mutable
bool
m_mingw
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment