2013-09-01 18:36:43 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Project created by QtCreator 2013-09-01T15:55:01
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
|
|
TARGET = pythonRunner
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
|
|
|
|
|
CONFIG += dll
|
|
|
|
|
CONFIG += warn_on
|
|
|
|
|
|
|
|
|
|
DEFINES += PYTHONRUNNER_LIBRARY
|
|
|
|
|
|
2013-11-18 20:17:14 +01:00
|
|
|
# suppress a few warnings caused by boost vs vc++ paranoia
|
2014-09-08 20:37:23 +02:00
|
|
|
DEFINES += _SCL_SECURE_NO_WARNINGS -DHAVE_ROUND
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!include(../LocalPaths.pri) {
|
|
|
|
|
message("paths to required libraries need to be set up in LocalPaths.pri")
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-18 20:17:14 +01:00
|
|
|
|
2013-09-01 18:36:43 +02:00
|
|
|
SOURCES += pythonrunner.cpp \
|
|
|
|
|
gilock.cpp \
|
|
|
|
|
error.cpp \
|
|
|
|
|
pythonpluginwrapper.cpp \
|
|
|
|
|
proxypluginwrappers.cpp
|
|
|
|
|
|
|
|
|
|
HEADERS += pythonrunner.h \
|
|
|
|
|
gilock.h \
|
|
|
|
|
error.h \
|
|
|
|
|
uibasewrappers.h \
|
|
|
|
|
pythonpluginwrapper.h \
|
|
|
|
|
proxypluginwrappers.h
|
|
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
LIBS += -L$$OUT_PWD/../uibase/debug
|
|
|
|
|
} else {
|
|
|
|
|
LIBS += -L$$OUT_PWD/../uibase/release
|
2014-07-08 00:28:06 +01:00
|
|
|
QMAKE_CXXFLAGS += /Zi
|
|
|
|
|
QMAKE_LFLAGS += /DEBUG
|
2013-09-01 18:36:43 +02:00
|
|
|
}
|
|
|
|
|
|
2014-09-08 20:37:23 +02:00
|
|
|
INCLUDEPATH += "$${BOOSTPATH}" "$${PYTHONPATH}/include" "$${PYTHONPATH}/Lib/site-packages/PyQt4/include"
|
|
|
|
|
LIBS += -L"$${PYTHONPATH}/libs" -L"$${BOOSTPATH}/stage/lib"
|
2013-09-01 18:36:43 +02:00
|
|
|
LIBS += -lpython27
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += ../uibase
|
|
|
|
|
LIBS += -luibase
|
2014-01-27 21:31:10 +01:00
|
|
|
|
2014-07-08 00:28:06 +01:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
SRCDIR = $$OUT_PWD/debug
|
|
|
|
|
DSTDIR = $$PWD/../../outputd
|
|
|
|
|
} else {
|
|
|
|
|
SRCDIR = $$OUT_PWD/release
|
|
|
|
|
DSTDIR = $$PWD/../../output
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SRCDIR ~= s,/,$$QMAKE_DIR_SEP,g
|
|
|
|
|
DSTDIR ~= s,/,$$QMAKE_DIR_SEP,g
|
|
|
|
|
|
2014-01-27 21:31:10 +01:00
|
|
|
QMAKE_POST_LINK += xcopy /y /I $$quote($$SRCDIR\\$${TARGET}*.pdb) $$quote($$DSTDIR)\\plugins $$escape_expand(\\n)
|