Changeset 9383 in ntrip for trunk/BNC/qwt/src.pri


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/src.pri

    r8127 r9383  
    181181        qwt_series_data.cpp \
    182182        qwt_point_data.cpp \
    183         qwt_scale_widget.cpp
     183        qwt_scale_widget.cpp
     184
     185    contains(QWT_CONFIG, QwtOpenGL) {
     186
     187        HEADERS += \
     188            qwt_plot_glcanvas.h
     189
     190        SOURCES += \
     191            qwt_plot_glcanvas.cpp
     192    }
     193
     194    contains(QWT_CONFIG, QwtSvg) {
     195
     196        HEADERS += \
     197            qwt_plot_svgitem.h
     198
     199        SOURCES += \
     200            qwt_plot_svgitem.cpp
     201    }
    184202}
    185203
     
    192210contains(QWT_CONFIG, QwtSvg) {
    193211
    194     QT += svg
    195 
    196     HEADERS += qwt_plot_svgitem.h
    197     SOURCES += qwt_plot_svgitem.cpp
     212    greaterThan(QT_MAJOR_VERSION, 4) {
     213
     214        qtHaveModule(svg) {
     215            QT += svg
     216        }
     217        else {
     218            warning("QwtSvg is enabled in qwtconfig.pri, but Qt has not been built with svg support")
     219        }
     220    }
     221    else {
     222        QT += svg
     223    }
    198224}
    199225else {
     
    205231
    206232    QT += opengl
    207 
    208     HEADERS += qwt_plot_glcanvas.h
    209     SOURCES += qwt_plot_glcanvas.cpp
    210233}
    211234else {
Note: See TracChangeset for help on using the changeset viewer.