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