-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviridity.pri
273 lines (208 loc) · 9.72 KB
/
viridity.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# Enable if you want to debug Viridity...
#DEFINES += VIRIDITY_DEBUG
contains(QT_VERSION, ^4\\.[0-6]\\..*) {
message("Viridity: Cannot build using Qt version $${QT_VERSION}.")
error("Use at least Qt 4.7.")
}
QT += core network
contains(QT_VERSION, ^4\\..*) {
CONFIG += viridity_qt4
contains(QT, declarative): CONFIG += viridity_qtquick1 viridity_declarative
contains(QT, gui): CONFIG += viridity_widgets
message("Viridity: Configuring for Qt 4, actual version: $${QT_VERSION}")
}
contains(QT_VERSION, ^5\\..*) {
CONFIG += viridity_qt5
QT += concurrent
contains(QT, qml): CONFIG += viridity_declarative
contains(QT, quick): CONFIG += viridity_qtquick2 viridity_declarative
contains(QT, declarative): CONFIG += viridity_qtquick1 viridity_declarative
contains(QT, widgets): CONFIG += viridity_widgets
message("Viridity: Configuring for Qt 5, actual version: $${QT_VERSION}")
}
DEFINES += VIRIDITY_USE_MULTITHREADING VIRIDITY_TRIM_PROCESS_MEMORY_USAGE
VIRIDITY_SRC_PATH = $$PWD/src
VIRIDITY_RES_PATH = $$PWD/resources
VIRIDITY_INCLUDE_PATH = $$PWD/include
INCLUDEPATH += \
$$VIRIDITY_INCLUDE_PATH \
$$VIRIDITY_SRC_PATH
# Generic stuff
HEADERS += \
$$VIRIDITY_SRC_PATH/viridity_global.h \
$$VIRIDITY_SRC_PATH/viridityconnection.h \
$$VIRIDITY_SRC_PATH/viriditywebserver.h \
$$VIRIDITY_SRC_PATH/viriditysessionmanager.h \
$$VIRIDITY_SRC_PATH/viriditydatabridge.h \
$$VIRIDITY_SRC_PATH/viridityrequesthandler.h \
$$VIRIDITY_SRC_PATH/handlers/websockethandler.h \
$$VIRIDITY_SRC_PATH/handlers/longpollinghandler.h \
$$VIRIDITY_SRC_PATH/handlers/filerequesthandler.h \
$$VIRIDITY_SRC_PATH/handlers/posthandler.h \
$$VIRIDITY_SRC_PATH/handlers/inputposthandler.h \
$$VIRIDITY_SRC_PATH/handlers/ssehandler.h \
$$VIRIDITY_SRC_PATH/handlers/fileuploadhandler.h \
$$VIRIDITY_SRC_PATH/handlers/sessionroutingrequesthandler.h \
$$VIRIDITY_SRC_PATH/handlers/debugrequesthandler.h \
$$VIRIDITY_SRC_PATH/handlers/rewriterequesthandler.h
SOURCES += \
$$VIRIDITY_SRC_PATH/viriditywebserver.cpp \
$$VIRIDITY_SRC_PATH/viridityconnection.cpp \
$$VIRIDITY_SRC_PATH/viriditysessionmanager.cpp \
$$VIRIDITY_SRC_PATH/viriditydatabridge.cpp \
$$VIRIDITY_SRC_PATH/viridityrequesthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/websockethandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/longpollinghandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/filerequesthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/posthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/inputposthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/ssehandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/fileuploadhandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/sessionroutingrequesthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/debugrequesthandler.cpp \
$$VIRIDITY_SRC_PATH/handlers/rewriterequesthandler.cpp
RESOURCES += \
$$VIRIDITY_RES_PATH/viridityclient.qrc
QTQUICK_COMPILER_SKIPPED_RESOURCES += \
$$VIRIDITY_RES_PATH/viridityclient.qrc
viridity_declarative {
include($$PWD/3rdparty/kcl/qmlpp/src/qmlpp.pri)
viridity_qtquick1 {
message("Viridity: Configuring QtQuick 1.x declarative support classes")
QT += declarative
DEFINES += VIRIDITY_USE_QTQUICK1
DEFINES -= VIRIDITY_USE_QTQUICK2
qmlPreprocessFolder($$VIRIDITY_SRC_PATH/qml/Viridity, @QtQuick1, 1.1)
}
viridity_qtquick2 {
message("Viridity: Configuring QtQuick 2.x declarative support classes")
QT += qml quick
DEFINES += VIRIDITY_USE_QTQUICK2
DEFINES -= VIRIDITY_USE_QTQUICK1
qmlPreprocessFolder($$VIRIDITY_SRC_PATH/qml/Viridity, @QtQuick2, 2.0)
}
INCLUDEPATH += \
$$VIRIDITY_SRC_PATH/declarative
HEADERS += \
$$VIRIDITY_SRC_PATH/declarative/viriditydeclarative.h \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlappcore.h \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlwebserver.h \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlsessionmanager.h \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlrequesthandler.h
SOURCES += \
$$VIRIDITY_SRC_PATH/declarative/viriditydeclarative.cpp \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlappcore.cpp \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlwebserver.cpp \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlsessionmanager.cpp \
$$VIRIDITY_SRC_PATH/declarative/viridityqmlrequesthandler.cpp
RESOURCES += \
$$VIRIDITY_RES_PATH/viridityqml.qrc
}
# Display related
!win32: CONFIG += viridity_use_improved_jpeg viridity_use_improved_png
viridity_module_display {
message("Viridity: Configuring display module")
DEFINES += VIRIDITY_MODULE_DISPLAY
QT += gui
INCLUDEPATH += \
$$VIRIDITY_SRC_PATH/display
HEADERS += \
$$VIRIDITY_SRC_PATH/display/comparer/imageaux.h \
$$VIRIDITY_SRC_PATH/display/comparer/imagecomparer.h \
$$VIRIDITY_SRC_PATH/display/comparer/imagecompareroptools.h \
$$VIRIDITY_SRC_PATH/display/comparer/moveanalyzer.h \
$$VIRIDITY_SRC_PATH/display/comparer/tiles.h \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplaycommandinterpreter.h \
$$VIRIDITY_SRC_PATH/display/graphicsscenebufferrenderer.h \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplaymanager.h \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplay.h \
$$VIRIDITY_SRC_PATH/display/handlers/patchrequesthandler.h \
$$VIRIDITY_SRC_PATH/display/graphicssceneadapter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/comparer/imageaux.cpp \
$$VIRIDITY_SRC_PATH/display/comparer/imagecomparer.cpp \
$$VIRIDITY_SRC_PATH/display/comparer/imagecompareroptools.cpp \
$$VIRIDITY_SRC_PATH/display/comparer/moveanalyzer.cpp \
$$VIRIDITY_SRC_PATH/display/comparer/tiles.cpp \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplaycommandinterpreter.cpp \
$$VIRIDITY_SRC_PATH/display/graphicsscenebufferrenderer.cpp \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplaymanager.cpp \
$$VIRIDITY_SRC_PATH/display/graphicsscenedisplay.cpp \
$$VIRIDITY_SRC_PATH/display/handlers/patchrequesthandler.cpp
viridity_use_improved_jpeg {
message("Viridity: Configuring display module to use improved JPEG writer support")
DEFINES += VIRIDITY_USE_IMPROVED_JPEG
HEADERS += \
$$VIRIDITY_SRC_PATH/display/private/jpegwriter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/private/jpegwriter.cpp
LIBS += -ljpeg
}
viridity_use_improved_png {
message("Viridity: Configuring display module to use improved PNG writer support")
DEFINES += VIRIDITY_USE_IMPROVED_PNG
HEADERS += \
$$VIRIDITY_SRC_PATH/display/private/pngwriter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/private/pngwriter.cpp
LIBS += -lpng
}
viridity_module_display_areafingerprints {
message("Viridity: Configuring display module to use area finger printing")
DEFINES += VIRIDITY_USE_AREAFINGERPRINTS
HEADERS += \
$$VIRIDITY_SRC_PATH/display/comparer/areafingerprint.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/comparer/areafingerprint.cpp
}
viridity_module_display_tools {
message("Viridity: Configuring display module with tools")
HEADERS += \
$$VIRIDITY_SRC_PATH/display/private/graphicsscenedisplaytests.h \
$$VIRIDITY_SRC_PATH/display/tools/graphicsscenedisplayrecorder.h \
$$VIRIDITY_SRC_PATH/display/tools/graphicsscenedisplayplayer.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/private/graphicsscenedisplaytests.cpp \
$$VIRIDITY_SRC_PATH/display/tools/graphicsscenedisplayrecorder.cpp \
$$VIRIDITY_SRC_PATH/display/tools/graphicsscenedisplayplayer.cpp
}
viridity_declarative {
viridity_qtquick1 {
message("Viridity: Configuring display module with QtQuick 1.x support")
CONFIG += viridity_module_display_qgraphicscene viridity_module_display_declarative
HEADERS += \
$$VIRIDITY_SRC_PATH/display/adapters/qtquick1adapter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/adapters/qtquick1adapter.cpp
}
viridity_qtquick2 {
message("Viridity: Configuring display module with QtQuick 2.x support")
CONFIG += viridity_module_display_declarative
HEADERS += \
$$VIRIDITY_SRC_PATH/display/adapters/qtquick2adapter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/adapters/qtquick2adapter.cpp
}
INCLUDEPATH += \
$$VIRIDITY_SRC_PATH/declarative
HEADERS += \
$$VIRIDITY_SRC_PATH/display/declarativescenesizehandler.h \
$$VIRIDITY_SRC_PATH/declarative/viridityqtquickdisplay.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/declarativescenesizehandler.cpp \
$$VIRIDITY_SRC_PATH/declarative/viridityqtquickdisplay.cpp
}
viridity_module_display_qgraphicscene {
message("Viridity: Configuring display module with QGraphicsScene support")
DEFINES += VIRIDITY_USE_QGRAPHICSSCENE
HEADERS += \
$$VIRIDITY_SRC_PATH/display/private/synchronizedscenechangedhandler.h \
$$VIRIDITY_SRC_PATH/display/private/synchronizedscenerenderer.h \
$$VIRIDITY_SRC_PATH/display/adapters/qgraphicssceneadapter.h
SOURCES += \
$$VIRIDITY_SRC_PATH/display/private/synchronizedscenechangedhandler.cpp \
$$VIRIDITY_SRC_PATH/display/private/synchronizedscenerenderer.cpp \
$$VIRIDITY_SRC_PATH/display/adapters/qgraphicssceneadapter.cpp
}
}
QML_IMPORT_PATH += $$VIRIDITY_SRC_PATH/qml/