Skip to content
Snippets Groups Projects
Commit d3e4cd25 authored by con's avatar con
Browse files

System includes for winscw tool chain.

parent cdc54c3b
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,11 @@ ...@@ -15,9 +15,11 @@
of ToolChain::defaultMakeTarget then as well of ToolChain::defaultMakeTarget then as well
* build parser should be defined/created by toolchain, not make step * build parser should be defined/created by toolchain, not make step
* Tool chains:
* changing tool chain does not reindex (changed includes+defines)
* WINSCW tool chain: * WINSCW tool chain:
* predefined macros * predefined macros
* system includes
* Run WINSCW executables * Run WINSCW executables
* Deploy gcce executables * Deploy gcce executables
......
...@@ -25,11 +25,15 @@ QByteArray WINSCWToolChain::predefinedMacros() ...@@ -25,11 +25,15 @@ QByteArray WINSCWToolChain::predefinedMacros()
QList<HeaderPath> WINSCWToolChain::systemHeaderPaths() QList<HeaderPath> WINSCWToolChain::systemHeaderPaths()
{ {
// TODO if (m_systemHeaderPaths.isEmpty()) {
foreach (const QString &value, systemIncludes()) {
m_systemHeaderPaths.append(HeaderPath(value, HeaderPath::GlobalHeaderPath));
}
}
return m_systemHeaderPaths; return m_systemHeaderPaths;
} }
void WINSCWToolChain::addToEnvironment(ProjectExplorer::Environment &env) QStringList WINSCWToolChain::systemIncludes() const
{ {
QStringList symIncludes = QStringList() QStringList symIncludes = QStringList()
<< "\\MSL\\MSL_C\\MSL_Common\\Include" << "\\MSL\\MSL_C\\MSL_Common\\Include"
...@@ -41,7 +45,12 @@ void WINSCWToolChain::addToEnvironment(ProjectExplorer::Environment &env) ...@@ -41,7 +45,12 @@ void WINSCWToolChain::addToEnvironment(ProjectExplorer::Environment &env)
<< "\\Win32-x86 Support\\Headers\\Win32 SDK"; << "\\Win32-x86 Support\\Headers\\Win32 SDK";
for (int i = 0; i < symIncludes.size(); ++i) for (int i = 0; i < symIncludes.size(); ++i)
symIncludes[i].prepend(QString("%1\\x86Build\\Symbian_Support").arg(m_carbidePath)); symIncludes[i].prepend(QString("%1\\x86Build\\Symbian_Support").arg(m_carbidePath));
env.set("MWCSYM2INCLUDES", symIncludes.join(";")); return symIncludes;
}
void WINSCWToolChain::addToEnvironment(ProjectExplorer::Environment &env)
{
env.set("MWCSYM2INCLUDES", systemIncludes().join(";"));
QStringList symLibraries = QStringList() QStringList symLibraries = QStringList()
<< "\\Win32-x86 Support\\Libraries\\Win32 SDK" << "\\Win32-x86 Support\\Libraries\\Win32 SDK"
<< "\\Runtime\\Runtime_x86\\Runtime_Win32\\Libs"; << "\\Runtime\\Runtime_x86\\Runtime_Win32\\Libs";
......
...@@ -24,6 +24,7 @@ protected: ...@@ -24,6 +24,7 @@ protected:
bool equals(ToolChain *other) const; bool equals(ToolChain *other) const;
private: private:
QStringList systemIncludes() const;
QString m_carbidePath; QString m_carbidePath;
QString m_deviceId; QString m_deviceId;
QString m_deviceName; QString m_deviceName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment