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