Add support for external webkit
[pykit.git] / pykit.pro
index d9ddbb4..9b8be25 100644 (file)
--- a/pykit.pro
+++ b/pykit.pro
@@ -1,9 +1,16 @@
 # CONFIG += no_poppler
+# CONFIG += no_webkit
+CONFIG += console
 TEMPLATE = app
 TARGET = pykit
 DEPENDPATH += .
 INCLUDEPATH += .
-QT += webkit network gui core
+QT += network gui core
+
+# Used to manually link against latest webkit
+!no_webkit {
+    QT += webkit
+}
 
 isEmpty(PYTHON) {
     PYTHON = python
@@ -30,12 +37,14 @@ else {
 }
 
 mac {
-    # Qt is not available as univeral library and provides
-    # a correct -arch tag automatically
     QMAKE_CXXFLAGS -= -arch ppc x86_64 i386
     QMAKE_CFLAGS -= -arch ppc x86_64 i386
 }
 
+win32 {
+    QMAKE_CXXFLAGS += -fno-strict-aliasing
+}
+
 # Input
 HEADERS += MainWindow.hh \
            Publisher.hh \