-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdarkflow.pro
499 lines (479 loc) · 15.2 KB
/
darkflow.pro
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
#-------------------------------------------------
#
# Project created by QtCreator 2015-10-01T21:43:39
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#openmp support in clang doesn't seem to be as good as gcc
osx_openmp = 0
force_gcd = 0
contains(force_gcd, 1) {
QMAKE_CFLAGS += -fblocks -DDFL_USE_GCD=1
QMAKE_CXXFLAGS += -fblocks -DDFL_USE_GCD=1
QMAKE_LFLAGS += -fblocks -ldispatch -lBlocksRuntime
*-g++* {
error("Grand Central Dispatch not supported by g++")
}
}
contains(osx_openmp, 1) {
#qtcreator refuse to use the compiler kit I want...
QMAKE_LIBDIR = /usr/local/lib
QMAKE_LINK = clang++-3.8
QMAKE_CXX = "clang++-3.8 -stdlib=libc++"
QMAKE_CC = clang-3.8
}
unix {
*-g++* | *clang* {
!macx {
linux-g++ | linux-clang {
message("x64 build")
} else {
message("x86 build")
QMAKE_CFLAGS += -m32
QMAKE_CXXFLAGS += -m32
QMAKE_LFLAGS += -m32
QMAKE_CXXFLAGS_RELEASE += -msse2 -mfpmath=sse
}
}
# If you get linker errors about undefined references to symbols that
# involve types in the std::__cxx11 namespace
# QMAKE_CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0
QMAKE_CXXFLAGS += -std=c++11 -Wall -D_REENTRANT
QMAKE_CXXFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_DEBUG += -ggdb3 -ftrapv
QMAKE_CFLAGS += -Wall -D_REENTRANT
#XXX no-ignored-qualifiers for ImageMagick
QMAKE_CXXFLAGS += -Werror -Wno-deprecated-declarations -Wno-ignored-qualifiers
QMAKE_CFLAGS += -Werror -Wno-deprecated-declarations
!macx | contains(osx_openmp, 1) {
QMAKE_CXXFLAGS += -fopenmp
QMAKE_CFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
}
macx {
QMAKE_CFLAGS += -gdwarf-2
QMAKE_CXXFLAGS += -gdwarf-2
QMAKE_LFLAGS += -rpath @executable_path/../Frameworks -rpath @executable_path/../Library
}
}
}
!macx {
ICON = icons/darkflow.png \
icons/darkflow-256x256.ico \
icons/darkflow-128x128.ico \
icons/darkflow-96x96.ico \
icons/darkflow-64x64.ico \
icons/darkflow-48x48.ico \
icons/darkflow-32x32.ico \
icons/darkflow-24x24.ico
} else {
ICON = icons/darkflow.icns
QMAKE_INFO_PLIST = setup/darkflow.plist
}
unix {
macx {
message("OSX build")
QT_CONFIG -= no-pkg-config
}
QMAKE_CXXFLAGS += -DHAVE_FFMPEG
QMAKE_CFLAGS += -DHAVE_FFMPEG
CONFIG += link_pkgconfig
PKGCONFIG += Magick++ libavformat libavcodec libavutil fftw3
## For some reason distribution ImageMagick can be broken
## what follows can be used as a workaround
#PKG_CONFIG = PKG_CONFIG_PATH=/usr/local/ImageMagick-6.Q16/lib/pkgconfig pkg-config
#PKGCONFIG += Magick++-6.Q16 libavformat libavcodec libavutil fftw3
LIBS += -lfftw3_threads
}
win32 {
QMAKE_CXXFLAGS += /wd4351 /wd4251 /wd4267 /openmp /MP /DHAVE_FFMPEG
QMAKE_CFLAGS += /wd4351 /wd4251 /wd4267 /openmp /MP /DHAVE_FFMPEG
QMAKE_LFLAGS += /LARGEADDRESSAWARE
contains(QMAKE_TARGET.arch, x86_64) {
message("x64 build")
QMAKE_CXXFLAGS += -IC:\ImageMagick\6.9.3-Q16\include
QMAKE_CFLAGS += -IC:\ImageMagick\6.9.3-Q16\include
LIBS += -LC:\ImageMagick\6.9.3-Q16\lib
QMAKE_CXXFLAGS += -IC:\ffmpeg-x64\include
QMAKE_CFLAGS += -IC:\ffmpeg-x64\include
LIBS += -LC:\ffmpeg-x64\lib
QMAKE_CXXFLAGS += -IC:\fftw-3.3.5-x64
QMAKE_CFLAGS += -IC:\fftw-3.3.5-x64
LIBS += -LC:\fftw-3.3.5-x64
} else {
message("x86 build")
QMAKE_CXXFLAGS += -IC:\ImageMagick\6.9.3-Q16-x86\include
QMAKE_CFLAGS += -IC:\ImageMagick\6.9.3-Q16-x86\include
LIBS += -LC:\ImageMagick\6.9.3-Q16-x86\lib
QMAKE_CXXFLAGS += -IC:\ffmpeg-x86\include
QMAKE_CFLAGS += -IC:\ffmpeg-x86\include
LIBS += -LC:\ffmpeg-x86\lib
QMAKE_CXXFLAGS += -IC:\fftw-3.3.5-x86
QMAKE_CFLAGS += -IC:\fftw-3.3.5-x86
LIBS += -LC:\fftw-3.3.5-x86
}
LIBS += -lCORE_RL_magick_ -lCORE_RL_wand_ -lCORE_RL_Magick++_
LIBS += -lavformat -lavcodec -lavutil
LIBS += -lfftw3-3
RC_ICONS = icons/darkflow-256x256.ico \
icons/darkflow-128x128.ico \
icons/darkflow-96x96.ico \
icons/darkflow-64x64.ico \
icons/darkflow-48x48.ico \
icons/darkflow-32x32.ico \
icons/darkflow-24x24.ico
}
QMAKE_INCDIR += core operators algorithms scene ui setup
TARGET = darkflow
TEMPLATE = app
SOURCES +=\
algorithms/contraststretching.cpp \
operators/op1starbalance.cpp \
operators/opcontraststretching.cpp \
operators/opmorphology.cpp \
operators/optransferfunction.cpp \
ui/aboutdialog.cpp \
ui/filesselection.cpp \
ui/mainwindow.cpp \
scene/processbutton.cpp \
scene/processconnection.cpp \
scene/processdropdown.cpp \
scene/processfilescollection.cpp \
scene/processnode.cpp \
scene/processport.cpp \
scene/processprogressbar.cpp \
scene/processscene.cpp \
ui/projectproperties.cpp \
ui/main.cpp \
core/operator.cpp \
core/operatorinput.cpp \
core/operatoroutput.cpp \
core/operatorparameter.cpp \
core/operatorparameterdropdown.cpp \
core/operatorparameterfilescollection.cpp \
core/operatorworker.cpp \
core/photo.cpp \
ui/visualization.cpp \
scene/process.cpp \
ui/treephotoitem.cpp \
ui/treeoutputitem.cpp \
ui/slider.cpp \
scene/processslider.cpp \
core/operatorparameterslider.cpp \
algorithms/exposure.cpp \
algorithms/igamma.cpp \
algorithms/lutbased.cpp \
algorithms/algorithm.cpp \
operators/opwhitebalance.cpp \
algorithms/whitebalance.cpp \
operators/opmodulate.cpp \
operators/opigamma.cpp \
algorithms/desaturateshadows.cpp \
operators/opdesaturateshadows.cpp \
algorithms/shapedynamicrange.cpp \
algorithms/cielab.cpp \
operators/opshapedynamicrange.cpp \
operators/opsubtract.cpp \
operators/opblackbody.cpp \
operators/opflatfieldcorrection.cpp \
operators/opintegration.cpp \
operators/workerintegration.cpp \
operators/opexposure.cpp \
operators/opinvert.cpp \
algorithms/invert.cpp \
ui/tabletagsrow.cpp \
ui/tablewidgetitem.cpp \
operators/opcrop.cpp \
ui/vispoint.cpp \
operators/oploadvideo.cpp \
operators/workerloadvideo.cpp \
operators/opblend.cpp \
operators/workerblend.cpp \
ui/fullscreenview.cpp \
operators/opmultiplexer.cpp \
operators/opdemultiplexer.cpp \
operators/oprgbdecompose.cpp \
operators/oprgbcompose.cpp \
operators/opequalize.cpp \
algorithms/channelmixer.cpp \
operators/opchannelmixer.cpp \
algorithms/colorfilter.cpp \
operators/opcolorfilter.cpp \
operators/opmicrocontrasts.cpp \
operators/opunsharpmask.cpp \
operators/opgaussianblur.cpp \
operators/opblur.cpp \
operators/opthreshold.cpp \
algorithms/threshold.cpp \
operators/opdeconvolution.cpp \
operators/workerdeconvolution.cpp \
operators/opdebayer.cpp \
operators/workerdebayer.cpp \
operators/oploadimage.cpp \
operators/workerloadimage.cpp \
operators/opconvolution.cpp \
operators/workerconvolution.cpp \
operators/opexnihilo.cpp \
operators/oploadraw.cpp \
operators/oppassthrough.cpp \
operators/oprotate.cpp \
operators/workerloadraw.cpp \
algorithms/bayer.c \
algorithms/rawinfo.cpp \
operators/opcmydecompose.cpp \
operators/opcmycompose.cpp \
operators/oproll.cpp \
operators/opscale.cpp \
operators/opssdreg.cpp \
operators/workerssdreg.cpp \
operators/opbracketing.cpp \
operators/opgradientevaluation.cpp \
operators/workergradientevaluation.cpp \
operators/oplevel.cpp \
operators/oplevelpercentile.cpp \
operators/opflip.cpp \
operators/opflop.cpp \
operators/openhance.cpp \
operators/opdespeckle.cpp \
operators/opnormalize.cpp \
operators/opadaptivethreshold.cpp \
operators/opreducenoise.cpp \
algorithms/hotpixels.cpp \
operators/ophotpixels.cpp \
operators/opcolor.cpp \
ui/console.cpp \
ui/preferences.cpp \
algorithms/hdr.cpp \
operators/ophdr.cpp \
core/ports.cpp \
core/posixspawn.cpp \
ui/selectivelab.cpp \
scene/processselectivelab.cpp \
core/operatorparameterselectivelab.cpp \
algorithms/selectivelabfilter.cpp \
operators/opselectivelabfilter.cpp \
ui/graphicsviewinteraction.cpp \
core/ordinary.cpp \
core/transformview.cpp \
operators/opsave.cpp \
scene/processdirectory.cpp \
core/operatorparameterdirectory.cpp \
operators/opairydisk.cpp \
operators/opwienerdeconvolution.cpp \
operators/workerwienerdeconvolution.cpp \
algorithms/discretefouriertransform.cpp \
operators/opdftforward.cpp \
operators/opdftbackward.cpp \
operators/opdwtforward.cpp \
algorithms/atrouswavelettransform.cpp \
operators/opdwtbackward.cpp \
operators/opturnblack.cpp \
operators/opdisk.cpp \
operators/opphasecorrelationreg.cpp \
operators/opwindowfunction.cpp \
operators/opcolormap.cpp \
operators/opstarfinder.cpp \
operators/oppixelextrusionmapping.cpp \
operators/oplocallaplacianfilter.cpp \
algorithms/gaussianpyramid.cpp \
algorithms/pyramid.cpp \
algorithms/laplacianpyramid.cpp \
operators/workerlocallaplacianfilter.cpp \
operators/opbayerdecompose.cpp \
operators/opbayercompose.cpp \
operators/oprepair.cpp \
operators/opline.cpp \
algorithms/XYZtoCorColorTemp.c
HEADERS += \
algorithms/contraststretching.h \
operators/op1starbalance.h \
operators/opcontraststretching.h \
operators/opmorphology.h \
operators/optransferfunction.h \
ui/aboutdialog.h \
ui/filesselection.h \
ui/mainwindow.h \
scene/processbutton.h \
scene/processconnection.h \
scene/processdropdown.h \
scene/processnode.h \
scene/processport.h \
scene/processfilescollection.h \
scene/processprogressbar.h \
scene/processscene.h \
ui/projectproperties.h \
core/operator.h \
core/operatorinput.h \
core/operatoroutput.h \
core/operatorparameter.h \
core/operatorparameterdropdown.h \
core/operatorparameterfilescollection.h \
core/operatorworker.h \
core/photo.h \
ui/visualization.h \
scene/process.h \
ui/treephotoitem.h \
ui/treeoutputitem.h \
ui/slider.h \
scene/processslider.h \
core/operatorparameterslider.h \
algorithms/exposure.h \
algorithms/igamma.h \
algorithms/lutbased.h \
algorithms/algorithm.h \
operators/opwhitebalance.h \
algorithms/whitebalance.h \
operators/opmodulate.h \
operators/opigamma.h \
algorithms/desaturateshadows.h \
algorithms/cielab.h \
operators/opdesaturateshadows.h \
algorithms/shapedynamicrange.h \
operators/opshapedynamicrange.h \
operators/opsubtract.h \
operators/opblackbody.h \
operators/opflatfieldcorrection.h \
operators/opintegration.h \
operators/workerintegration.h \
operators/opexposure.h \
operators/opinvert.h \
algorithms/invert.h \
ui/tabletagsrow.h \
ui/tablewidgetitem.h \
operators/opcrop.h \
ui/vispoint.h \
operators/oploadvideo.h \
operators/workerloadvideo.h \
operators/opblend.h \
operators/workerblend.h \
ui/fullscreenview.h \
operators/opmultiplexer.h \
operators/opdemultiplexer.h \
operators/oprgbdecompose.h \
operators/oprgbcompose.h \
operators/opequalize.h \
algorithms/channelmixer.h \
operators/opchannelmixer.h \
algorithms/colorfilter.h \
operators/opcolorfilter.h \
operators/opmicrocontrasts.h \
operators/opunsharpmask.h \
operators/opgaussianblur.h \
operators/opblur.h \
operators/opthreshold.h \
algorithms/threshold.h \
operators/opdeconvolution.h \
operators/workerdeconvolution.h \
operators/opdebayer.h \
operators/workerdebayer.h \
operators/oploadimage.h \
operators/workerloadimage.h \
operators/opconvolution.h \
operators/workerconvolution.h \
operators/oploadraw.h \
operators/opexnihilo.h \
operators/oprotate.h \
operators/oppassthrough.h \
operators/workerloadraw.h \
algorithms/rawinfo.h \
algorithms/bayer.h \
operators/opcmydecompose.h \
operators/opcmycompose.h \
operators/oproll.h \
operators/opscale.h \
operators/opssdreg.h \
operators/workerssdreg.h \
operators/opbracketing.h \
operators/opgradientevaluation.h \
operators/workergradientevaluation.h \
operators/oplevel.h \
operators/oplevelpercentile.h \
operators/opflip.h \
operators/opflop.h \
operators/openhance.h \
operators/opdespeckle.h \
operators/opnormalize.h \
operators/opadaptivethreshold.h \
operators/opreducenoise.h \
algorithms/hotpixels.h \
operators/ophotpixels.h \
operators/opcolor.h \
ui/console.h \
ui/preferences.h \
algorithms/hdr.h \
operators/ophdr.h \
core/ports.h \
core/posixspawn.h \
core/darkflow.h \
ui/selectivelab.h \
scene/processselectivelab.h \
core/operatorparameterselectivelab.h \
algorithms/selectivelabfilter.h \
operators/opselectivelabfilter.h \
ui/graphicsviewinteraction.h \
core/ordinary.h \
core/transformview.h \
operators/opsave.h \
scene/processdirectory.h \
core/operatorparameterdirectory.h \
operators/opairydisk.h \
operators/opwienerdeconvolution.h \
operators/workerwienerdeconvolution.h \
algorithms/discretefouriertransform.h \
operators/opdftforward.h \
operators/opdftbackward.h \
operators/opdwtforward.h \
algorithms/atrouswavelettransform.h \
operators/opdwtbackward.h \
operators/opturnblack.h \
operators/opdisk.h \
operators/opphasecorrelationreg.h \
operators/opwindowfunction.h \
operators/opcolormap.h \
operators/opstarfinder.h \
operators/oppixelextrusionmapping.h \
operators/oplocallaplacianfilter.h \
algorithms/gaussianpyramid.h \
algorithms/pyramid.h \
algorithms/laplacianpyramid.h \
operators/workerlocallaplacianfilter.h \
operators/opbayerdecompose.h \
operators/opbayercompose.h \
operators/oprepair.h \
operators/opline.h \
algorithms/XYZtoCorColorTemp.h
FORMS += \
ui/aboutdialog.ui \
ui/filesselection.ui \
ui/mainwindow.ui \
ui/projectproperties.ui \
ui/visualization.ui \
ui/slider.ui \
ui/fullscreenview.ui \
ui/console.ui \
ui/preferences.ui \
ui/selectivelab.ui
RESOURCES += \
ui/resources.qrc
DISTFILES += \
setup/darkflow-x64.iss \
setup/darkflow-x86.iss \
setup/darkflow-common.iss \
setup/darkflow-version.iss \
l10n/darkflow_fr.ts \
setup/osx_prepare_bundle.sh
TRANSLATIONS = l10n/darkflow_fr.ts
unix:!macx {
target.path = /usr/bin/
INSTALLS += target
df_icons.files = icons/darkflow.png
df_icons.path = /usr/share/icons/hicolor/256x256/apps/
INSTALLS += df_icons
df_desktop_entry.files = setup/darkflow.desktop
df_desktop_entry.path = /usr/share/applications/
INSTALLS += df_desktop_entry
df_mime_xml.files = setup/x-darkflow-project.xml
df_mime_xml.path = /usr/share/mime/packages/
INSTALLS += df_mime_xml
}