yhkylin-backup-tools/kybackup/kybackup.pro

145 lines
4.0 KiB
Prolog
Raw Normal View History

2021-09-16 16:05:46 +08:00
QT += core gui svg
2021-10-26 09:24:05 +08:00
QT += dbus xml
2021-09-16 16:05:46 +08:00
QT += network
# 适配窗口管理器圆角阴影
QT += KWindowSystem x11extras
2021-08-06 10:20:03 +08:00
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
2021-09-16 16:05:46 +08:00
# 适配窗口管理器圆角阴影
LIBS +=-lpthread
LIBS +=-lX11
# 配置gsettings
CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt
2021-08-06 10:20:03 +08:00
# 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 += \
2021-10-26 09:24:05 +08:00
../backup-daemon/parsebackuplist.h \
2021-09-16 16:05:46 +08:00
../common/mydefine.h \
../common/mylittleparse.h \
2021-10-26 09:24:05 +08:00
../common/singleton.h \
../common/spinlock_mutex.h \
2021-09-16 16:05:46 +08:00
../common/utils.h \
2022-01-28 12:06:03 +08:00
aboutdialog.h \
2021-08-06 10:20:03 +08:00
backup_manager_interface.h \
2021-12-01 15:12:38 +08:00
backuppointlistdialog.h \
2021-12-26 18:15:21 +08:00
component/backuplistwidget.h \
2021-10-13 16:31:58 +08:00
component/circlelabel.h \
2021-09-16 16:05:46 +08:00
component/clicklabel.h \
component/hoverwidget.h \
2021-09-23 11:21:58 +08:00
component/imageutil.h \
2021-10-13 16:31:58 +08:00
component/linelabel.h \
2021-12-01 15:12:38 +08:00
component/mycheckbox.h \
2021-12-26 18:15:21 +08:00
component/myfileselect.h \
2021-09-16 16:05:46 +08:00
component/myiconbutton.h \
component/myiconlabel.h \
2021-10-13 16:31:58 +08:00
component/mylabel.h \
2021-10-26 09:24:05 +08:00
component/mylineedit.h \
component/mypushbutton.h \
2022-02-15 16:51:03 +08:00
component/mywidget.h \
2021-10-26 09:24:05 +08:00
component/ringsprogressbar.h \
2021-12-06 14:55:00 +08:00
deletebackupdialog.h \
2021-09-16 16:05:46 +08:00
functypeconverter.h \
2021-10-26 09:24:05 +08:00
globalbackupinfo.h \
2021-11-17 13:23:38 +08:00
globalsignals.h \
2021-09-16 16:05:46 +08:00
gsettingswrapper.h \
leftsiderbarwidget.h \
maindialog.h \
2021-12-01 15:12:38 +08:00
messageboxutils.h \
2021-12-26 18:15:21 +08:00
module/databackup.h \
2021-12-28 16:51:35 +08:00
module/datarestore.h \
2022-01-13 14:06:40 +08:00
module/ghostimage.h \
2021-12-06 14:55:00 +08:00
module/managebackuppointlist.h \
2021-12-30 10:27:03 +08:00
module/operationlog.h \
2021-12-06 14:55:00 +08:00
module/selectrestorepoint.h \
2021-09-16 16:05:46 +08:00
module/systembackup.h \
2021-11-17 13:23:38 +08:00
module/systemrestore.h \
2021-10-13 16:31:58 +08:00
module/udiskdetector.h \
2021-09-16 16:05:46 +08:00
qtsingleapplication/qtlocalpeer.h \
qtsingleapplication/qtlockedfile.h \
qtsingleapplication/qtsingleapplication.h \
xatom-helper.h
2021-08-06 10:20:03 +08:00
SOURCES += \
2021-10-26 09:24:05 +08:00
../backup-daemon/parsebackuplist.cpp \
2021-09-16 16:05:46 +08:00
../common/mydefine.cpp \
../common/mylittleparse.cpp \
../common/utils.cpp \
2022-01-28 12:06:03 +08:00
aboutdialog.cpp \
2021-08-06 10:20:03 +08:00
backup_manager_interface.cpp \
2021-12-01 15:12:38 +08:00
backuppointlistdialog.cpp \
2021-12-26 18:15:21 +08:00
component/backuplistwidget.cpp \
2021-10-13 16:31:58 +08:00
component/circlelabel.cpp \
2021-09-16 16:05:46 +08:00
component/clicklabel.cpp \
component/hoverwidget.cpp \
2021-09-23 11:21:58 +08:00
component/imageutil.cpp \
2021-10-13 16:31:58 +08:00
component/linelabel.cpp \
2021-12-01 15:12:38 +08:00
component/mycheckbox.cpp \
2021-12-26 18:15:21 +08:00
component/myfileselect.cpp \
2021-09-16 16:05:46 +08:00
component/myiconbutton.cpp \
component/myiconlabel.cpp \
2021-10-13 16:31:58 +08:00
component/mylabel.cpp \
2021-10-26 09:24:05 +08:00
component/mylineedit.cpp \
component/mypushbutton.cpp \
2022-02-15 16:51:03 +08:00
component/mywidget.cpp \
2021-10-26 09:24:05 +08:00
component/ringsprogressbar.cpp \
2021-12-06 14:55:00 +08:00
deletebackupdialog.cpp \
2021-09-16 16:05:46 +08:00
functypeconverter.cpp \
gsettingswrapper.cpp \
leftsiderbarwidget.cpp \
2021-08-06 10:20:03 +08:00
main.cpp \
2021-09-16 16:05:46 +08:00
maindialog.cpp \
2021-12-01 15:12:38 +08:00
messageboxutils.cpp \
2021-12-26 18:15:21 +08:00
module/databackup.cpp \
2021-12-28 16:51:35 +08:00
module/datarestore.cpp \
2022-01-13 14:06:40 +08:00
module/ghostimage.cpp \
2021-12-06 14:55:00 +08:00
module/managebackuppointlist.cpp \
2021-12-30 10:27:03 +08:00
module/operationlog.cpp \
2021-12-06 14:55:00 +08:00
module/selectrestorepoint.cpp \
2021-09-16 16:05:46 +08:00
module/systembackup.cpp \
2021-11-17 13:23:38 +08:00
module/systemrestore.cpp \
2021-10-13 16:31:58 +08:00
module/udiskdetector.cpp \
2021-09-16 16:05:46 +08:00
qtsingleapplication/qtlocalpeer.cpp \
qtsingleapplication/qtlockedfile.cpp \
qtsingleapplication/qtlockedfile_unix.cpp \
qtsingleapplication/qtsingleapplication.cpp \
xatom-helper.cpp
2021-08-06 10:20:03 +08:00
FORMS += \
2022-01-28 12:06:03 +08:00
aboutdialog.ui \
2021-12-01 15:12:38 +08:00
backuppointlistdialog.ui \
2021-12-06 14:55:00 +08:00
deletebackupdialog.ui \
2021-08-06 10:20:03 +08:00
maindialog.ui
2022-02-11 13:48:46 +08:00
OTHER_FILES +=
2021-09-16 16:05:46 +08:00
TRANSLATIONS += qt_zh_CN.ts
2022-02-16 17:56:25 +08:00
system(rm -f qt_zh_CN.qm)
2022-02-11 13:48:46 +08:00
!system(lrelease qt_zh_CN.ts): error("Failed to generate qm")
2022-02-22 15:25:28 +08:00
system(cp qt_zh_CN.qm resource/language/)
2021-09-16 16:05:46 +08:00
RESOURCES += \
app.qrc
2021-08-06 10:20:03 +08:00
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target