QT       += widgets

#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
include(../../../env.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/Label/label.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/SettingWidget/settingwidget.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/HoverWidget/hoverwidget.pri)
include($$PROJECT_ROOTDIR/libukcc/interface.pri)

TEMPLATE = lib
CONFIG += plugin

TARGET = $$qtLibraryTarget(notice)
DESTDIR = ../..
target.path = $${PLUGIN_INSTALL_DIRS}

##加载gio库和gio-unix库，用于处理desktop文件
CONFIG        += link_pkgconfig \
                 C++11
PKGCONFIG     += gio-2.0 \
                 gio-unix-2.0 \
                 kysdk-qtwidgets \
                 kysdk-diagnostics \
#                 Qt5X

INCLUDEPATH   +=  \
                 $$PROJECT_ROOTDIR \
                 /usr/include/dconf

LIBS          +=  -L$$[QT_INSTALL_LIBS] -lgsettings-qt -ldconf


CONFIG += c++11 \
          link_pkgconfig \

PKGCONFIG += gsettings-qt \

DEFINES += QT_DEPRECATED_WARNINGS

#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    notice.cpp \
    noticemenu.cpp \
    noticeui.cpp \
    realizenotice.cpp

HEADERS += \
    appdetail.h \
    notice.h \
    noticemenu.h \
    noticeui.h \
    realizenotice.h

FORMS +=

INSTALLS += target
