##// END OF EJS Templates
Updated build scripts, now everything builds.
Jeandet Alexis -
r9:2b3d939ebb38 default
parent child
Show More
@@ -1,10 +1,10
1 1 TEMPLATE = subdirs
2 2
3 3 CONFIG += ordered
4 SUBDIRS = src extensions #tests examples
4 SUBDIRS = src extensions tests examples
5 5
6 6 contains(QT_MAJOR_VERSION, 5) {
7 7 SUBDIRS += generator_50
8 8 } else {
9 9 SUBDIRS += generator
10 10 }
@@ -1,98 +1,106
1 1 # profile for non-mevis users to link to PythonQt
2 2
3 3 # check if debug or release
4 4 CONFIG(debug, debug|release) {
5 5 DEBUG_EXT = _d
6 6 } else {
7 7 DEBUG_EXT =
8 8 }
9 9
10 10 #=========================================================================#
11 11 # ____ _ _ __ _ #
12 12 # | _ \ _ _| |_| |__ ___ _ __ ___ ___ _ __ / _(_) __ _ #
13 13 # | |_) | | | | __| '_ \ / _ \| '_ \ / __/ _ \| '_ \| |_| |/ _` | #
14 14 # | __/| |_| | |_| | | | (_) | | | | | (_| (_) | | | | _| | (_| | #
15 15 # |_| \__, |\__|_| |_|\___/|_| |_| \___\___/|_| |_|_| |_|\__, | #
16 16 # |___/ |___/ #
17 17 #=========================================================================#
18 18 #
19 19
20 20 # Change this variable to your python version (2.5, 2.6)
21 21 win32:PYTHON_VERSION=27
22 22 unix:PYTHON_VERSION=2.7
23 23 PYTHON_PATH=C:/Python27/
24 24 PYTHON_LIB=C:/Python27/libs/
25 25 macx {
26 26 # for macx you need to have the Python development kit installed as framework
27 27 INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
28 28 LIBS += -F/System/Library/Frameworks -framework Python
29 29 } else:win32 {
30 30 # for windows install a Python development kit or build Python yourself from the sources
31 31 # Make sure that you set the environment variable PYTHON_PATH to point to your
32 32 # python installation (or the python sources/header files when building from source).
33 33 # Make sure that you set the environment variable PYTHON_LIB to point to
34 34 # the directory where the python libs are located.
35 35 #
36 36 # When using the prebuild Python installer, this will be:
37 37 # set PYTHON_PATH = c:\Python26
38 38 # set PYTHON_LIB = c:\Python26\libs
39 39 #
40 40 # When using the python sources, this will be something like:
41 41 # set PYTHON_PATH = c:\yourDir\Python-2.6.1\
42 42 # set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32
43 43
44 44
45 45 win32:INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
46 46 win32-msvc*:LIBS += $$PYTHON_LIB/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib
47 47 win32-g++:LIBS += $$PYTHON_PATH/libs/libpython$${PYTHON_VERSION}.a
48 48
49 49 } else:unix {
50 50 # on linux, python-config is used to autodetect Python.
51 51 # make sure that you have installed a matching python-dev package.
52 52
53 53 unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
54 54 unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
55 55 }
56 56
57 57 #===========================================================#
58 58 # ______ _______ _ _ ___ _ _ ___ _____ #
59 59 # | _ \ \ / /_ _| | | |/ _ \| \ | | / _ \_ _| #
60 60 # | |_) \ V / | | | |_| | | | | \| | | | | || | #
61 61 # | __/ | | | | | _ | |_| | |\ | | |_| || | #
62 62 # |_| |_| |_| |_| |_|\___/|_| \_| \__\_\|_| #
63 63 # #
64 64 #===========================================================#
65 65
66 66 contains(CONFIG,BUILDING_PYTHONQT){
67 67 message("BUILDING PYTHONQT")
68 68 }
69 69 !contains(CONFIG,BUILDING_PYTHONQT){
70 70 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/PythonQt
71 71 win32::LIBS += -lPythonQt$${DEBUG_EXT}
72 72 unix::LIBS += -lPythonQt$${DEBUG_EXT}
73 73 }
74 74
75 75 #===============================================================================#
76 76 # ______ _______ _ _ ___ _ _ ___ _____ _ _ _ #
77 77 # | _ \ \ / /_ _| | | |/ _ \| \ | | / _ \_ _| / \ | | | | #
78 78 # | |_) \ V / | | | |_| | | | | \| | | | | || | / _ \ | | | | #
79 79 # | __/ | | | | | _ | |_| | |\ | | |_| || | / ___ \| |___| |___ #
80 80 # |_| |_| |_| |_| |_|\___/|_| \_| \__\_\|_| /_/ \_\_____|_____| #
81 81 # #
82 82 #===============================================================================#
83 83
84 84 contains(CONFIG,BUILDING_QTALL){
85 85 message("BUILDING_QTALL")
86 86 win32::LIBS += -L$${DESTDIR}
87 87 unix::LIBS += -L$${DESTDIR}
88 88 }
89 89 !contains(CONFIG,BUILDING_QTALL){
90 90 !contains(CONFIG,BUILDING_PYTHONQT){
91 91 win32::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
92 92 unix::LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
93 93 }
94 94
95 95 }
96 96
97 97
98 98
99 contains(CONFIG,BUILDING_EXAMPLES){
100 message("BUILDING_EXAMPLES")
101 LIBS += -L$${DESTDIR}
102 LIBS += -lPythonQt_QtAll$${DEBUG_EXT}
103 LIBS += -lPythonQt$${DEBUG_EXT}
104 INCLUDEPATH += $${PWD}/../src \
105 $${PWD}/../extensions/PythonQt_QtAll
106 }
@@ -1,21 +1,20
1 1
2 2 TARGET = CPPPyWrapperExample
3 3 TEMPLATE = app
4 4
5 5 mac:CONFIG -= app_bundle
6 6
7 7 DESTDIR = ../../lib
8 8
9 9 contains(QT_MAJOR_VERSION, 5) {
10 10 QT += widgets
11 11 }
12 12
13 13
14 include ( ../../build/common.prf )
15 CONFIG+=BUILDING_QTALL
14 CONFIG+=BUILDING_EXAMPLES
16 15 include ( ../../build/pythonqt.prf )
17 16
18 17 SOURCES += \
19 18 CPPPyWrapperExample.cpp
20 19
21 20 RESOURCES += CPPPyWrapperExample.qrc
@@ -1,36 +1,33
1 1 TARGET = NicePyConsole
2 2 TEMPLATE = app
3 3
4 4 DESTDIR = ../../lib
5 5
6 6 contains(QT_MAJOR_VERSION, 5) {
7 7 QT += widgets
8 8 }
9 9
10 10 mac:CONFIG-= app_bundle
11 11
12 include ( ../../build/common.prf )
13 CONFIG+=BUILDING_QTALL
12 CONFIG+=BUILDING_EXAMPLES
14 13 include ( ../../build/pythonqt.prf )
15 include ( ../../build/PythonQt_QtAll.prf )
16
17 14
18 15 HEADERS += \
19 16 SimpleConsole.h \
20 17 NicePyConsole.h \
21 18 PygmentsHighlighter.h \
22 19 PythonCompleter.h \
23 20 PythonCompleterPopup.h
24 21
25 22 SOURCES += \
26 23 SimpleConsole.cpp \
27 24 NicePyConsole.cpp \
28 25 main.cpp \
29 26 PygmentsHighlighter.cpp \
30 27 PythonCompleter.cpp \
31 28 PythonCompleterPopup.cpp
32 29
33 30 OTHER_FILES += \
34 31 PygmentsHighlighter.py \
35 32 PythonCompleter.py \
36 33 module_completion.py
@@ -1,27 +1,26
1 1 # --------- PyCPPWrapperExample profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyCPPWrapperExample
8 8 TEMPLATE = app
9 9
10 10 DESTDIR = ../../lib
11 11
12 12 contains(QT_MAJOR_VERSION, 5) {
13 13 QT += widgets
14 14 }
15 15
16 include ( ../../build/common.prf )
17 CONFIG+=BUILDING_QTALL
16 CONFIG+=BUILDING_EXAMPLES
18 17 include ( ../../build/pythonqt.prf )
19 18
20 19 HEADERS += \
21 20 CustomObjects.h
22 21
23 22 SOURCES += \
24 23 main.cpp \
25 24 CustomObjects.cpp
26 25
27 26 RESOURCES += PyCPPWrapperExample.qrc
@@ -1,27 +1,27
1 1 # --------- PyCustomMetaTypeExample profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyCustomMetaTypeExample
8 8 TEMPLATE = app
9 9
10 10 DESTDIR = ../../lib
11 11
12 12 contains(QT_MAJOR_VERSION, 5) {
13 13 QT += widgets
14 14 }
15 15
16 include ( ../../build/common.prf )
17 include ( ../../build/PythonQt.prf )
16 CONFIG+=BUILDING_EXAMPLES
17 include ( ../../build/pythonqt.prf )
18 18
19 19
20 20 HEADERS += \
21 21 CustomObject.h
22 22
23 23 SOURCES += \
24 24 main.cpp \
25 25 CustomObject.cpp
26 26
27 27 RESOURCES += PyCustomMetaTypeExample.qrc
@@ -1,27 +1,27
1 1 # --------- PyGuiExample profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyDecoratorsExample
8 8 TEMPLATE = app
9 9
10 10 DESTDIR = ../../lib
11 11
12 include ( ../../build/common.prf )
13 CONFIG+=BUILDING_QTALL
12 CONFIG+=BUILDING_EXAMPLES
14 13 include ( ../../build/pythonqt.prf )
15 14
15
16 16 contains(QT_MAJOR_VERSION, 5) {
17 17 QT += widgets
18 18 }
19 19
20 20 HEADERS += \
21 21 PyExampleDecorators.h
22 22
23 23 SOURCES += \
24 24 main.cpp \
25 25 PyExampleDecorators.cpp
26 26
27 27 RESOURCES += PyDecoratorsExample.qrc
@@ -1,25 +1,26
1 1 # --------- PyScriptingConsole profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyGettingStarted
8 8 TEMPLATE = app
9 9
10 10 DESTDIR = ../../lib
11 11
12 12 CONFIG += console
13 13
14 14 contains(QT_MAJOR_VERSION, 5) {
15 15 QT += widgets
16 16 }
17 17
18 include ( ../../build/common.prf )
19 CONFIG+=BUILDING_QTALL
18 CONFIG+=BUILDING_EXAMPLES
20 19 include ( ../../build/pythonqt.prf )
21 20
21
22
22 23 SOURCES += \
23 24 main.cpp
24 25
25 26 RESOURCES += PyGettingStarted.qrc
@@ -1,27 +1,26
1 1 # --------- PyGuiExample profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyGuiExample
8 8 TEMPLATE = app
9 9
10 10 mac:CONFIG -= app_bundle
11 11
12 12 DESTDIR = ../../lib
13 13
14 14 contains(QT_MAJOR_VERSION, 5) {
15 15 QT += widgets
16 16 }
17 17
18 18
19 include ( ../../build/common.prf )
20 CONFIG+=BUILDING_QTALL
19 CONFIG+=BUILDING_EXAMPLES
21 20 include ( ../../build/pythonqt.prf )
22 include ( ../../build/PythonQt_QtAll.prf )
21
23 22
24 23 SOURCES += \
25 24 main.cpp
26 25
27 26 RESOURCES += PyGuiExample.qrc
@@ -1,24 +1,23
1 1 # --------- PyLauncher profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyLauncher
8 8 TEMPLATE = app
9 9
10 10 mac:CONFIG -= app_bundle
11 11
12 12 DESTDIR = ../../lib
13 13
14 14 contains(QT_MAJOR_VERSION, 5) {
15 15 QT += widgets
16 16 }
17 17
18 include ( ../../build/common.prf )
19 CONFIG+=BUILDING_QTALL
18 CONFIG+=BUILDING_EXAMPLES
20 19 include ( ../../build/pythonqt.prf )
21 include ( ../../build/PythonQt_QtAll.prf )
20
22 21
23 22 SOURCES += \
24 23 main.cpp
@@ -1,30 +1,29
1 1 # --------- PyScriptingConsole profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6
7 7 TARGET = PyScriptingConsole
8 8 TEMPLATE = app
9 9
10 10 DESTDIR = ../../lib
11 11
12 12 contains(QT_MAJOR_VERSION, 5) {
13 13 QT += widgets
14 14 }
15 15
16 16 mac:CONFIG-= app_bundle
17 17
18 include ( ../../build/common.prf )
19 CONFIG+=BUILDING_QTALL
18 CONFIG+=BUILDING_EXAMPLES
20 19 include ( ../../build/pythonqt.prf )
21 include ( ../../build/PythonQt_QtAll.prf )
20
22 21
23 22 HEADERS += \
24 23 PyExampleObject.h
25 24
26 25 SOURCES += \
27 26 PyExampleObject.cpp \
28 27 main.cpp
29 28
30 29 RESOURCES += PyScriptingConsole.qrc
@@ -1,39 +1,39
1 1 # --------- PythonQtTest profile -------------------
2 2 # Last changed by $Author: florian $
3 3 # $Id: PythonQt.pro 35381 2006-03-16 13:05:52Z florian $
4 4 # $Source$
5 5 # --------------------------------------------------
6 6 TARGET = PythonQtTest
7 7 TEMPLATE = app
8 8 DESTDIR = ../lib
9 9
10 10 mac {
11 11 CONFIG -= app_bundle
12 12 }
13 13
14 14 QT += testlib
15 15
16 include ( ../build/common.prf )
17 16 CONFIG+=BUILDING_QTALL
18 17 include ( ../build/pythonqt.prf )
18 INCLUDEPATH += ../src
19 19
20 20 contains(QT_MAJOR_VERSION, 5) {
21 21 QT += widgets
22 22 }
23 23
24 24 HEADERS += \
25 25 PythonQtTests.h
26 26
27 27 SOURCES += \
28 28 PythonQtTestMain.cpp \
29 29 PythonQtTests.cpp
30 30
31 31 # run the tests after compiling
32 32 macx {
33 33 QMAKE_POST_LINK = cd $${DESTDIR} && ./$${TARGET}
34 34 } else:win32 {
35 35 QMAKE_POST_LINK = \"$${DESTDIR}/$${TARGET}.exe\"
36 36 } else:unix {
37 37 # linux
38 38 QMAKE_POST_LINK = cd $${DESTDIR} && LD_LIBRARY_PATH=$$(LD_LIBRARY_PATH):./ xvfb-run -a ./$${TARGET}
39 39 }
General Comments 0
You need to be logged in to leave comments. Login now