-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathguglielmo.pro
486 lines (445 loc) · 14.8 KB
/
guglielmo.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
TEMPLATE = app
objectName = guglielmo
os = $$system(uname)
objectVersion = 0.6
orgName = SQSL
orgDomain = sqsl.org
TARGET = $$objectName
DEFINES += TARGET=\\\"$$objectName\\\" CURRENT_VERSION=\\\"$$objectVersion\\\" ORGNAME=\\\"$$orgName\\\" ORGDOMAIN=\\\"$$orgDomain\\\"
QT += widgets multimedia
QMAKE_CXXFLAGS += -std=c++11 -O3 -isystem $$[QT_INSTALL_HEADERS]
QMAKE_CFLAGS += -flto -ffast-math -O3
QMAKE_CXXFLAGS_DEBUG += -std=c++11 -g -O0 -isystem $$[QT_INSTALL_HEADERS]
QMAKE_CFLAGS_DEBUG += -flto -ffast-math -g -O0
RC_ICONS = icons/guglielmo.ico
RESOURCES += guglielmo.qrc
contains(os, Linux) {
CONFIG += linux
}
contains(os, MINGW32.*) || contains(os, MSYS.*) {
CONFIG += mingw32
}
contains(os, MINGW64.*) {
error("Git bash is unsupported, please use MSYS or MSYS2 instead")
}
win32 {
CONFIG += windows
DEFINES += CHOOSE_CONFIG=Windows
mingw32 {
# powershell hangs on date, so make sure we use a proper shell
currDate = $$system(sh -c date "+\"%Y-%m-%d %H:%M:%S %z\"")
DEFINES += "CURRENT_DATE='\"$$currDate\"'"
} else {
# powershell specific date
currdate = $$system("powershell Get-Date -Uformat '%Y-%m-%d %H:%M:%S %Z'")
DEFINES += "\"CURRENT_DATE=\\\"$$currDate\\\"\""
CONFIG += visualStudio
}
} else {
CONFIG -= console
currDate = $$system(date "+\"%Y-%m-%d %H:%M:%S %z\"")
DEFINES += "CURRENT_DATE='\"$$currDate\"'"
}
#CONFIG += try-epg # do not use
CONFIG +=
linux {
DESTDIR = ./linux-bin
CONFIG += mpris
# FIXME currently needs to be set by hand
INCLUDEPATH += /usr/include/qt5/qwt6
LIBS += -lqwt
CONFIG += PC
}
macx {
include (/usr/local/qwt/features/qwt.prf)
DESTDIR = ./macx-bin
ICON = icons/guglielmo.png
VERSION = $$objectVersion
QMAKE_INFO_PLIST = guglielmo.plist
LIBS += -L/usr/local/lib
CONFIG += NO_SSE
}
unix {
INCLUDEPATH += /usr/local/include
LIBS += -lfftw3f -lfftw3 -lusb-1.0 -ldl
LIBS += -lportaudio
LIBS += -lz
LIBS += -lsndfile
LIBS += -lsamplerate
DEFINES += CHOOSE_CONFIG=Unix
# comment or uncomment for the devices you want to have support for
# (you obviously have libraries installed for the selected ones)
CONFIG += rtlsdr
CONFIG += sdrplay
CONFIG += sdrplay-v3
CONFIG += airspy
CONFIG += hackrf
CONFIG += lime
# CONFIG += pluto
CONFIG += faad
# CONFIG += fdk-aac
}
mingw32 {
DESTDIR = ./windows-bin
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib
LIBS += -lfftw3f
# LIBS += -lfftw3
LIBS += -lportaudio
LIBS += -lsndfile
LIBS += -lsamplerate
# LIBS += -lusb-1.0
LIBS += -lz
LIBS += -lqwt
# comment or uncomment for the devices you want to have support for
# (you obviously have libraries installed for the selected ones)
CONFIG += rtlsdr
CONFIG += sdrplay
CONFIG += sdrplay-v3
CONFIG += airspy
CONFIG += hackrf
CONFIG += lime
# CONFIG += pluto
CONFIG += faad
# CONFIG += PC
CONFIG += NO_SSE
}
visualStudio {
DESTDIR = ./windows-bin
SOURCES += src/share/getopt.c
HEADERS += include/share/getopt.h
incBasePath = "c:\Program Files\Microsoft Visual Studio\2022\Community\SDK\ScopeCppSDK\vc15"
INCLUDEPATH += "$$incBasePath\VC\include"
INCLUDEPATH += "$$incBasePath\SDK\include"
INCLUDEPATH += "$$incBasePath\SDK\include\shared"
INCLUDEPATH += "$$incBasePath\SDK\include\ucrt"
INCLUDEPATH += "$$incBasePath\SDK\include\um"
INCLUDEPATH += ..\includes
INCLUDEPATH += include/share
libBasePath += "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0"
QMAKE_LFLAGS += /LIBPATH:\"..\libraries\"
QMAKE_LFLAGS += /LIBPATH:\"$$libBasePath\ucrt\x86\"
QMAKE_LFLAGS += /LIBPATH:\"$$libBasePath\um\x86\"
QMAKE_LFLAGS += /LIBPATH:\"c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\lib\x86\"
LIBS += -lfftw3f -lfftw3
LIBS += -lportaudio
LIBS += -lsndfile
LIBS += -lsamplerate
LIBS += -lusb-1.0
LIBS += ..\libraries\zlib1.lib
LIBS += -lqwt
# comment or uncomment for the devices you want to have support for
# (you obviously have libraries installed for the selected ones)
CONFIG += rtlsdr
# CONFIG += sdrplay
# CONFIG += sdrplay-v3
# CONFIG += airspy
# CONFIG += hackrf
# CONFIG += lime
# CONFIG += pluto
CONFIG += faad
# CONFIG += PC
CONFIG += NO_SSE
}
DEPENDPATH += . \
./src \
./include \
./src/ofdm \
./src/protection \
./src/fm \
./src/rds \
./src/backend \
./src/backend/audio \
./src/backend/data \
./src/backend/data/mot \
./src/backend/data/journaline \
./src/output \
./src/support \
./src/support/viterbi-spiral \
./include/fm \
./include/rds \
./include/ofdm \
./include/protection \
./include/backend \
./include/backend/audio \
./include/backend/data \
./include/backend/data/mot \
./include/backend/data/journaline \
./include/output \
./include/support \
./devices
INCLUDEPATH += . \
./src \
./include \
./include/protection \
./include/dab \
./include/fm \
./include/rds \
./include/ofdm \
./include/backend \
./include/backend/audio \
./include/backend/data \
./include/backend/data/mot \
./include/backend/data/journaline \
./include/output \
./include/support \
./include/support/viterbi-spiral \
./devices
# Input
HEADERS += ./include/radio.h \
./include/constants.h \
./include/logger.h \
./include/logging.h \
./include/settings.h \
./include/combobox.h \
./include/listwidget.h \
./include/country-codes.h \
./include/dab/dab-processor.h \
./include/fm/fm-demodulator.h \
./include/fm/fm-processor.h \
./include/support/squelchClass.h \
./include/rds/rds-blocksynchronizer.h \
./include/rds/rds-decoder.h \
./include/rds/rds-groupdecoder.h \
./include/rds/rds-group.h \
./include/rds/codetables.h \
./include/ofdm/timesyncer.h \
./include/ofdm/sample-reader.h \
./include/ofdm/ofdm-decoder.h \
./include/ofdm/phasereference.h \
./include/ofdm/phasetable.h \
./include/ofdm/freq-interleaver.h \
./include/ofdm/tii_detector.h \
./include/ofdm/fic-handler.h \
./include/ofdm/fib-decoder.h \
./include/ofdm/fib-table.h \
./include/ofdm/dab-config.h \
./include/protection/protTables.h \
./include/protection/protection.h \
./include/protection/eep-protection.h \
./include/protection/uep-protection.h \
./include/backend/msc-handler.h \
./include/backend/galois.h \
./include/backend/reed-solomon.h \
./include/backend/charsets.h \
./include/backend/firecode-checker.h \
./include/backend/frame-processor.h \
./include/backend/backend.h \
./include/backend/backend-driver.h \
./include/backend/backend-deconvolver.h \
./include/backend/services.h \
./include/backend/audio/mp2processor.h \
./include/backend/audio/mp4processor.h \
./include/backend/audio/bitWriter.h \
./include/backend/data/data-processor.h \
./include/backend/data/pad-handler.h \
./include/backend/data/virtual-datahandler.h \
./include/backend/data/tdc-datahandler.h \
./include/backend/data/ip-datahandler.h \
./include/backend/data/mot/mot-handler.h \
./include/backend/data/mot/mot-object.h \
./include/backend/data/mot/mot-dir.h \
./include/backend/data/journaline-datahandler.h \
./include/backend/data/journaline/dabdatagroupdecoder.h \
./include/backend/data/journaline/crc_8_16.h \
./include/backend/data/journaline/log.h \
./include/backend/data/journaline/newssvcdec_impl.h \
./include/backend/data/journaline/Splitter.h \
./include/backend/data/journaline/dabdgdec_impl.h \
./include/backend/data/journaline/newsobject.h \
./include/backend/data/journaline/NML.h \
./include/output/audio-base.h \
./include/output/newconverter.h \
./include/output/audiosink.h \
./include/output/Qt-audio.h \
./include/output/Qt-audiodevice.h \
./include/support/process-params.h \
./include/support/viterbi-spiral/viterbi-spiral.h \
./include/support/fir-filters.h \
./include/support/fft.h \
./include/support/fft-filters.h \
./include/support/iir-filters.h \
./include/support/pll.h \
./include/support/trigtabs.h \
./include/support/fft-handler.h \
./include/support/ringbuffer.h \
./include/support/dab-params.h \
./include/support/band-handler.h \
./include/support/dab-tables.h \
./include/support/bits-helper.h \
./include/support/math-helper.h \
./devices/device-handler.h
FORMS += ./guglielmo.ui \
./about.ui \
./settings.ui
SOURCES += ./src/main.cpp \
./src/radio.cpp \
./src/dialogs.cpp \
./src/dab/dab-processor.cpp \
./src/fm/fm-demodulator.cpp \
./src/fm/fm-processor.cpp \
./src/rds/rds-blocksynchronizer.cpp \
./src/rds/rds-decoder.cpp \
./src/rds/rds-group.cpp \
./src/rds/rds-groupdecoder.cpp \
./src/ofdm/timesyncer.cpp \
./src/ofdm/sample-reader.cpp \
./src/ofdm/ofdm-decoder.cpp \
./src/ofdm/phasereference.cpp \
./src/ofdm/phasetable.cpp \
./src/ofdm/freq-interleaver.cpp \
./src/ofdm/tii_detector.cpp \
./src/ofdm/fic-handler.cpp \
./src/ofdm/fib-decoder.cpp \
./src/protection/protTables.cpp \
./src/protection/protection.cpp \
./src/protection/eep-protection.cpp \
./src/protection/uep-protection.cpp \
./src/backend/msc-handler.cpp \
./src/backend/galois.cpp \
./src/backend/reed-solomon.cpp \
./src/backend/charsets.cpp \
./src/backend/firecode-checker.cpp \
./src/backend/backend.cpp \
./src/backend/backend-driver.cpp \
./src/backend/backend-deconvolver.cpp \
./src/backend/audio/mp2processor.cpp \
./src/backend/audio/mp4processor.cpp \
./src/backend/audio/bitWriter.cpp \
./src/backend/data/pad-handler.cpp \
./src/backend/data/data-processor.cpp \
./src/backend/data/tdc-datahandler.cpp \
./src/backend/data/ip-datahandler.cpp \
./src/backend/data/mot/mot-handler.cpp \
./src/backend/data/mot/mot-object.cpp \
./src/backend/data/mot/mot-dir.cpp \
./src/backend/data/journaline-datahandler.cpp \
./src/backend/data/journaline/crc_8_16.c \
./src/backend/data/journaline/log.c \
./src/backend/data/journaline/newssvcdec_impl.cpp \
./src/backend/data/journaline/Splitter.cpp \
./src/backend/data/journaline/dabdgdec_impl.c \
./src/backend/data/journaline/newsobject.cpp \
./src/backend/data/journaline/NML.cpp \
./src/output/audio-base.cpp \
./src/output/newconverter.cpp \
./src/output/audiosink.cpp \
./src/output/Qt-audio.cpp \
./src/output/Qt-audiodevice.cpp \
./src/support/fir-filters.cpp \
./src/support/fft.cpp \
./src/support/fft-filters.cpp \
./src/support/iir-filters.cpp \
./src/support/pll.cpp \
./src/support/trigtabs.cpp \
./src/support/viterbi-spiral/viterbi-spiral.cpp \
./src/support/fft-handler.cpp \
./src/support/dab-params.cpp \
./src/support/band-handler.cpp \
./src/support/dab-tables.cpp \
./devices/device-handler.cpp
faad {
DEFINES += __WITH_FAAD__
HEADERS += ./include/backend/audio/faad-decoder.h
SOURCES += ./src/backend/audio/faad-decoder.cpp
LIBS += -lfaad
}
fdk-aac {
DEFINES += __WITH_FDK_AAC__
INCLUDEPATH += ./specials/fdk-aac
HEADERS += ./include/backend/audio/fdk-aac.h
SOURCES += ./src/backend/audio/fdk-aac.cpp
LIBS += -lfdk-aac
}
try-epg {
DEFINES += TRY_EPG
QT += xml
DEPENDPATH += ./src/backend/data/epg \
./include/backend/data/epg
INCLUDEPATH += ./include/backend/data/epg
HEADERS += ./include/backend/data/epg/epgdec.h
SOURCES += ./src/backend/data/epg/epgdec.cpp
}
mpris {
DEFINES += HAVE_MPRIS
CONFIG += link_pkgconfig
PKGCONFIG = mpris-qt5
}
# for RPI2 use:
RPI {
DEFINES += __MSC_THREAD__
DEFINES += __THREADED_BACKEND
DEFINES += NEON_AVAILABLE
QMAKE_CFLAGS += -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
QMAKE_CXXFLAGS += -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
HEADERS += ./src/support/viterbi-spiral/spiral-neon.h
SOURCES += ./src/support/viterbi-spiral/spiral-neon.c
}
PC {
# DEFINES += __THREADED_BACKEND
# DEFINES += __MSC_THREAD__
DEFINES += SSE_AVAILABLE
HEADERS += ./src/support/viterbi-spiral/spiral-sse.h
SOURCES += ./src/support/viterbi-spiral/spiral-sse.c
}
NO_SSE {
HEADERS += ./src/support/viterbi-spiral/spiral-no-sse.h
SOURCES += ./src/support/viterbi-spiral/spiral-no-sse.c
}
# devices
rtlsdr {
DEFINES += HAVE_RTLSDR
DEPENDPATH += ./devices/rtlsdr-handler
INCLUDEPATH += ./devices/rtlsdr-handler
HEADERS += ./devices/rtlsdr-handler/rtlsdr-handler.h
SOURCES += ./devices/rtlsdr-handler/rtlsdr-handler.cpp
}
sdrplay {
DEFINES += HAVE_SDRPLAY
DEPENDPATH += ./devices/sdrplay-handler
INCLUDEPATH += ./devices/sdrplay-handler
HEADERS += ./devices/sdrplay-handler/sdrplay-handler.h
SOURCES += ./devices/sdrplay-handler/sdrplay-handler.cpp
}
sdrplay-v3 {
DEFINES += HAVE_SDRPLAY_V3
DEPENDPATH += ./devices/sdrplay-handler-v3
INCLUDEPATH += ./devices/sdrplay-handler-v3 \
./devices/sdrplay-handler-v3/include
HEADERS += ./devices/sdrplay-handler-v3/sdrplay-handler-v3.h
SOURCES += ./devices/sdrplay-handler-v3/sdrplay-handler-v3.cpp
}
airspy {
DEFINES += HAVE_AIRSPY
DEPENDPATH += ./devices/airspy
INCLUDEPATH += ./devices/airspy-handler \
./devices/airspy-handler/libairspy
HEADERS += ./devices/airspy-handler/airspy-handler.h \
./devices/airspy-handler/libairspy/airspy.h
SOURCES += ./devices/airspy-handler/airspy-handler.cpp
}
hackrf {
DEFINES += HAVE_HACKRF
DEPENDPATH += ./devices/hackrf-handler
INCLUDEPATH += ./devices/hackrf-handler
HEADERS += ./devices/hackrf-handler/hackrf-handler.h
SOURCES += ./devices/hackrf-handler/hackrf-handler.cpp
}
lime {
DEFINES += HAVE_LIME
DEPENDPATH += ./devices/lime-handler
INCLUDEPATH += ./devices/lime-handler
HEADERS += ./devices/lime-handler/lime-handler.h \
./devices/lime-handler/LimeSuite.h \
./devices/lime-handler/LMS7002M_parameters.h
SOURCES += ./devices/lime-handler/lime-handler.cpp
}
pluto {
DEFINES += HAVE_PLUTO
QT += network
INCLUDEPATH += ./devices/pluto-handler
HEADERS += ./devices/pluto-handler/dabFilter.h
HEADERS += ./devices/pluto-handler/pluto-handler.h
SOURCES += ./devices/pluto-handler/pluto-handler.cpp
LIBS += -liio -lad9361
}