##// END OF EJS Templates
updated infos to 2.6...
florianlink -
r137:0abb4b48992a
parent child
Show More
@@ -1,42 +1,42
1 1 # profile to include and link Python
2 2
3 # Change this variable to your python version (2.3, 2.4, 2.5)
4 win32:PYTHON_VERSION=25
5 unix:PYTHON_VERSION=2.5
3 # Change this variable to your python version (2.5, 2.6)
4 win32:PYTHON_VERSION=26
5 unix:PYTHON_VERSION=2.6
6 6
7 7 macx {
8 # for macx you need to have Python development kit installed as framework
8 # for macx you need to have the Python development kit installed as framework
9 9 INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
10 10 LIBS += -F/System/Library/Frameworks -framework Python
11 11 } else:win32 {
12 12 # for windows install a Python development kit or build Python yourself from the sources
13 13 # Make sure that you set the environment variable PYTHON_PATH to point to your
14 14 # python installation (or the python sources/header files when building from source).
15 15 # Make sure that you set the environment variable PYTHON_LIB to point to
16 16 # the directory where the python libs are located.
17 17 #
18 18 # When using the prebuild Python installer, this will be:
19 # set PYTHON_PATH = c:\Python25
20 # set PYTHON_LIB = c:\Python25\libs
19 # set PYTHON_PATH = c:\Python26
20 # set PYTHON_LIB = c:\Python26\libs
21 21 #
22 22 # When using the python sources, this will be something like:
23 # set PYTHON_PATH = c:\yourDir\Python-2.5.1\
24 # set PYTHON_LIB = c:\yourDir\Python-2.5.1\PCbuild8\Win32
23 # set PYTHON_PATH = c:\yourDir\Python-2.6.1\
24 # set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32
25 25
26 26 # check if debug or release
27 27 CONFIG(debug, debug|release) {
28 28 DEBUG_EXT = _d
29 29 } else {
30 30 DEBUG_EXT =
31 31 }
32 32
33 33 win32:INCLUDEPATH += $(PYTHON_PATH)/PC $(PYTHON_PATH)/include
34 34 win32:LIBS += $(PYTHON_LIB)/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib
35 35
36 36 } else:unix {
37 37 # on linux, python-config is used to autodetect Python.
38 38 # make sure that you have installed a matching python-dev package.
39 39
40 40 unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
41 41 unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
42 42 }
General Comments 0
You need to be logged in to leave comments. Login now