##// END OF EJS Templates
Cleaned build scripts.
Jeandet Alexis -
r8:7250c4578e1b default
parent child
Show More
@@ -1,3 +1,4
1 syntax: glob
1 syntax: glob
2 *.o
2 *.o
3 moc_*
3 moc_*
4 *.pro.user
@@ -3,8 +3,8 TEMPLATE = subdirs
3 CONFIG += ordered
3 CONFIG += ordered
4 SUBDIRS = src extensions #tests examples
4 SUBDIRS = src extensions #tests examples
5
5
6 #contains(QT_MAJOR_VERSION, 5) {
6 contains(QT_MAJOR_VERSION, 5) {
7 #SUBDIRS += generator_50
7 SUBDIRS += generator_50
8 #} else {
8 } else {
9 #SUBDIRS += generator
9 SUBDIRS += generator
10 #}
10 }
@@ -1,13 +1,27
1 # profile for non-mevis users to link to PythonQt
1 # profile for non-mevis users to link to PythonQt
2
2
3 # profile to include and link Python
3 # check if debug or release
4 CONFIG(debug, debug|release) {
5 DEBUG_EXT = _d
6 } else {
7 DEBUG_EXT =
8 }
9
10 #=========================================================================#
11 # ____ _ _ __ _ #
12 # | _ \ _ _| |_| |__ ___ _ __ ___ ___ _ __ / _(_) __ _ #
13 # | |_) | | | | __| '_ \ / _ \| '_ \ / __/ _ \| '_ \| |_| |/ _` | #
14 # | __/| |_| | |_| | | | (_) | | | | | (_| (_) | | | | _| | (_| | #
15 # |_| \__, |\__|_| |_|\___/|_| |_| \___\___/|_| |_|_| |_|\__, | #
16 # |___/ |___/ #
17 #=========================================================================#
18 #
4
19
5 # Change this variable to your python version (2.5, 2.6)
20 # Change this variable to your python version (2.5, 2.6)
6 win32:PYTHON_VERSION=27
21 win32:PYTHON_VERSION=27
7 unix:PYTHON_VERSION=2.7
22 unix:PYTHON_VERSION=2.7
8 PYTHON_PATH=C:/Python27/
23 PYTHON_PATH=C:/Python27/
9 PYTHON_LIB=C:/Python27/libs/
24 PYTHON_LIB=C:/Python27/libs/
10 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
11 macx {
25 macx {
12 # for macx you need to have the Python development kit installed as framework
26 # for macx you need to have the Python development kit installed as framework
13 INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
27 INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
@@ -27,12 +41,6 macx {
27 # set PYTHON_PATH = c:\yourDir\Python-2.6.1\
41 # set PYTHON_PATH = c:\yourDir\Python-2.6.1\
28 # set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32
42 # set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32
29
43
30 # check if debug or release
31 CONFIG(debug, debug|release) {
32 DEBUG_EXT = _d
33 } else {
34 DEBUG_EXT =
35 }
36
44
37 win32:INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
45 win32:INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
38 win32-msvc*:LIBS += $$PYTHON_LIB/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib
46 win32-msvc*:LIBS += $$PYTHON_LIB/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib
@@ -41,37 +49,50 macx {
41 } else:unix {
49 } else:unix {
42 # on linux, python-config is used to autodetect Python.
50 # on linux, python-config is used to autodetect Python.
43 # make sure that you have installed a matching python-dev package.
51 # make sure that you have installed a matching python-dev package.
44
52
45 unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
53 unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
46 unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
54 unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
47 }
55 }
48
56
49 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
57 #===========================================================#
50
58 # ______ _______ _ _ ___ _ _ ___ _____ #
51 # check if debug or release
59 # | _ \ \ / /_ _| | | |/ _ \| \ | | / _ \_ _| #
52 CONFIG(debug, debug|release) {
60 # | |_) \ V / | | | |_| | | | | \| | | | | || | #
53 DEBUG_EXT = _d
61 # | __/ | | | | | _ | |_| | |\ | | |_| || | #
54 } else {
62 # |_| |_| |_| |_| |_|\___/|_| \_| \__\_\|_| #
55 DEBUG_EXT =
63 # #
64 #===========================================================#
65
66 contains(CONFIG,BUILDING_PYTHONQT){
67 message("BUILDING PYTHONQT")
68 }
69 !contains(CONFIG,BUILDING_PYTHONQT){
70 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
71 win32::LIBS += -lPythonQt$${DEBUG_EXT}
72 unix::LIBS += -lPythonQt$${DEBUG_EXT}
56 }
73 }
57
74
58 #win32-msvc*:LIBS += $$PWD/../lib/PythonQt$${DEBUG_EXT}.lib
75 #===============================================================================#
59 #win32-g++:LIBS += $$PWD/../lib/libPythonQt$${DEBUG_EXT}.a
76 # ______ _______ _ _ ___ _ _ ___ _____ _ _ _ #
60 #unix:LIBS += -L$$OUT_PWD/../lib -L$$OUT_PWD/../../lib -lPythonQt$${DEBUG_EXT}
77 # | _ \ \ / /_ _| | | |/ _ \| \ | | / _ \_ _| / \ | | | | #
61
78 # | |_) \ V / | | | |_| | | | | \| | | | | || | / _ \ | | | | #
62 ########################################################################################
79 # | __/ | | | | | _ | |_| | |\ | | |_| || | / ___ \| |___| |___ #
63 #################### PYTHON_QT_ALL ###################################################
80 # |_| |_| |_| |_| |_|\___/|_| \_| \__\_\|_| /_/ \_\_____|_____| #
64 ########################################################################################
81 # #
82 #===============================================================================#
83
65 contains(CONFIG,BUILDING_QTALL){
84 contains(CONFIG,BUILDING_QTALL){
66 message("BUILDING_QTALL")
85 message("BUILDING_QTALL")
67 LIBS += -L$$DESTDIR -lPythonQt$${DEBUG_EXT}
86 win32::LIBS += -L$${DESTDIR}
68 } else {
87 unix::LIBS += -L$${DESTDIR}
69 win32::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
88 }
70 unix::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
89 !contains(CONFIG,BUILDING_QTALL){
71 ########################################################################################
90 !contains(CONFIG,BUILDING_PYTHONQT){
72 #################### PYTHON_QT ######################################################
91 win32::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
73 ########################################################################################
92 unix::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
74 win32::LIBS += -lPythonQt$${DEBUG_EXT}
93 }
75 unix::LIBS += -lPythonQt$${DEBUG_EXT}
94
76 }
95 }
77
96
97
98
@@ -4,7 +4,6 TEMPLATE = lib
4
4
5 DESTDIR = ../../lib
5 DESTDIR = ../../lib
6
6
7 include ( ../../build/common.prf )
8 CONFIG+=BUILDING_QTALL
7 CONFIG+=BUILDING_QTALL
9 include ( ../../build/pythonqt.prf )
8 include ( ../../build/pythonqt.prf )
10
9
@@ -30,15 +30,12 mac {
30 OTHER_FILES += ../scripts/osx-fix-dylib.sh
30 OTHER_FILES += ../scripts/osx-fix-dylib.sh
31 }
31 }
32
32
33 include ( ../build/common.prf )
33 CONFIG += BUILDING_PYTHONQT
34 include ( ../build/python.prf )
34 include ( ../build/pythonqt.prf )
35
35
36 include ( src.pri )
36 include ( src.pri )
37
37
38 #added by Aje for install QT dirs.
38 #Install PythonQt as Qt feature
39 #Copyed from Qscintilla config ;).
40
41
42 pythoncfg.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
39 pythoncfg.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
43 pythoncfg.files = ../build/pythonqt.prf
40 pythoncfg.files = ../build/pythonqt.prf
44
41
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now