From 456a04711c814b6302fcb57005bed873acb12c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 1 Jun 2009 12:52:35 +0200 Subject: Updated qmakeish to new directory structure. diff --git a/.gitignore b/.gitignore index 8364ba9..01857aa 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,5 @@ UI/Qt/Makefile UI/Qt/swift UI/Qt/DefaultTheme.qrc UI/Qt/*/Makefile +UI/Qt/Swiften.pri tools/coverage/results diff --git a/Swiften/Swift.pri b/Swiften/Swift.pri deleted file mode 100644 index 2ee62ef..0000000 --- a/Swiften/Swift.pri +++ /dev/null @@ -1,322 +0,0 @@ -INCLUDEPATH += $$PWD/.. -!DUMMY { -} else { -} -DUMMY { -DUMMY { -!DUMMY { -} else { -} -} -} -## Begin File: 3rdParty/Boost/Makefile.inc -DEFINES += BOOST_ALL_NO_LIB -INCLUDEPATH += $$PWD/3rdParty/Boost -DEFINES += BOOST_SIGNALS_NAMESPACE=bsignals -SOURCES += $$PWD/3rdParty/Boost/libs/date_time/src/gregorian/date_generators.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/date_time/src/gregorian/greg_month.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/date_time/src/gregorian/greg_weekday.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/date_time/src/gregorian/gregorian_types.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/date_time/src/posix_time/posix_time_types.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/system/src/error_code.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/tss_null.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/signals/src/connection.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/signals/src/named_slot_map.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/signals/src/signal_base.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/signals/src/slot.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/signals/src/trackable.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/filesystem/src/operations.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/filesystem/src/path.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/filesystem/src/portability.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/filesystem/src/utf8_codecvt_facet.cpp -win32 { -DEFINES += _WIN32_WINNT=0x0501 -DEFINES += __USE_W32_SOCKETS -SOURCES += $$PWD/3rdParty/Boost/win32_stubs.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/win32/exceptions.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/win32/thread.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/win32/tss_dll.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/win32/tss_pe.cpp -} else { -LIBS += -lpthread -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/pthread/exceptions.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/pthread/once.cpp -SOURCES += $$PWD/3rdParty/Boost/libs/thread/src/pthread/thread.cpp -} -## End file -## Begin File: 3rdParty/CppUnit/Makefile.inc -INCLUDEPATH += $$PWD/3rdParty/CppUnit -## End file -## Begin File: 3rdParty/LibIDN/Makefile.inc -INCLUDEPATH += $$PWD/3rdParty/LibIDN/src -INCLUDEPATH += $$PWD/3rdParty/LibIDN/src -INCLUDEPATH += $$PWD/3rdParty/LibIDN/stubs -win32 { -DEFINES += IDNA_STATIC -INCLUDEPATH += $$PWD/3rdParty/LibIDN/stubs/win32 -DEFINES += strcasecmp=stricmp -DEFINES += strncasecmp=strnicmp -INCLUDEPATH += $$PWD/3rdParty/LibIDN/stubs/win32 -} -SOURCES += $$PWD/3rdParty/LibIDN/src/stringprep.c -SOURCES += $$PWD/3rdParty/LibIDN/src/profiles.c -SOURCES += $$PWD/3rdParty/LibIDN/src/rfc3454.c -SOURCES += $$PWD/3rdParty/LibIDN/src/punycode.c -SOURCES += $$PWD/3rdParty/LibIDN/src/idna.c -SOURCES += $$PWD/3rdParty/LibIDN/src/toutf8.c -SOURCES += $$PWD/3rdParty/LibIDN/src/nfkc.c -## End file -## Begin File: 3rdParty/ZLib/Makefile.inc -INCLUDEPATH += $$PWD/3rdParty/ZLib/src -INCLUDEPATH += $$PWD/3rdParty/ZLib/src -SOURCES += $$PWD/3rdParty/ZLib/src/adler32.c -SOURCES += $$PWD/3rdParty/ZLib/src/compress.c -SOURCES += $$PWD/3rdParty/ZLib/src/crc32.c -SOURCES += $$PWD/3rdParty/ZLib/src/deflate.c -SOURCES += $$PWD/3rdParty/ZLib/src/gzio.c -SOURCES += $$PWD/3rdParty/ZLib/src/infback.c -SOURCES += $$PWD/3rdParty/ZLib/src/inffast.c -SOURCES += $$PWD/3rdParty/ZLib/src/inflate.c -SOURCES += $$PWD/3rdParty/ZLib/src/inftrees.c -SOURCES += $$PWD/3rdParty/ZLib/src/trees.c -SOURCES += $$PWD/3rdParty/ZLib/src/uncompr.c -SOURCES += $$PWD/3rdParty/ZLib/src/zutil.c -## End file -## Begin File: Base/Makefile.inc -SOURCES += $$PWD/Base/String.cpp -SOURCES += $$PWD/Base/ByteArray.cpp -SOURCES += $$PWD/Base/IDGenerator.cpp -SOURCES += $$PWD/Base/sleep.cpp -## Begin File: Base/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Application/Makefile.inc -SOURCES += $$PWD/Application/Application.cpp -SOURCES += $$PWD/Application/ApplicationMessageDisplay.cpp -mac { -## Begin File: Application/MacOSX/Makefile.inc -SOURCES += $$PWD/Application/MacOSX/MacOSXApplication.cpp -## End file -} -## Begin File: Application/UnitTest/Makefile.inc -## End file -## End file -## Begin File: EventLoop/Makefile.inc -SOURCES += $$PWD/EventLoop/EventLoop.cpp -SOURCES += $$PWD/EventLoop/SimpleEventLoop.cpp -SOURCES += $$PWD/EventLoop/MainEventLoop.cpp -## Begin File: EventLoop/UnitTest/Makefile.inc -## End file -## End file -## Begin File: StringCodecs/Makefile.inc -SOURCES += $$PWD/StringCodecs/Base64.cpp -SOURCES += $$PWD/StringCodecs/SHA1.cpp -## Begin File: StringCodecs/UnitTest/Makefile.inc -## End file -## End file -## Begin File: JID/Makefile.inc -SOURCES += $$PWD/JID/JID.cpp -## Begin File: JID/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Elements/Makefile.inc -SOURCES += $$PWD/Elements/RosterPayload.cpp -SOURCES += $$PWD/Elements/Payload.cpp -SOURCES += $$PWD/Elements/Stanza.cpp -SOURCES += $$PWD/Elements/Element.cpp -SOURCES += $$PWD/Elements/DiscoInfo.cpp -SOURCES += $$PWD/Elements/IQ.cpp -## Begin File: Elements/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Events/Makefile.inc -## End file -## Begin File: StreamStack/Makefile.inc -SOURCES += $$PWD/StreamStack/XMPPLayer.cpp -SOURCES += $$PWD/StreamStack/StreamStack.cpp -SOURCES += $$PWD/StreamStack/LowLayer.cpp -SOURCES += $$PWD/StreamStack/HighLayer.cpp -SOURCES += $$PWD/StreamStack/WhitespacePingLayer.cpp -SOURCES += $$PWD/StreamStack/TLSLayerFactory.cpp -SOURCES += $$PWD/StreamStack/PlatformTLSLayerFactory.cpp -!isEmpty(HAVE_OPENSSL) { -SOURCES += $$PWD/StreamStack/OpenSSLLayer.cpp -} -## Begin File: StreamStack/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Serializer/Makefile.inc -SOURCES += $$PWD/Serializer/ElementSerializer.cpp -SOURCES += $$PWD/Serializer/CompressRequestSerializer.cpp -SOURCES += $$PWD/Serializer/AuthRequestSerializer.cpp -SOURCES += $$PWD/Serializer/StreamFeaturesSerializer.cpp -SOURCES += $$PWD/Serializer/XMPPSerializer.cpp -SOURCES += $$PWD/Serializer/StanzaSerializer.cpp -SOURCES += $$PWD/Serializer/PresenceSerializer.cpp -SOURCES += $$PWD/Serializer/MessageSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializerCollection.cpp -## Begin File: Serializer/UnitTest/Makefile.inc -## End file -## Begin File: Serializer/XML/Makefile.inc -SOURCES += $$PWD/Serializer/XML/XMLNode.cpp -SOURCES += $$PWD/Serializer/XML/XMLElement.cpp -## Begin File: Serializer/XML/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Serializer/PayloadSerializers/Makefile.inc -SOURCES += $$PWD/Serializer/PayloadSerializers/SoftwareVersionSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/FullPayloadSerializerCollection.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/ErrorSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/MUCPayloadSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/RosterSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/DiscoInfoSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/CapsInfoSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/ResourceBindSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/SecurityLabelSerializer.cpp -SOURCES += $$PWD/Serializer/PayloadSerializers/SecurityLabelsCatalogSerializer.cpp -## Begin File: Serializer/PayloadSerializers/UnitTest/Makefile.inc -## End file -## End file -## End file -## Begin File: Parser/Makefile.inc -SOURCES += $$PWD/Parser/XMLParser.cpp -SOURCES += $$PWD/Parser/XMLParserClient.cpp -SOURCES += $$PWD/Parser/XMLParserFactory.cpp -SOURCES += $$PWD/Parser/PlatformXMLParserFactory.cpp -SOURCES += $$PWD/Parser/XMPPParser.cpp -SOURCES += $$PWD/Parser/XMPPParserClient.cpp -SOURCES += $$PWD/Parser/MessageParser.cpp -SOURCES += $$PWD/Parser/IQParser.cpp -SOURCES += $$PWD/Parser/PresenceParser.cpp -SOURCES += $$PWD/Parser/StreamFeaturesParser.cpp -SOURCES += $$PWD/Parser/CompressParser.cpp -SOURCES += $$PWD/Parser/AuthRequestParser.cpp -SOURCES += $$PWD/Parser/StanzaParser.cpp -SOURCES += $$PWD/Parser/ElementParser.cpp -SOURCES += $$PWD/Parser/PayloadParser.cpp -SOURCES += $$PWD/Parser/PayloadParserFactory.cpp -SOURCES += $$PWD/Parser/PayloadParserFactoryCollection.cpp -SOURCES += $$PWD/Parser/SerializingParser.cpp -!isEmpty(HAVE_LIBXML) { -SOURCES += $$PWD/Parser/LibXMLParser.cpp -} -!isEmpty(HAVE_EXPAT) { -SOURCES += $$PWD/Parser/ExpatParser.cpp -} -## Begin File: Parser/PayloadParsers/Makefile.inc -SOURCES += $$PWD/Parser/PayloadParsers/BodyParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/PriorityParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/StatusParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/StatusShowParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/SoftwareVersionParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/SecurityLabelParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/SecurityLabelsCatalogParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/DiscoInfoParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/ErrorParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/RosterParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/ResourceBindParser.cpp -SOURCES += $$PWD/Parser/PayloadParsers/FullPayloadParserFactoryCollection.cpp -## Begin File: Parser/PayloadParsers/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Parser/UnitTest/Makefile.inc -## End file -## End file -## Begin File: MUC/Makefile.inc -SOURCES += $$PWD/MUC/MUC.cpp -SOURCES += $$PWD/MUC/MUCOccupant.cpp -## End file -## Begin File: Network/Makefile.inc -SOURCES += $$PWD/Network/HostAddress.cpp -SOURCES += $$PWD/Network/DomainNameResolver.cpp -SOURCES += $$PWD/Network/ConnectionFactory.cpp -SOURCES += $$PWD/Network/BoostConnection.cpp -SOURCES += $$PWD/Network/BoostConnectionFactory.cpp -SOURCES += $$PWD/Network/Timer.cpp -## Begin File: Network/UnitTest/Makefile.inc -## End file -!win32 { -LIBS += -lresolv -} -## End file -## Begin File: Client/Makefile.inc -SOURCES += $$PWD/Client/Client.cpp -SOURCES += $$PWD/Client/Session.cpp -## Begin File: Client/UnitTest/Makefile.inc -## End file -## End file -## Begin File: TLS/Makefile.inc -!isEmpty(HAVE_OPENSSL) { -## Begin File: TLS/OpenSSL/Makefile.inc -SOURCES += $$PWD/TLS/OpenSSL/OpenSSLContext.cpp -## End file -} -## End file -## Begin File: SASL/Makefile.inc -SOURCES += $$PWD/SASL/PLAINMessage.cpp -## Begin File: SASL/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Compress/Makefile.inc -SOURCES += $$PWD/Compress/ZLibCodecompressor.cpp -## Begin File: Compress/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Queries/Makefile.inc -SOURCES += $$PWD/Queries/IQRouter.cpp -SOURCES += $$PWD/Queries/IQHandler.cpp -SOURCES += $$PWD/Queries/IQChannel.cpp -SOURCES += $$PWD/Queries/Request.cpp -## Begin File: Queries/Responders/Makefile.inc -SOURCES += $$PWD/Queries/Responders/SoftwareVersionResponder.cpp -SOURCES += $$PWD/Queries/Responders/DiscoInfoResponder.cpp -## Begin File: Queries/Responders/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Queries/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Controllers/Makefile.inc -SOURCES += $$PWD/Controllers/ChatController.cpp -SOURCES += $$PWD/Controllers/ChatControllerBase.cpp -SOURCES += $$PWD/Controllers/MainController.cpp -SOURCES += $$PWD/Controllers/NickResolver.cpp -SOURCES += $$PWD/Controllers/RosterController.cpp -SOURCES += $$PWD/Controllers/XMPPRosterController.cpp -SOURCES += $$PWD/Controllers/MUCController.cpp -SOURCES += $$PWD/Controllers/EventController.cpp -## Begin File: Controllers/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Roster/Makefile.inc -SOURCES += $$PWD/Roster/ContactRosterItem.cpp -SOURCES += $$PWD/Roster/Roster.cpp -SOURCES += $$PWD/Roster/XMPPRoster.cpp -## Begin File: Roster/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Disco/Makefile.inc -SOURCES += $$PWD/Disco/CapsInfoGenerator.cpp -## Begin File: Disco/UnitTest/Makefile.inc -## End file -## End file -## Begin File: Examples/Makefile.inc -## Begin File: Examples/TuneBot/Makefile.inc -## End file -## End file -## Begin File: QA/Makefile.inc -DUMMY { -} -## Begin File: QA/UnitTest/Makefile.inc -## End file -## Begin File: QA/NetworkTest/Makefile.inc -## End file -## Begin File: QA/ClientTest/Makefile.inc -## End file -## End file -DUMMY { -DUMMY { -} -} -## End file diff --git a/UI/Qt/Swift.pro b/UI/Qt/Swift.pro index 1aec626..83bbb45 100644 --- a/UI/Qt/Swift.pro +++ b/UI/Qt/Swift.pro @@ -23,7 +23,7 @@ win32 { LIBS += "F:/Expat 2.0.1/Bin/libexpat.lib" LIBS += -LF:/OpenSSL/lib/VC -llibeay32MT -lssleay32MT - include(../../Swiften/Swift.pri) + include(Swiften.pri) LIBS += -ldnsapi -lws2_32 -lwsock32 } else { DEPENDPATH += . ../.. ../../3rdParty/Boost diff --git a/UI/Qt/qmakeish.py b/UI/Qt/qmakeish.py new file mode 100755 index 0000000..1625bd0 --- /dev/null +++ b/UI/Qt/qmakeish.py @@ -0,0 +1,107 @@ +#!/usr/bin/env python +# Run this from the UI/Qt dir with: +# ./qmakeish.py ../../Makefile > Swiften.pri + +import sys, re, os.path + +def processSourcesLine(line) : + strippedLine = line.rstrip("\n") + sourceFile = re.sub("\\\\$", "", strippedLine).strip() + if len(sourceFile) > 0 : + print "SOURCES += $$PWD/../../" + sourceFile + return strippedLine.endswith("\\") + +def processFlags(name, flags) : + flags = flags.replace("-isystem ", "-I") + for flag in flags.split(" ") : + if flag.startswith("-D") : + print "DEFINES += " + flag[2:] + elif flag.startswith("-I") : + print "INCLUDEPATH += $$PWD/../../" + flag[2:] + elif len(flag) > 0 : + print name + " += " + flag + + +assert(len(sys.argv) == 2) + +basedir = os.path.dirname(sys.argv[1]) + +# Flatten the makefile +makefile = [] +files = [open(sys.argv[1])] +while len(files) > 0 : + file = files[-1] + line = file.readline() + if line : + match = re.match("include (.*)", line) + if match and match.group(1) != "Makefile.config" : + files.append(open(os.path.join(basedir, match.group(1)))) + makefile.append("## Begin File: " + match.group(1)) + else : + makefile.append(line) + else : + makefile.append("## End file") + file.close() + files.pop() + +# Process makefile +inSources = False +for line in makefile : + if inSources : + inSources = processSourcesLine(line) + else : + # Conditional + match = re.match("if(n?)eq \(\$\((.*)\),(.*)\)", line) + if match : + conditional = match.group(2) + if conditional == "WIN32" : + conditional = "win32" + elif conditional == "MACOSX" : + conditional = "mac" + elif match.group(2).startswith("HAVE_") : + conditional = "!isEmpty(" + match.group(2) + ")" + else : + conditional = "DUMMY" + if (match.group(1) == "n") ^ (match.group(3) not in ["1", "yes"]) : + conditional = "!" + conditional + print conditional + " {" + continue + if re.match("^if(n?)def", line) : + print "DUMMY {" + continue + elif re.match("^if(n?)eq", line) : + print "DUMMY {" + continue + if re.match("^else$", line) : + print "} else {" + continue + if re.match("^endif$", line) : + print "}" + continue + + match = re.match("(\w+)_SOURCES (\+?)= (.*)", line) + if match and match.group(1) in ["SWIFT", "ZLIB", "LIBIDN", "BOOST"] : + inSources = processSourcesLine(match.group(3)) + continue + + match = re.match("(LIBS|CXXFLAGS|CPPFLAGS|CFLAGS) \+= (.*)", line) + if match : + processFlags(match.group(1), match.group(2)) + + if line.startswith("## ") : + print line + +""" +#print sourceFiles +sys.exit(0) + +print files +pro = open ('swiftall.pri', 'w') +for sourceType in files.keys(): + pro.write("%s += \\\n" % sourceType) + for sourceFile in files[sourceType]: + pro.write("$$PWD/Swift/%s \\\n" % sourceFile) + pro.write("\n") +pro.close() + +""" diff --git a/tools/qmakeish.py b/tools/qmakeish.py deleted file mode 100755 index 34a3b79..0000000 --- a/tools/qmakeish.py +++ /dev/null @@ -1,107 +0,0 @@ -#!/usr/bin/env python -# Run this from the toplevel with: -# tools/qmakeish.py src/Swift/Makefile > src/Swift/Swift.pri - -import sys, re, os.path - -def processSourcesLine(line) : - strippedLine = line.rstrip("\n") - sourceFile = re.sub("\\\\$", "", strippedLine).strip() - if len(sourceFile) > 0 : - print "SOURCES += $$PWD/" + sourceFile - return strippedLine.endswith("\\") - -def processFlags(name, flags) : - flags = flags.replace("-isystem ", "-I") - for flag in flags.split(" ") : - if flag.startswith("-D") : - print "DEFINES += " + flag[2:] - elif flag.startswith("-I") : - print "INCLUDEPATH += $$PWD/" + flag[2:] - elif len(flag) > 0 : - print name + " += " + flag - - -assert(len(sys.argv) == 2) - -basedir = os.path.dirname(sys.argv[1]) - -# Flatten the makefile -makefile = [] -files = [open(sys.argv[1])] -while len(files) > 0 : - file = files[-1] - line = file.readline() - if line : - match = re.match("include (.*)", line) - if match and match.group(1) != "Makefile.config" : - files.append(open(os.path.join(basedir, match.group(1)))) - makefile.append("## Begin File: " + match.group(1)) - else : - makefile.append(line) - else : - makefile.append("## End file") - file.close() - files.pop() - -# Process makefile -inSources = False -for line in makefile : - if inSources : - inSources = processSourcesLine(line) - else : - # Conditional - match = re.match("if(n?)eq \(\$\((.*)\),(.*)\)", line) - if match : - conditional = match.group(2) - if conditional == "WIN32" : - conditional = "win32" - elif conditional == "MACOSX" : - conditional = "mac" - elif match.group(2).startswith("HAVE_") : - conditional = "!isEmpty(" + match.group(2) + ")" - else : - conditional = "DUMMY" - if (match.group(1) == "n") ^ (match.group(3) not in ["1", "yes"]) : - conditional = "!" + conditional - print conditional + " {" - continue - if re.match("^if(n?)def", line) : - print "DUMMY {" - continue - elif re.match("^if(n?)eq", line) : - print "DUMMY {" - continue - if re.match("^else$", line) : - print "} else {" - continue - if re.match("^endif$", line) : - print "}" - continue - - match = re.match("(\w+)_SOURCES (\+?)= (.*)", line) - if match and match.group(1) in ["SWIFT", "ZLIB", "LIBIDN", "BOOST"] : - inSources = processSourcesLine(match.group(3)) - continue - - match = re.match("(LIBS|CXXFLAGS|CPPFLAGS|CFLAGS) \+= (.*)", line) - if match : - processFlags(match.group(1), match.group(2)) - - if line.startswith("## ") : - print line - -""" -#print sourceFiles -sys.exit(0) - -print files -pro = open ('swiftall.pri', 'w') -for sourceType in files.keys(): - pro.write("%s += \\\n" % sourceType) - for sourceFile in files[sourceType]: - pro.write("$$PWD/Swift/%s \\\n" % sourceFile) - pro.write("\n") -pro.close() - -""" -- cgit v0.10.2-6-g49f6