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