1 |
|
---|
2 | unix:DEFINES += _TTY_POSIX_
|
---|
3 | win32:DEFINES += _TTY_WIN_
|
---|
4 |
|
---|
5 | RESOURCES += bnc.qrc
|
---|
6 |
|
---|
7 | QT += svg
|
---|
8 |
|
---|
9 | unix:QMAKE_CFLAGS_RELEASE -= -O2
|
---|
10 | unix:QMAKE_CXXFLAGS_RELEASE -= -O2
|
---|
11 |
|
---|
12 | # Get rid of mingwm10.dll and libgcc_s_dw2-1.dll
|
---|
13 | # ----------------------------------------------
|
---|
14 | win32 {
|
---|
15 | QMAKE_LFLAGS += -static-libgcc
|
---|
16 | QMAKE_LFLAGS -= -mthreads
|
---|
17 | QMAKE_CXXFLAGS_EXCEPTIONS_ON -= -mthreads
|
---|
18 | QMAKE_LFLAGS_EXCEPTIONS_ON -= -mthreads
|
---|
19 | }
|
---|
20 |
|
---|
21 | debug:OBJECTS_DIR=.obj/debug
|
---|
22 | debug:MOC_DIR=.moc/debug
|
---|
23 | release:OBJECTS_DIR=.obj/release
|
---|
24 | release:MOC_DIR=.moc/release
|
---|
25 |
|
---|
26 | # Include Path
|
---|
27 | # ------------
|
---|
28 | INCLUDEPATH += . ../newmat ./RTCM3 ./RTCM3/clock_and_orbit ./RTCM \
|
---|
29 | ../qwt ../qwtpolar
|
---|
30 |
|
---|
31 | # Additional Libraries
|
---|
32 | # --------------------
|
---|
33 | unix:LIBS += -L../newmat -lnewmat -L../qwt -L../qwtpolar -lqwtpolar -lqwt
|
---|
34 | win32:LIBS += -L../newmat/release -L../qwt/release -L../qwtpolar/release \
|
---|
35 | -lnewmat -lqwtpolar -lqwt
|
---|
36 |
|
---|
37 | HEADERS = bnchelp.html bncgetthread.h bncwindow.h bnctabledlg.h \
|
---|
38 | bnccaster.h bncrinex.h bnccore.h bncutils.h bnchlpdlg.h \
|
---|
39 | bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h \
|
---|
40 | bncnetquery.h bncnetqueryv1.h bncnetqueryv2.h \
|
---|
41 | bncnetqueryrtp.h bncsettings.h latencychecker.h \
|
---|
42 | bncipport.h bncnetqueryv0.h bncnetqueryudp.h \
|
---|
43 | bncnetqueryudp0.h bncudpport.h bnctime.h \
|
---|
44 | bncserialport.h bncnetquerys.h bncfigure.h \
|
---|
45 | bncfigurelate.h bncversion.h \
|
---|
46 | bncfigureppp.h bncrawfile.h \
|
---|
47 | bncmap.h bncantex.h bncephuser.h \
|
---|
48 | bncoutf.h bncclockrinex.h bncsp3.h bncsinextro.h \
|
---|
49 | bncbytescounter.h bncsslconfig.h reqcdlg.h \
|
---|
50 | upload/bncrtnetdecoder.h upload/bncuploadcaster.h \
|
---|
51 | ephemeris.h t_prn.h satObs.h \
|
---|
52 | upload/bncrtnetuploadcaster.h upload/bnccustomtrafo.h \
|
---|
53 | upload/bncephuploadcaster.h qtfilechooser.h \
|
---|
54 | GPSDecoder.h pppInclude.h pppWidgets.h pppModel.h \
|
---|
55 | pppMain.h pppRun.h pppOptions.h pppCrdFile.h pppThread.h \
|
---|
56 | RTCM/RTCM2.h RTCM/RTCM2Decoder.h \
|
---|
57 | RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \
|
---|
58 | RTCM3/RTCM3Decoder.h RTCM3/bits.h RTCM3/gnss.h \
|
---|
59 | RTCM3/RTCM3coDecoder.h RTCM3/ephEncoder.h \
|
---|
60 | RTCM3/clock_and_orbit/clock_orbit_rtcm.h \
|
---|
61 | RTCM3/gnss.h RTCM3/bits.h \
|
---|
62 | rinex/rnxobsfile.h \
|
---|
63 | rinex/rnxnavfile.h rinex/corrfile.h \
|
---|
64 | rinex/reqcedit.h rinex/reqcanalyze.h \
|
---|
65 | rinex/graphwin.h rinex/polarplot.h \
|
---|
66 | rinex/availplot.h rinex/eleplot.h \
|
---|
67 | rinex/dopplot.h orbComp/sp3Comp.h \
|
---|
68 | combination/bnccomb.h
|
---|
69 |
|
---|
70 | HEADERS += serial/qextserialbase.h serial/qextserialport.h
|
---|
71 | unix:HEADERS += serial/posix_qextserialport.h
|
---|
72 | win32:HEADERS += serial/win_qextserialport.h
|
---|
73 |
|
---|
74 | SOURCES = bncgetthread.cpp bncwindow.cpp bnctabledlg.cpp \
|
---|
75 | bnccaster.cpp bncrinex.cpp bnccore.cpp bncutils.cpp \
|
---|
76 | bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp \
|
---|
77 | bnczerodecoder.cpp bncnetqueryv1.cpp bncnetqueryv2.cpp \
|
---|
78 | bncnetqueryrtp.cpp bncsettings.cpp latencychecker.cpp \
|
---|
79 | bncipport.cpp bncnetqueryv0.cpp bncnetqueryudp.cpp \
|
---|
80 | bncnetqueryudp0.cpp bncudpport.cpp \
|
---|
81 | bncserialport.cpp bncnetquerys.cpp bncfigure.cpp \
|
---|
82 | bncfigurelate.cpp bnctime.cpp \
|
---|
83 | bncfigureppp.cpp bncrawfile.cpp \
|
---|
84 | bncmap_svg.cpp bncantex.cpp bncephuser.cpp \
|
---|
85 | bncoutf.cpp bncclockrinex.cpp bncsp3.cpp bncsinextro.cpp \
|
---|
86 | bncbytescounter.cpp bncsslconfig.cpp reqcdlg.cpp \
|
---|
87 | ephemeris.cpp t_prn.cpp satObs.cpp \
|
---|
88 | upload/bncrtnetdecoder.cpp upload/bncuploadcaster.cpp \
|
---|
89 | upload/bncrtnetuploadcaster.cpp upload/bnccustomtrafo.cpp \
|
---|
90 | upload/bncephuploadcaster.cpp qtfilechooser.cpp \
|
---|
91 | GPSDecoder.cpp pppWidgets.cpp pppModel.cpp \
|
---|
92 | pppMain.cpp pppRun.cpp pppOptions.cpp pppCrdFile.cpp \
|
---|
93 | pppThread.cpp \
|
---|
94 | RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \
|
---|
95 | RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \
|
---|
96 | RTCM3/RTCM3Decoder.cpp \
|
---|
97 | RTCM3/RTCM3coDecoder.cpp RTCM3/ephEncoder.cpp \
|
---|
98 | RTCM3/clock_and_orbit/clock_orbit_rtcm.c \
|
---|
99 | rinex/rnxobsfile.cpp \
|
---|
100 | rinex/rnxnavfile.cpp rinex/corrfile.cpp \
|
---|
101 | rinex/reqcedit.cpp rinex/reqcanalyze.cpp \
|
---|
102 | rinex/graphwin.cpp rinex/polarplot.cpp \
|
---|
103 | rinex/availplot.cpp rinex/eleplot.cpp \
|
---|
104 | rinex/dopplot.cpp orbComp/sp3Comp.cpp \
|
---|
105 | combination/bnccomb.cpp
|
---|
106 |
|
---|
107 | SOURCES += serial/qextserialbase.cpp serial/qextserialport.cpp
|
---|
108 | unix:SOURCES += serial/posix_qextserialport.cpp
|
---|
109 | win32:SOURCES += serial/win_qextserialport.cpp
|
---|
110 |
|
---|
111 | RC_FILE = bnc.rc
|
---|
112 |
|
---|
113 | QT += network
|
---|
114 |
|
---|
115 | exists(PPP) {
|
---|
116 | INCLUDEPATH += PPP
|
---|
117 | DEFINES += USE_PPP
|
---|
118 | HEADERS += PPP/pppClient.h PPP/pppObsPool.h PPP/pppEphPool.h \
|
---|
119 | PPP/pppStation.h PPP/pppFilter.h PPP/pppParlist.h \
|
---|
120 | PPP/pppSatObs.h
|
---|
121 | SOURCES += PPP/pppClient.cpp PPP/pppObsPool.cpp PPP/pppEphPool.cpp \
|
---|
122 | PPP/pppStation.cpp PPP/pppFilter.cpp PPP/pppParlist.cpp \
|
---|
123 | PPP/pppSatObs.cpp
|
---|
124 | }
|
---|
125 | else {
|
---|
126 | INCLUDEPATH += PPP_SSR_I
|
---|
127 | DEFINES += USE_PPP_SSR_I
|
---|
128 | HEADERS += PPP_SSR_I/pppClient.h PPP_SSR_I/pppFilter.h PPP_SSR_I/pppUtils.h
|
---|
129 | SOURCES += PPP_SSR_I/pppClient.cpp PPP_SSR_I/pppFilter.cpp PPP_SSR_I/pppUtils.cpp
|
---|
130 | }
|
---|
131 |
|
---|
132 | # Check QtWebKit Library Existence
|
---|
133 | # --------------------------------
|
---|
134 | win32 {
|
---|
135 | exists("$$[QT_INSTALL_BINS]/QtWebKit4.dll") {
|
---|
136 | DEFINES += QT_WEBKIT
|
---|
137 | }
|
---|
138 | }
|
---|
139 |
|
---|
140 | unix {
|
---|
141 | exists("$$[QT_INSTALL_LIBS]/libQtWebKit.so") {
|
---|
142 | DEFINES += QT_WEBKIT
|
---|
143 | }
|
---|
144 | }
|
---|
145 |
|
---|
146 | macx {
|
---|
147 | exists("$$[QT_INSTALL_LIBS]/QtWebKit.framework") {
|
---|
148 | DEFINES += QT_WEBKIT
|
---|
149 | }
|
---|
150 | }
|
---|
151 |
|
---|
152 | contains(DEFINES, QT_WEBKIT) {
|
---|
153 | message("Configured with QtWebKit")
|
---|
154 | QT += webkit
|
---|
155 | HEADERS += map/bncmapwin.h
|
---|
156 | SOURCES += map/bncmapwin.cpp
|
---|
157 | OTHER_FILES += map/map_gm.html map/map_osm.html
|
---|
158 | }
|
---|
159 | else {
|
---|
160 | message("No QtWebKit")
|
---|
161 | }
|
---|