TARGET = pykit
DEPENDPATH += .
INCLUDEPATH += .
-QT += network gui core
+QT += network gui core svg
# Used to manually link against latest webkit
!no_webkit {
QMAKE_CXXFLAGS += $$system($$PYTHONCONFIG --cflags)
QMAKE_CXXFLAGS -= -Wstrict-prototypes
LIBS += $$system($$PYTHONCONFIG --ldflags)
+ # OUCH ... on Mac we sometimes have multiple python versions (in this case MacPorts and native)
+ # We need to explicitly specify the path as to link against the correct Version
+ LIBS -= $$system($$PYTHONCONFIG --libs | sed -e "'s/.*\\\\(-lpython[0-9.]*\\\\\).*/\\\\1/'")
+ LIBS += $$system(ls `$$PYTHONCONFIG --ldflags | sed -e "'s/.*-L\\\\([^ ]*\\\\).*/\\\\1/'"`/lib`$$PYTHONCONFIG --libs | sed -e "'s/.*-l\\\\(python[0-9.]*\\\\).*/\\\\1/'"`* | head -1)
}
else {
LIBS += -l$$LIBPYTHON