forked from JvanKatwijk/qt-1090
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qt-1090.pro
executable file
·155 lines (143 loc) · 4.29 KB
/
qt-1090.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
######################################################################
# Automatically generated by qmake (2.01a) Tue Oct 6 19:48:14 2009
# but modified by me to accomodate for the includes for qwt and
# portaudio
######################################################################
TEMPLATE = app
TARGET = qt-1090
QT += widgets network
CONFIG += console
QMAKE_CFLAGS += -O3 -ffast-math
QMAKE_CXXFLAGS += -O3 -ffast-math
QMAKE_LFLAGS += -O3
#QMAKE_CFLAGS += -g
#QMAKE_CXXFLAGS += -g
#QMAKE_LFLAGS += -g
RC_ICONS = qt-1090.ico
RESOURCES += resources.qrc
CONFIG += sdrplay
CONFIG += dabstick
CONFIG += hackrf
CONFIG += rtl_tcp
TRANSLATIONS = i18n/de_DE.ts i18n/it_IT.ts i18n/hu_HU.ts
DEPENDPATH += . \
./devices \
./devices/file-handler
INCLUDEPATH += . \
./devices \
./devices/file-handler
# Input
HEADERS += ./xclose.h \
./qt-1090.h \
./ringbuffer.h \
./adsb-constants.h \
./aircraft-handler.h \
./icao-cache.h \
./crc-handling.h \
./message-handling.h \
./device-handler.h \
./devices/file-handler/file-handler.h \
./syncviewer.h
FORMS += ./qt-1090.ui
SOURCES += ./xclose.cpp \
./main.cpp \
./qt-1090.cpp \
./aircraft-handler.cpp \
./icao-cache.cpp \
./crc-handling.cpp \
./message-handling.cpp \
./device-handler.cpp \
./devices/file-handler/file-handler.cpp \
./syncviewer.cpp
#
# for windows32 we use:
win32 {
DESTDIR = ../../windows-qt1090
exists ("./.git") {
GITHASHSTRING = $$system(git rev-parse --short HEAD)
!isEmpty(GITHASHSTRING) {
message("Current git hash = $$GITHASHSTRING")
DEFINES += GITHASH=\\\"$$GITHASHSTRING\\\"
}
}
isEmpty(GITHASHSTRING) {
DEFINES += GITHASH=\\\"------\\\"
}
INCLUDEPATH += /usr/i686-w64-mingw32/sys-root/mingw/include
INCLUDEPATH += /mingw32/include
INCLUDEPATH += /mingw32/include/qwt
INCLUDEPATH += /usr/local/include /usr/include/qt4/qwt /usr/include/qt5/qwt /usr/include/qt4/qwt /usr/include/qwt /usr/local/qwt-6.1.4-svn/
LIBS += -L/usr/i686-w64-mingw32/sys-root/mingw/lib
LIBS += -lwinmm
LIBS += -lstdc++
LIBS += -lws2_32
LIBS += -lusb-1.0
LIBS += -lqwt-qt5
LIBS += -L .
LIBS += -lqhttpserver
}
#
#for fedora and ubuntu and the rpi we use
unix {
exists ("./.git") {
GITHASHSTRING = $$system(git rev-parse --short HEAD)
!isEmpty(GITHASHSTRING) {
message("Current git hash = $$GITHASHSTRING")
DEFINES += GITHASH=\\\"$$GITHASHSTRING\\\"
}
}
isEmpty(GITHASHSTRING) {
DEFINES += GITHASH=\\\"------\\\"
}
DESTDIR = ./linux-bin
LIBS += -L/usr/lib64
LIBS += -L/lib64
INCLUDEPATH += /usr/include/qt5/qwt
LIBS += -lqwt-qt5 -lqhttpserver -lusb-1.0 -ldl
}
# the devices:
# for the "standard" rtlsdr library use:
dabstick {
DEFINES += __HAVE_RTLSDR__
FORMS += ./devices/rtlsdr-handler/rtlsdr-widget.ui
INCLUDEPATH += ./devices/rtlsdr-handler
DEPENDPATH += ./devices/rtlsdr-handler
HEADERS += ./devices/rtlsdr-handler/rtlsdr-handler.h \
./devices/rtlsdr-handler/rtl-dongleselect.h
SOURCES += ./devices/rtlsdr-handler/rtlsdr-handler.cpp \
./devices/rtlsdr-handler/rtl-dongleselect.cpp
}
#
# the SDRplay
#
sdrplay {
DEFINES += __HAVE_SDRPLAY__
INCLUDEPATH += ./devices/sdrplay-handler
HEADERS += ./devices/sdrplay-handler/sdrplay-handler.h
SOURCES += ./devices/sdrplay-handler/sdrplay-handler.cpp
FORMS += ./devices/sdrplay-handler/sdrplay-widget.ui
}
#
# the HACKRF One
#
hackrf {
DEFINES += __HAVE_HACKRF__
DEPENDPATH += ./devices/hackrf-handler
INCLUDEPATH += ./devices/hackrf-handler
INCLUDEPATH += ./devices/hackrf-handler/libhackrf
HEADERS += ./devices/hackrf-handler/hackrf-handler.h
SOURCES += ./devices/hackrf-handler/hackrf-handler.cpp
FORMS += ./devices/hackrf-handler/hackrf-widget.ui
}
#
# the rtl_tcp client
#
hackrf {
DEFINES += __HAVE_RTLTCP__
DEPENDPATH += ./devices/rtltcp-handler
INCLUDEPATH += ./devices/rtltcp-handler
HEADERS += ./devices/rtltcp-handler/rtl_tcp-handler.h
SOURCES += ./devices/rtltcp-handler/rtl_tcp-handler.cpp
FORMS += ./devices/rtltcp-handler/rtl_tcp-widget.ui
}
#