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