summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-18 12:44:36 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-18 12:44:36 (GMT)
commitfc58a8bd3c77b83d316a45ddcfd3edba93a4c1e4 (patch)
tree75ebe5ee35305cacff7b76a9c8ba606f803c85c3 /qmake/project.cpp
parent06524f769fec76fa7ebcc39ac88ac9e08c720677 (diff)
downloadQt-fc58a8bd3c77b83d316a45ddcfd3edba93a4c1e4.zip
Qt-fc58a8bd3c77b83d316a45ddcfd3edba93a4c1e4.tar.gz
Qt-fc58a8bd3c77b83d316a45ddcfd3edba93a4c1e4.tar.bz2
Review fixes to qmake
- Removed MWC specific code and makefile - Added INTERNAL to few qmake variables that were only used internally Reviewed-by: Janne Koskinen
Diffstat (limited to 'qmake/project.cpp')
-rw-r--r--qmake/project.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 0f584f4..8455c6d 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -65,12 +65,8 @@
#include <stdlib.h>
#ifdef Q_OS_WIN32
-#if defined(Q_CC_MWERKS)
-#include "qpopen.h"
-#else
#define QT_POPEN _popen
#define QT_PCLOSE _pclose
-#endif
#else
#define QT_POPEN popen
#define QT_PCLOSE pclose
@@ -2250,28 +2246,6 @@ QMakeProject::doProjectExpand(QString func, QList<QStringList> args_list,
if(args.count() > 1)
singleLine = (args[1].toLower() == "true");
QString output;
-#if defined(Q_CC_MWERKS) && defined(Q_OS_WIN32)
- QPopen procPipe;
- if( !procPipe.init(args[0].toLatin1(), "r") ) {
- fprintf(stderr, "%s:%d system(%s) failed.\n",
- parser.file.toLatin1().constData(),
- parser.line_no,
- qPrintable(args[0]));
- }
-
- while(true) {
- int read_in = procPipe.fread(buff, 255);
- if ( !read_in )
- break;
- for(int i = 0; i < read_in; ++i) {
- if((singleLine && buff[i] == '\n') || buff[i] == '\t')
- buff[i] = ' ';
- }
- buff[read_in] = '\0';
- output += buff;
- }
- ret += split_value_list(output);
-#else
FILE *proc = QT_POPEN(args[0].toLatin1(), "r");
while(proc && !feof(proc)) {
int read_in = int(fread(buff, 1, 255, proc));
@@ -2287,7 +2261,6 @@ QMakeProject::doProjectExpand(QString func, QList<QStringList> args_list,
ret += split_value_list(output);
if(proc)
QT_PCLOSE(proc);
-#endif
}
break; }
case E_UNIQUE: {