Build qmake with QStringBuilder.
QStringBuilder will be enabled by default so qmake should build with it. qstringbuiler.cpp has to be compiled in just for the convertFromAscii (The alternative was to build with QT_NO_CAST_FROM_ASCII, but that would be too much work) Change-Id: I1fbeed7ed8a9d3bc38ef591a687c50644980e2fd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
4d1ad4e4d3
commit
3abc6be685
@ -16,7 +16,7 @@ OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o \
|
||||
gbuild.o
|
||||
|
||||
#qt code
|
||||
QOBJS=qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice.o qmalloc.o qglobal.o \
|
||||
QOBJS=qtextcodec.o qutfcodec.o qstring.o qstringbuilder.o qtextstream.o qiodevice.o qmalloc.o qglobal.o \
|
||||
qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o \
|
||||
qfilesystementry.o qfilesystemengine_unix.o qfilesystemengine.o qfilesystemiterator_unix.o \
|
||||
qfsfileengine_unix.o qfsfileengine.o \
|
||||
@ -57,6 +57,7 @@ DEPEND_SRC=project.cpp property.cpp meta.cpp main.cpp generators/makefile.cpp ge
|
||||
$(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp $(SOURCE_PATH)/src/corelib/tools/qmap.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/global/qconfig.cpp $(SOURCE_PATH)/src/corelib/io/qurl.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qstringbuilder.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qlocale.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qlocale_tools.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qlocale_unix.cpp \
|
||||
@ -225,6 +226,9 @@ qtextcodec.o: $(SOURCE_PATH)/src/corelib/codecs/qtextcodec.cpp
|
||||
qstring.o: $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
||||
|
||||
qstringbuilder.o: $(SOURCE_PATH)/src/corelib/tools/qstringbuilder.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstringbuilder.cpp
|
||||
|
||||
qlocale.o: $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
||||
|
||||
|
@ -106,6 +106,7 @@ QTOBJS= \
|
||||
qutfcodec.obj \
|
||||
qstring.obj \
|
||||
qstringlist.obj \
|
||||
qstringbuilder.obj \
|
||||
qsystemerror.obj \
|
||||
qtextstream.obj \
|
||||
qdatastream.obj \
|
||||
|
@ -110,6 +110,7 @@ QTOBJS= \
|
||||
qutfcodec.o \
|
||||
qstring.o \
|
||||
qstringlist.o \
|
||||
qstringbuilder.o \
|
||||
qsystemerror.o \
|
||||
qsystemlibrary.o \
|
||||
qtextstream.o \
|
||||
|
@ -1928,7 +1928,7 @@ ProjectBuilderMakefileGenerator::writeSettings(QString var, QStringList vals, in
|
||||
{
|
||||
QString ret;
|
||||
const QString quote = (flags & SettingsNoQuote) ? "" : "\"";
|
||||
const QString escape_quote = quote.isEmpty() ? "" : "\\" + quote;
|
||||
const QString escape_quote = quote.isEmpty() ? "" : QString("\\" + quote);
|
||||
QString newline = "\n";
|
||||
for(int i = 0; i < indent_level; ++i)
|
||||
newline += "\t";
|
||||
|
@ -1026,7 +1026,7 @@ QMakeProject::parse(const QString &t, QHash<QString, QStringList> &place, int nu
|
||||
debug_msg(1, "Project Parser: %s:%d : Entering block %d (%d). [%s]", parser.file.toLatin1().constData(),
|
||||
parser.line_no, scope_blocks.count(), scope_failed, s.toLatin1().constData());
|
||||
} else if(iterator) {
|
||||
iterator->parselist.append(var+s.mid(d_off));
|
||||
iterator->parselist.append(QString(var+s.mid(d_off)));
|
||||
bool ret = iterator->exec(this, place);
|
||||
delete iterator;
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user