yhkylin-backup-tools/kybackup/kybackup.pro

111 lines
3.1 KiB
Prolog

QT += core gui svg
QT += dbus xml
QT += network
# 适配窗口管理器圆角阴影
QT += KWindowSystem x11extras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# 适配窗口管理器圆角阴影
LIBS +=-lpthread
LIBS +=-lX11
# 配置gsettings
CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
HEADERS += \
../backup-daemon/parsebackuplist.h \
../common/mydefine.h \
../common/mylittleparse.h \
../common/singleton.h \
../common/spinlock_mutex.h \
../common/utils.h \
backup_manager_interface.h \
component/circlelabel.h \
component/clicklabel.h \
component/hoverwidget.h \
component/imageutil.h \
component/linelabel.h \
component/myiconbutton.h \
component/myiconlabel.h \
component/mylabel.h \
component/mylineedit.h \
component/mypushbutton.h \
component/ringsprogressbar.h \
functypeconverter.h \
globalbackupinfo.h \
globalsignals.h \
gsettingswrapper.h \
leftsiderbarwidget.h \
maindialog.h \
module/systembackup.h \
module/systemrestore.h \
module/udiskdetector.h \
qtsingleapplication/qtlocalpeer.h \
qtsingleapplication/qtlockedfile.h \
qtsingleapplication/qtsingleapplication.h \
xatom-helper.h
SOURCES += \
../backup-daemon/parsebackuplist.cpp \
../common/mydefine.cpp \
../common/mylittleparse.cpp \
../common/utils.cpp \
backup_manager_interface.cpp \
component/circlelabel.cpp \
component/clicklabel.cpp \
component/hoverwidget.cpp \
component/imageutil.cpp \
component/linelabel.cpp \
component/myiconbutton.cpp \
component/myiconlabel.cpp \
component/mylabel.cpp \
component/mylineedit.cpp \
component/mypushbutton.cpp \
component/ringsprogressbar.cpp \
functypeconverter.cpp \
gsettingswrapper.cpp \
leftsiderbarwidget.cpp \
main.cpp \
maindialog.cpp \
module/systembackup.cpp \
module/systemrestore.cpp \
module/udiskdetector.cpp \
qtsingleapplication/qtlocalpeer.cpp \
qtsingleapplication/qtlockedfile.cpp \
qtsingleapplication/qtlockedfile_unix.cpp \
qtsingleapplication/qtsingleapplication.cpp \
xatom-helper.cpp
FORMS += \
maindialog.ui
TRANSLATIONS += qt_zh_CN.ts
# !system(lrelease qt_zh_CN.ts): error("Failed to generate qm")
# system(cp qt_zh_CN.qm images)
RESOURCES += \
app.qrc
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target