Remove invalid C++ warning option (added by python-config)
[pykit.git] / pykit.pro
index 63d9604..a7c2b21 100644 (file)
--- a/pykit.pro
+++ b/pykit.pro
@@ -1,3 +1,4 @@
+# CONFIG += no_poppler
 TEMPLATE = app
 TARGET = pykit
 DEPENDPATH += .
@@ -9,21 +10,31 @@ LIBS += -lboost_python
 
 # python
 QMAKE_CXXFLAGS += $$system(python-config --cflags)
+QMAKE_CXXFLAGS -= -Wstrict-prototypes
 QMAKE_CFFLAGS += $$system(python-config --cflags)
 LIBS += $$system(python-config --ldflags)
-
-# poppler
-LIBS += -lpoppler-qt4 -lpoppler
+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
+}
 
 # Input
 HEADERS += MainWindow.hh \
            Publisher.hh \
            PythonPublisher.hh \
-           Viewer.hh \
-           PDFWidget.hh
+           Viewer.hh
 SOURCES += main.cc \
            MainWindow.cc \
            Publisher.cc \
            PythonPublisher.cc \
-           Viewer.cc \
-           PDFWidget.cc
+           Viewer.cc
+
+# poppler
+!no_poppler {
+    LIBS += -lpoppler-qt4 -lpoppler
+    HEADERS += PDFWidget.hh
+    SOURCES += PDFWidget.cc
+    DEFINES += POPPLER
+}