[5075] | 1 |
|
---|
| 2 | unix:DEFINES += _TTY_POSIX_
|
---|
| 3 | win32:DEFINES += _TTY_WIN_
|
---|
| 4 |
|
---|
| 5 | RESOURCES += bnc.qrc
|
---|
| 6 |
|
---|
[5184] | 7 | QT += svg
|
---|
[5075] | 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 |
|
---|
[9216] | 26 | release:DEFINES += BNC_DEBUG_BCEP
|
---|
[9520] | 27 | release:DEFINES += SPLITBLOCK
|
---|
[7858] | 28 |
|
---|
[9520] | 29 | debug:DEFINES += SPLITBLOCK
|
---|
| 30 | debug:DEFINES += BNC_DEBUG
|
---|
| 31 | debug:DEFINES += BNC_DEBUG_BCEP
|
---|
| 32 | #debug:DEFINES += BNC_DEBUG_SSR
|
---|
| 33 |
|
---|
| 34 |
|
---|
[5075] | 35 | # Include Path
|
---|
| 36 | # ------------
|
---|
[6812] | 37 | INCLUDEPATH += . ../newmat ./RTCM3 ./RTCM3/clock_and_orbit ./RTCM \
|
---|
[5075] | 38 | ../qwt ../qwtpolar
|
---|
| 39 |
|
---|
| 40 | # Additional Libraries
|
---|
| 41 | # --------------------
|
---|
| 42 | unix:LIBS += -L../newmat -lnewmat -L../qwt -L../qwtpolar -lqwtpolar -lqwt
|
---|
| 43 | win32:LIBS += -L../newmat/release -L../qwt/release -L../qwtpolar/release \
|
---|
| 44 | -lnewmat -lqwtpolar -lqwt
|
---|
| 45 |
|
---|
| 46 | HEADERS = bnchelp.html bncgetthread.h bncwindow.h bnctabledlg.h \
|
---|
| 47 | bnccaster.h bncrinex.h bnccore.h bncutils.h bnchlpdlg.h \
|
---|
| 48 | bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h \
|
---|
| 49 | bncnetquery.h bncnetqueryv1.h bncnetqueryv2.h \
|
---|
| 50 | bncnetqueryrtp.h bncsettings.h latencychecker.h \
|
---|
[7298] | 51 | bncipport.h bncnetqueryv0.h bncnetqueryudp.h \
|
---|
| 52 | bncnetqueryudp0.h bncudpport.h bnctime.h \
|
---|
| 53 | bncserialport.h bncnetquerys.h bncfigure.h \
|
---|
| 54 | bncfigurelate.h bncversion.h \
|
---|
| 55 | bncfigureppp.h bncrawfile.h \
|
---|
[6657] | 56 | bncmap.h bncantex.h bncephuser.h \
|
---|
| 57 | bncoutf.h bncclockrinex.h bncsp3.h bncsinextro.h \
|
---|
[5075] | 58 | bncbytescounter.h bncsslconfig.h reqcdlg.h \
|
---|
| 59 | upload/bncrtnetdecoder.h upload/bncuploadcaster.h \
|
---|
[6136] | 60 | ephemeris.h t_prn.h satObs.h \
|
---|
[5075] | 61 | upload/bncrtnetuploadcaster.h upload/bnccustomtrafo.h \
|
---|
[5892] | 62 | upload/bncephuploadcaster.h qtfilechooser.h \
|
---|
[6044] | 63 | GPSDecoder.h pppInclude.h pppWidgets.h pppModel.h \
|
---|
[6047] | 64 | pppMain.h pppRun.h pppOptions.h pppCrdFile.h pppThread.h \
|
---|
[6039] | 65 | RTCM/RTCM2.h RTCM/RTCM2Decoder.h \
|
---|
[5075] | 66 | RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \
|
---|
[6812] | 67 | RTCM3/RTCM3Decoder.h RTCM3/bits.h RTCM3/gnss.h \
|
---|
[5852] | 68 | RTCM3/RTCM3coDecoder.h RTCM3/ephEncoder.h \
|
---|
[9036] | 69 | RTCM3/clock_and_orbit/clock_orbit.h \
|
---|
| 70 | RTCM3/clock_and_orbit/clock_orbit_igs.h \
|
---|
| 71 | RTCM3/clock_and_orbit/clock_orbit_rtcm.h \
|
---|
[5885] | 72 | rinex/rnxobsfile.h \
|
---|
| 73 | rinex/rnxnavfile.h rinex/corrfile.h \
|
---|
| 74 | rinex/reqcedit.h rinex/reqcanalyze.h \
|
---|
| 75 | rinex/graphwin.h rinex/polarplot.h \
|
---|
| 76 | rinex/availplot.h rinex/eleplot.h \
|
---|
[7298] | 77 | rinex/dopplot.h orbComp/sp3Comp.h \
|
---|
| 78 | combination/bnccomb.h
|
---|
[5075] | 79 |
|
---|
| 80 | HEADERS += serial/qextserialbase.h serial/qextserialport.h
|
---|
| 81 | unix:HEADERS += serial/posix_qextserialport.h
|
---|
| 82 | win32:HEADERS += serial/win_qextserialport.h
|
---|
| 83 |
|
---|
[7298] | 84 | SOURCES = bncgetthread.cpp bncwindow.cpp bnctabledlg.cpp \
|
---|
[5075] | 85 | bnccaster.cpp bncrinex.cpp bnccore.cpp bncutils.cpp \
|
---|
| 86 | bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp \
|
---|
| 87 | bnczerodecoder.cpp bncnetqueryv1.cpp bncnetqueryv2.cpp \
|
---|
| 88 | bncnetqueryrtp.cpp bncsettings.cpp latencychecker.cpp \
|
---|
| 89 | bncipport.cpp bncnetqueryv0.cpp bncnetqueryudp.cpp \
|
---|
[5868] | 90 | bncnetqueryudp0.cpp bncudpport.cpp \
|
---|
[5075] | 91 | bncserialport.cpp bncnetquerys.cpp bncfigure.cpp \
|
---|
[5860] | 92 | bncfigurelate.cpp bnctime.cpp \
|
---|
[5874] | 93 | bncfigureppp.cpp bncrawfile.cpp \
|
---|
[6657] | 94 | bncmap_svg.cpp bncantex.cpp bncephuser.cpp \
|
---|
| 95 | bncoutf.cpp bncclockrinex.cpp bncsp3.cpp bncsinextro.cpp \
|
---|
[5075] | 96 | bncbytescounter.cpp bncsslconfig.cpp reqcdlg.cpp \
|
---|
[6141] | 97 | ephemeris.cpp t_prn.cpp satObs.cpp \
|
---|
[5075] | 98 | upload/bncrtnetdecoder.cpp upload/bncuploadcaster.cpp \
|
---|
| 99 | upload/bncrtnetuploadcaster.cpp upload/bnccustomtrafo.cpp \
|
---|
| 100 | upload/bncephuploadcaster.cpp qtfilechooser.cpp \
|
---|
[6041] | 101 | GPSDecoder.cpp pppWidgets.cpp pppModel.cpp \
|
---|
[6812] | 102 | pppMain.cpp pppRun.cpp pppOptions.cpp pppCrdFile.cpp \
|
---|
| 103 | pppThread.cpp \
|
---|
[6039] | 104 | RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \
|
---|
[5075] | 105 | RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \
|
---|
[6812] | 106 | RTCM3/RTCM3Decoder.cpp \
|
---|
[5852] | 107 | RTCM3/RTCM3coDecoder.cpp RTCM3/ephEncoder.cpp \
|
---|
[9036] | 108 | RTCM3/clock_and_orbit/clock_orbit_igs.cpp \
|
---|
| 109 | RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp \
|
---|
[5885] | 110 | rinex/rnxobsfile.cpp \
|
---|
| 111 | rinex/rnxnavfile.cpp rinex/corrfile.cpp \
|
---|
| 112 | rinex/reqcedit.cpp rinex/reqcanalyze.cpp \
|
---|
| 113 | rinex/graphwin.cpp rinex/polarplot.cpp \
|
---|
| 114 | rinex/availplot.cpp rinex/eleplot.cpp \
|
---|
[7298] | 115 | rinex/dopplot.cpp orbComp/sp3Comp.cpp \
|
---|
| 116 | combination/bnccomb.cpp
|
---|
[5075] | 117 |
|
---|
| 118 | SOURCES += serial/qextserialbase.cpp serial/qextserialport.cpp
|
---|
| 119 | unix:SOURCES += serial/posix_qextserialport.cpp
|
---|
| 120 | win32:SOURCES += serial/win_qextserialport.cpp
|
---|
| 121 |
|
---|
| 122 | RC_FILE = bnc.rc
|
---|
| 123 |
|
---|
| 124 | QT += network
|
---|
| 125 |
|
---|
[7239] | 126 | exists(PPP) {
|
---|
[7203] | 127 | INCLUDEPATH += PPP
|
---|
| 128 | DEFINES += USE_PPP
|
---|
[7239] | 129 | HEADERS += PPP/pppClient.h PPP/pppObsPool.h PPP/pppEphPool.h \
|
---|
| 130 | PPP/pppStation.h PPP/pppFilter.h PPP/pppParlist.h \
|
---|
[7298] | 131 | PPP/pppSatObs.h
|
---|
[7239] | 132 | SOURCES += PPP/pppClient.cpp PPP/pppObsPool.cpp PPP/pppEphPool.cpp \
|
---|
[7298] | 133 | PPP/pppStation.cpp PPP/pppFilter.cpp PPP/pppParlist.cpp \
|
---|
| 134 | PPP/pppSatObs.cpp
|
---|
[6049] | 135 | }
|
---|
[7239] | 136 | else {
|
---|
| 137 | INCLUDEPATH += PPP_SSR_I
|
---|
| 138 | DEFINES += USE_PPP_SSR_I
|
---|
| 139 | HEADERS += PPP_SSR_I/pppClient.h PPP_SSR_I/pppFilter.h PPP_SSR_I/pppUtils.h
|
---|
| 140 | SOURCES += PPP_SSR_I/pppClient.cpp PPP_SSR_I/pppFilter.cpp PPP_SSR_I/pppUtils.cpp
|
---|
| 141 | }
|
---|
[6038] | 142 |
|
---|
[5198] | 143 | # Check QtWebKit Library Existence
|
---|
| 144 | # --------------------------------
|
---|
| 145 | win32 {
|
---|
[5199] | 146 | exists("$$[QT_INSTALL_BINS]/QtWebKit4.dll") {
|
---|
[5198] | 147 | DEFINES += QT_WEBKIT
|
---|
| 148 | }
|
---|
| 149 | }
|
---|
| 150 |
|
---|
| 151 | unix {
|
---|
| 152 | exists("$$[QT_INSTALL_LIBS]/libQtWebKit.so") {
|
---|
| 153 | DEFINES += QT_WEBKIT
|
---|
| 154 | }
|
---|
| 155 | }
|
---|
| 156 |
|
---|
[5331] | 157 | macx {
|
---|
[7298] | 158 | exists("$$[QT_INSTALL_LIBS]/QtWebKit.framework") {
|
---|
[5331] | 159 | DEFINES += QT_WEBKIT
|
---|
| 160 | }
|
---|
| 161 | }
|
---|
| 162 |
|
---|
[5184] | 163 | contains(DEFINES, QT_WEBKIT) {
|
---|
| 164 | message("Configured with QtWebKit")
|
---|
[5185] | 165 | QT += webkit
|
---|
| 166 | HEADERS += map/bncmapwin.h
|
---|
| 167 | SOURCES += map/bncmapwin.cpp
|
---|
[9235] | 168 | OTHER_FILES += map/map_osm.html
|
---|
[5184] | 169 | }
|
---|
| 170 | else {
|
---|
| 171 | message("No QtWebKit")
|
---|
| 172 | }
|
---|