diff options
Diffstat (limited to 'src/tools/pic30/pic30_compile.cpp')
-rw-r--r-- | src/tools/pic30/pic30_compile.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/tools/pic30/pic30_compile.cpp b/src/tools/pic30/pic30_compile.cpp index 02cbb35..3674e4b 100644 --- a/src/tools/pic30/pic30_compile.cpp +++ b/src/tools/pic30/pic30_compile.cpp @@ -13,9 +13,9 @@ #include "devices/list/device_list.h" //----------------------------------------------------------------------------- -QStringList PIC30::CompileFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::CompileFile::genericArguments(const Compile::Config &config) const { - QStringList args; + TQStringList args; args += "-S"; // compile only args += "$NO_AUTO_DEVICE(-mcpu=%DEVICE)"; args += config.includeDirs(Tool::Category::Compiler, "-I"); @@ -25,43 +25,43 @@ QStringList PIC30::CompileFile::genericArguments(const Compile::Config &config) return args; } -QString PIC30::CompileFile::outputFiles() const +TQString PIC30::CompileFile::outputFiles() const { return "PURL::AsmPIC30"; } -void PIC30::CompileFile::logStderrLine(const QString &line) +void PIC30::CompileFile::logStderrLine(const TQString &line) { // #### TODO - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } //----------------------------------------------------------------------------- -QStringList PIC30::CompileStandaloneFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::CompileStandaloneFile::genericArguments(const Compile::Config &config) const { - QStringList args = CompileFile::genericArguments(config); + TQStringList args = CompileFile::genericArguments(config); args += "%I"; return args; } -QString PIC30::CompileStandaloneFile::outputFiles() const +TQString PIC30::CompileStandaloneFile::outputFiles() const { return CompileFile::outputFiles() + " PURL::Object PURL::Elf"; } //----------------------------------------------------------------------------- -QStringList PIC30::CompileProjectFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::CompileProjectFile::genericArguments(const Compile::Config &config) const { - QStringList args = CompileFile::genericArguments(config); + TQStringList args = CompileFile::genericArguments(config); args += "-g"; args += "%I"; return args; } //----------------------------------------------------------------------------- -QStringList PIC30::AssembleFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::AssembleFile::genericArguments(const Compile::Config &config) const { - QStringList args; + TQStringList args; args += "-g"; args += "-a=%LIST"; // listing args += "-o%O"; @@ -70,45 +70,45 @@ QStringList PIC30::AssembleFile::genericArguments(const Compile::Config &config) return args; } -QString PIC30::AssembleFile::outputFiles() const +TQString PIC30::AssembleFile::outputFiles() const { return "PURL::Object PURL::Lst"; } -void PIC30::AssembleFile::logStderrLine(const QString &line) +void PIC30::AssembleFile::logStderrLine(const TQString &line) { // #### TODO - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } //----------------------------------------------------------------------------- -QStringList PIC30::AssembleStandaloneFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::AssembleStandaloneFile::genericArguments(const Compile::Config &config) const { - QStringList args = AssembleFile::genericArguments(config); + TQStringList args = AssembleFile::genericArguments(config); args += "$NO_AUTO_DEVICE(-p%DEVICE)"; args += "%I"; return args; } //----------------------------------------------------------------------------- -QStringList PIC30::AssembleProjectFile::genericArguments(const Compile::Config &config) const +TQStringList PIC30::AssembleProjectFile::genericArguments(const Compile::Config &config) const { - QStringList args = AssembleFile::genericArguments(config); + TQStringList args = AssembleFile::genericArguments(config); if ( !_data.items[0].generated ) args += "-p%DEVICE"; args += "%I"; return args; } //----------------------------------------------------------------------------- -QString PIC30::Link::outputFilepath() const +TQString PIC30::Link::outputFilepath() const { PURL::FileType type = Compile::Config::outputExecutableType(group()).data().type; return filepath(type); } -QStringList PIC30::Link::genericArguments(const Compile::Config &config) const +TQStringList PIC30::Link::genericArguments(const Compile::Config &config) const { - QStringList args; + TQStringList args; args += "-Map"; args += "%MAP"; args += "-o%O"; @@ -121,39 +121,39 @@ QStringList PIC30::Link::genericArguments(const Compile::Config &config) const return args; } -QString PIC30::Link::outputFiles() const +TQString PIC30::Link::outputFiles() const { PURL::FileType type = Compile::Config::outputExecutableType(group()).data().type; - return QString("PURL::Map PURL::") + type.key(); + return TQString("PURL::Map PURL::") + type.key(); } -void PIC30::Link::logStderrLine(const QString &line) +void PIC30::Link::logStderrLine(const TQString &line) { // #### TODO - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } //----------------------------------------------------------------------------- -QStringList PIC30::LinkStandalone::genericArguments(const Compile::Config &config) const +TQStringList PIC30::LinkStandalone::genericArguments(const Compile::Config &config) const { - QStringList args = Link::genericArguments(config); + TQStringList args = Link::genericArguments(config); args += config.customLibraries(Tool::Category::Linker); return args; } //----------------------------------------------------------------------------- -QStringList PIC30::LinkProject::genericArguments(const Compile::Config &config) const +TQStringList PIC30::LinkProject::genericArguments(const Compile::Config &config) const { - QStringList args = Link::genericArguments(config); + TQStringList args = Link::genericArguments(config); args += "%LIBS"; args += config.customLibraries(Tool::Category::Linker); return args; } //----------------------------------------------------------------------------- -QStringList PIC30::LibraryProject::genericArguments(const Compile::Config &) const +TQStringList PIC30::LibraryProject::genericArguments(const Compile::Config &) const { - QStringList args; + TQStringList args; args += "-rc"; // insert new + do not warn if creating library args += "%O"; args += "%LIBS"; @@ -161,36 +161,36 @@ QStringList PIC30::LibraryProject::genericArguments(const Compile::Config &) con return args; } -void PIC30::LibraryProject::logStderrLine(const QString &line) +void PIC30::LibraryProject::logStderrLine(const TQString &line) { // #### TODO - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } -QString PIC30::LibraryProject::outputFiles() const +TQString PIC30::LibraryProject::outputFiles() const { return "PURL::Library"; } //----------------------------------------------------------------------------- -QString PIC30::BinToHex::inputFilepath(uint) const +TQString PIC30::BinToHex::inputFilepath(uint) const { PURL::FileType type = Compile::Config::outputExecutableType(group()).data().type; return filepath(type); } -QStringList PIC30::BinToHex::genericArguments(const Compile::Config &) const +TQStringList PIC30::BinToHex::genericArguments(const Compile::Config &) const { return "%I"; } -QString PIC30::BinToHex::outputFiles() const +TQString PIC30::BinToHex::outputFiles() const { return "PURL::Hex"; } -void PIC30::BinToHex::logStderrLine(const QString &line) +void PIC30::BinToHex::logStderrLine(const TQString &line) { // #### TODO - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } |