summaryrefslogtreecommitdiffstats
path: root/src/tools/picc/picc_compile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/tools/picc/picc_compile.cpp
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/tools/picc/picc_compile.cpp')
-rw-r--r--src/tools/picc/picc_compile.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/tools/picc/picc_compile.cpp b/src/tools/picc/picc_compile.cpp
index 63fd127..ca390fc 100644
--- a/src/tools/picc/picc_compile.cpp
+++ b/src/tools/picc/picc_compile.cpp
@@ -11,9 +11,9 @@
#include "picc_config.h"
//-----------------------------------------------------------------------------
-QStringList PICC::Process::genericArguments(const Compile::Config &) const
+TQStringList PICC::Process::genericArguments(const Compile::Config &) const
{
- QStringList args;
+ TQStringList args;
args += "--ERRFORMAT";
args += "--WARNFORMAT";
args += "--MSGFORMAT";
@@ -23,16 +23,16 @@ QStringList PICC::Process::genericArguments(const Compile::Config &) const
return args;
}
-void PICC::Process::logStderrLine(const QString &line)
+void PICC::Process::logStderrLine(const TQString &line)
{
// #### TODO
- doLog(Log::LineType::Normal, line, QString::null, 0);
+ doLog(Log::LineType::Normal, line, TQString(), 0);
}
//-----------------------------------------------------------------------------
-QStringList PICC::CompileStandaloneFile::genericArguments(const Compile::Config &config) const
+TQStringList PICC::CompileStandaloneFile::genericArguments(const Compile::Config &config) const
{
- QStringList args = Process::genericArguments(config);
+ TQStringList args = Process::genericArguments(config);
args += "-M%MAP";
args += "-G%SYM";
args += "--ASMLIST";
@@ -42,15 +42,15 @@ QStringList PICC::CompileStandaloneFile::genericArguments(const Compile::Config
return args;
}
-QString PICC::CompileStandaloneFile::outputFiles() const
+TQString PICC::CompileStandaloneFile::outputFiles() const
{
return "PURL::Lst PURL::Map obj PURL::Hex PURL::Coff sym sdb hxl rlf";
}
//-----------------------------------------------------------------------------
-QStringList PICC::CompileProjectFile::genericArguments(const Compile::Config &config) const
+TQStringList PICC::CompileProjectFile::genericArguments(const Compile::Config &config) const
{
- QStringList args = Process::genericArguments(config);
+ TQStringList args = Process::genericArguments(config);
args += "-S";
args += config.includeDirs(Tool::Category::Compiler, "-I");
args += config.customOptions(Tool::Category::Compiler);
@@ -58,15 +58,15 @@ QStringList PICC::CompileProjectFile::genericArguments(const Compile::Config &co
return args;
}
-QString PICC::CompileProjectFile::outputFiles() const
+TQString PICC::CompileProjectFile::outputFiles() const
{
return "PURL::AsmPICC";
}
//-----------------------------------------------------------------------------
-QStringList PICC::AssembleStandaloneFile::genericArguments(const Compile::Config &config) const
+TQStringList PICC::AssembleStandaloneFile::genericArguments(const Compile::Config &config) const
{
- QStringList args = Process::genericArguments(config);
+ TQStringList args = Process::genericArguments(config);
args += "-M%MAP";
args += "-G%SYM";
args += "--ASMLIST";
@@ -76,15 +76,15 @@ QStringList PICC::AssembleStandaloneFile::genericArguments(const Compile::Config
return args;
}
-QString PICC::AssembleStandaloneFile::outputFiles() const
+TQString PICC::AssembleStandaloneFile::outputFiles() const
{
return "PURL::Lst PURL::Map obj PURL::Hex sym sdb hxl rlf";
}
//-----------------------------------------------------------------------------
-QStringList PICC::AssembleProjectFile::genericArguments(const Compile::Config &config) const
+TQStringList PICC::AssembleProjectFile::genericArguments(const Compile::Config &config) const
{
- QStringList args = Process::genericArguments(config);
+ TQStringList args = Process::genericArguments(config);
args += "-C";
args += "--ASMLIST";
args += config.includeDirs(Tool::Category::Assembler, "-I");
@@ -93,15 +93,15 @@ QStringList PICC::AssembleProjectFile::genericArguments(const Compile::Config &c
return args;
}
-QString PICC::AssembleProjectFile::outputFiles() const
+TQString PICC::AssembleProjectFile::outputFiles() const
{
return "obj PURL::Lst rlf";
}
//-----------------------------------------------------------------------------
-QStringList PICC::LinkProject::genericArguments(const Compile::Config &config) const
+TQStringList PICC::LinkProject::genericArguments(const Compile::Config &config) const
{
- QStringList args = Process::genericArguments(config);
+ TQStringList args = Process::genericArguments(config);
args += "-O%O";
args += "-M%MAP";
args += "-G%SYM";
@@ -113,15 +113,15 @@ QStringList PICC::LinkProject::genericArguments(const Compile::Config &config) c
return args;
}
-QString PICC::LinkProject::outputFiles() const
+TQString PICC::LinkProject::outputFiles() const
{
return "PURL::Map PURL::Hex PURL::Coff sym sdb hxl";
}
//-----------------------------------------------------------------------------
-QStringList PICC::LibraryProject::genericArguments(const Compile::Config &config) const
+TQStringList PICC::LibraryProject::genericArguments(const Compile::Config &config) const
{
- QStringList args;
+ TQStringList args;
args += config.customOptions(Tool::Category::Librarian);
args += "r";
args += "%O";
@@ -130,7 +130,7 @@ QStringList PICC::LibraryProject::genericArguments(const Compile::Config &config
return args;
}
-QString PICC::LibraryProject::outputFiles() const
+TQString PICC::LibraryProject::outputFiles() const
{
return "PURL::Library";
}