forked from gqrx-sdr/gqrx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gqrx.pro
230 lines (204 loc) · 5.74 KB
/
gqrx.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
#--------------------------------------------------------------------------------
#
# Qmake project file for gqrx - http://gqrx.dk
#
# Common options you may want to passs to qmake:
#
# CONFIG+=debug Enable debug mode
# PREFIX=/some/prefix Installation prefix
# BOOST_SUFFIX=-mt To link against libboost-xyz-mt (needed for pybombs)
#--------------------------------------------------------------------------------
QT += core gui svg network
contains(QT_MAJOR_VERSION,5) {
QT += widgets
}
TEMPLATE = app
macx {
TARGET = Gqrx
ICON = icons/gqrx.icns
DEFINES += GQRX_OS_MACX
} else {
TARGET = gqrx
}
# enable pkg-config to find dependencies
CONFIG += link_pkgconfig
unix:!macx {
packagesExist(libpulse libpulse-simple) {
# Comment out to use gr-audio (not recommended with ALSA and Funcube Dongle Pro)
AUDIO_BACKEND = pulse
message("Gqrx configured with pulseaudio backend")
}
}
RESOURCES += icons.qrc \
textfiles.qrc
# make clean target
QMAKE_CLEAN += gqrx
# make install target
isEmpty(PREFIX) {
message(No prefix given. Using /usr/local)
PREFIX=/usr/local
}
target.path = $$PREFIX/bin
INSTALLS += target
#CONFIG += debug
# disable debug messages in release
CONFIG(debug, debug|release) {
# Use for valgrind
#QMAKE_CFLAGS_DEBUG += '-g -O0'
# Define version string (see below for releases)
VER = $$system(git describe --abbrev=8)
} else {
DEFINES += QT_NO_DEBUG
DEFINES += QT_NO_DEBUG_OUTPUT
VER = $$system(git describe --abbrev=1)
## VER = v2.3.1-37-g78ea9469
# Release binaries with gr bundled
# QMAKE_RPATH & co won't work with origin
## QMAKE_LFLAGS += '-Wl,-rpath,\'\$$ORIGIN/lib\''
}
# Tip from: http://www.qtcentre.org/wiki/index.php?title=Version_numbering_using_QMake
VERSTR = '\\"$${VER}\\"' # place quotes around the version string
DEFINES += VERSION=\"$${VERSTR}\" # create a VERSION macro containing the version string
SOURCES += \
applications/gqrx/main.cpp \
applications/gqrx/mainwindow.cpp \
applications/gqrx/receiver.cpp \
applications/gqrx/remote_control.cpp \
applications/gqrx/remote_control_settings.cpp \
dsp/afsk1200/cafsk12.cpp \
dsp/afsk1200/costabf.c \
dsp/agc_impl.cpp \
dsp/correct_iq_cc.cpp \
dsp/lpf.cpp \
dsp/resampler_xx.cpp \
dsp/rx_demod_am.cpp \
dsp/rx_demod_fm.cpp \
dsp/rx_fft.cpp \
dsp/rx_filter.cpp \
dsp/rx_meter.cpp \
dsp/rx_agc_xx.cpp \
dsp/rx_noise_blanker_cc.cpp \
dsp/sniffer_f.cpp \
dsp/stereo_demod.cpp \
interfaces/udp_sink_f.cpp \
qtgui/afsk1200win.cpp \
qtgui/agc_options.cpp \
qtgui/audio_options.cpp \
qtgui/bookmarks.cpp \
qtgui/bookmarkstablemodel.cpp \
qtgui/bookmarkstaglist.cpp \
qtgui/demod_options.cpp \
qtgui/dockaudio.cpp \
qtgui/dockbookmarks.cpp \
qtgui/dockinputctl.cpp \
qtgui/dockfft.cpp \
qtgui/dockrxopt.cpp \
qtgui/freqctrl.cpp \
qtgui/ioconfig.cpp \
qtgui/iq_tool.cpp \
qtgui/meter.cpp \
qtgui/nb_options.cpp \
qtgui/plotter.cpp \
qtgui/qtcolorpicker.cpp \
receivers/nbrx.cpp \
receivers/receiver_base.cpp \
receivers/wfmrx.cpp
HEADERS += \
applications/gqrx/gqrx.h \
applications/gqrx/mainwindow.h \
applications/gqrx/receiver.h \
applications/gqrx/remote_control.h \
applications/gqrx/remote_control_settings.h \
dsp/afsk1200/cafsk12.h \
dsp/afsk1200/filter.h \
dsp/afsk1200/filter-i386.h \
dsp/agc_impl.h \
dsp/correct_iq_cc.h \
dsp/lpf.h \
dsp/resampler_xx.h \
dsp/rx_agc_xx.h \
dsp/rx_demod_am.h \
dsp/rx_demod_fm.h \
dsp/rx_fft.h \
dsp/rx_filter.h \
dsp/rx_meter.h \
dsp/rx_noise_blanker_cc.h \
dsp/sniffer_f.h \
dsp/stereo_demod.h \
interfaces/udp_sink_f.h \
qtgui/afsk1200win.h \
qtgui/agc_options.h \
qtgui/audio_options.h \
qtgui/bookmarks.h \
qtgui/bookmarkstablemodel.h \
qtgui/bookmarkstaglist.h \
qtgui/demod_options.h \
qtgui/dockaudio.h \
qtgui/dockbookmarks.h \
qtgui/dockfft.h \
qtgui/dockinputctl.h \
qtgui/dockrxopt.h \
qtgui/freqctrl.h \
qtgui/ioconfig.h \
qtgui/iq_tool.h \
qtgui/meter.h \
qtgui/nb_options.h \
qtgui/plotter.h \
qtgui/qtcolorpicker.h \
receivers/nbrx.h \
receivers/receiver_base.h \
receivers/wfmrx.h
FORMS += \
applications/gqrx/mainwindow.ui \
applications/gqrx/remote_control_settings.ui \
qtgui/afsk1200win.ui \
qtgui/agc_options.ui \
qtgui/audio_options.ui \
qtgui/demod_options.ui \
qtgui/dockaudio.ui \
qtgui/dockbookmarks.ui \
qtgui/dockfft.ui \
qtgui/dockinputctl.ui \
qtgui/iq_tool.ui \
qtgui/dockrxopt.ui \
qtgui/ioconfig.ui \
qtgui/nb_options.ui
# Use pulseaudio (ps: could use equals? undocumented)
contains(AUDIO_BACKEND, pulse): {
HEADERS += \
pulseaudio/pa_device_list.h \
pulseaudio/pa_sink.h \
pulseaudio/pa_source.h
SOURCES += \
pulseaudio/pa_device_list.cc \
pulseaudio/pa_sink.cc \
pulseaudio/pa_source.cc
DEFINES += WITH_PULSEAUDIO
}
macx {
HEADERS += osxaudio/device_list.h
SOURCES += osxaudio/device_list.cpp
}
contains(AUDIO_BACKEND, pulse): {
PKGCONFIG += libpulse libpulse-simple
} else {
PKGCONFIG += gnuradio-audio
}
PKGCONFIG += gnuradio-analog \
gnuradio-blocks \
gnuradio-filter \
gnuradio-fft \
gnuradio-osmosdr
unix:!macx {
LIBS += -lboost_system$$BOOST_SUFFIX -lboost_program_options$$BOOST_SUFFIX
LIBS += -lrt # need to include on some distros
}
macx {
LIBS += -lboost_system-mt -lboost_program_options-mt
}
OTHER_FILES += \
bookmarks.csv \
gqrx.desktop \
README.md \
COPYING \
news.txt