summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-07-04 10:58:46 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-07-04 10:58:46 (GMT)
commit640b4c48d828c9f7b839e0cd6003cc7ccdea9575 (patch)
tree79993bd1d9e94b6d588786fa8744d759a00b9a8e
parent1231acac77f2811a94f9bc83e38abb8ed85468b3 (diff)
downloadswift-640b4c48d828c9f7b839e0cd6003cc7ccdea9575.zip
swift-640b4c48d828c9f7b839e0cd6003cc7ccdea9575.tar.bz2
Support qmakeish compilation on Windows again.
I've added a fixwindows.pri that's got temporary qmakeish fixes that we need to address.
-rw-r--r--3rdParty/Boost/boost/system/error_code.hpp2
-rw-r--r--Swift/QtUI/Swift.pro5
-rw-r--r--Swift/QtUI/fixwindows.pri2
-rwxr-xr-xSwift/QtUI/qmakeish.py4
4 files changed, 9 insertions, 4 deletions
diff --git a/3rdParty/Boost/boost/system/error_code.hpp b/3rdParty/Boost/boost/system/error_code.hpp
index 8f795d7..03ac91e 100644
--- a/3rdParty/Boost/boost/system/error_code.hpp
+++ b/3rdParty/Boost/boost/system/error_code.hpp
@@ -493,7 +493,7 @@ namespace boost
#include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
# ifdef BOOST_ERROR_CODE_HEADER_ONLY
-# include <boost/../libs/system/src/error_code.cpp>
+//# include <boost/../libs/system/src/error_code.cpp>
# endif
#endif // BOOST_ERROR_CODE_HPP
diff --git a/Swift/QtUI/Swift.pro b/Swift/QtUI/Swift.pro
index 5b9ea72..23042bb 100644
--- a/Swift/QtUI/Swift.pro
+++ b/Swift/QtUI/Swift.pro
@@ -22,10 +22,11 @@ else {
HAVE_OPENSSL=yes
DEFINES += HAVE_OPENSSL
- INCLUDEPATH += F:/OpenSSL/include
- LIBS += -LF:/OpenSSL/lib/VC -llibeay32MT -lssleay32MT
+ INCLUDEPATH += C:/OpenSSL/include
+ LIBS += -LC:/OpenSSL/lib/VC -llibeay32MT -lssleay32MT
include(Swiften.pri)
+ include(fixwindows.pri)
}
win32 {
diff --git a/Swift/QtUI/fixwindows.pri b/Swift/QtUI/fixwindows.pri
new file mode 100644
index 0000000..4d924ed
--- /dev/null
+++ b/Swift/QtUI/fixwindows.pri
@@ -0,0 +1,2 @@
+INCLUDEPATH += ../../3rdParty/SQLite/
+LIBS += Dnsapi.lib
diff --git a/Swift/QtUI/qmakeish.py b/Swift/QtUI/qmakeish.py
index 178696d..c5b302d 100755
--- a/Swift/QtUI/qmakeish.py
+++ b/Swift/QtUI/qmakeish.py
@@ -58,6 +58,8 @@ for line in makefile :
conditional = "win32"
elif conditional == "MACOSX" :
conditional = "mac"
+ elif conditional == "BUILD_SWIFT" :
+ conditional = "true"
elif match.group(2).startswith("HAVE_") or match.group(2).startswith("USE_") :
conditional = "!isEmpty(" + match.group(2) + ")"
else :
@@ -80,7 +82,7 @@ for line in makefile :
continue
match = re.match("(\w+)_SOURCES (\+?)= (.*)", line)
- if match and match.group(1) in ["SWIFTEN", "ZLIB", "LIBIDN", "BOOST", "EXPAT", "SWIFT_CONTROLLERS"] :
+ if match and match.group(1) in ["SWIFTEN", "ZLIB", "LIBIDN", "BOOST", "EXPAT", "SWIFT_CONTROLLERS", "SQLITE"] :
inSources = processSourcesLine(match.group(3))
continue