##// END OF EJS Templates
sync
sync

File last commit:

r1:3f89749b3e77 default
r1:3f89749b3e77 default
Show More
pythonqt.prf
77 lines | 2.9 KiB | application/pics-rules | TextLexer
# profile for non-mevis users to link to PythonQt
# profile to include and link Python
# Change this variable to your python version (2.5, 2.6)
win32:PYTHON_VERSION=27
unix:PYTHON_VERSION=2.7
PYTHON_PATH=C:/Python27/
PYTHON_LIB=C:/Python27/libs/
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
macx {
# for macx you need to have the Python development kit installed as framework
INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
LIBS += -F/System/Library/Frameworks -framework Python
} else:win32 {
# for windows install a Python development kit or build Python yourself from the sources
# Make sure that you set the environment variable PYTHON_PATH to point to your
# python installation (or the python sources/header files when building from source).
# Make sure that you set the environment variable PYTHON_LIB to point to
# the directory where the python libs are located.
#
# When using the prebuild Python installer, this will be:
# set PYTHON_PATH = c:\Python26
# set PYTHON_LIB = c:\Python26\libs
#
# When using the python sources, this will be something like:
# set PYTHON_PATH = c:\yourDir\Python-2.6.1\
# set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32
# check if debug or release
CONFIG(debug, debug|release) {
DEBUG_EXT = _d
} else {
DEBUG_EXT =
}
win32:INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
win32-msvc*:LIBS += $$PYTHON_LIB/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib
win32-g++:LIBS += $$PYTHON_PATH/libs/libpython$${PYTHON_VERSION}.a
} else:unix {
# on linux, python-config is used to autodetect Python.
# make sure that you have installed a matching python-dev package.
unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
}
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
# check if debug or release
CONFIG(debug, debug|release) {
DEBUG_EXT = _d
} else {
DEBUG_EXT =
}
#win32-msvc*:LIBS += $$PWD/../lib/PythonQt$${DEBUG_EXT}.lib
#win32-g++:LIBS += $$PWD/../lib/libPythonQt$${DEBUG_EXT}.a
#unix:LIBS += -L$$OUT_PWD/../lib -L$$OUT_PWD/../../lib -lPythonQt$${DEBUG_EXT}
########################################################################################
#################### PYTHON_QT_ALL ###################################################
########################################################################################
contains(CONFIG,BUILDING_QTALL){
message("BUILDING_QTALL")
}
!contains(CONFIG,BUILDING_QTALL){
win32::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
unix::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
}
########################################################################################
#################### PYTHON_QT ######################################################
########################################################################################
win32::LIBS += -lPythonQt$${DEBUG_EXT}
unix::LIBS += -lPythonQt$${DEBUG_EXT}