QT += core gui network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ aboutwindow.cpp \ aptpkginfo.cpp \ kernelinformation.cpp \ kernelinformationdialog.cpp \ kernelinstaller.cpp \ main.cpp \ mainwindow.cpp \ programinfo.cpp HEADERS += \ aboutwindow.h \ aptpkginfo.h \ kernelinformation.h \ kernelinformationdialog.h \ kernelinstaller.h \ mainwindow.h \ programinfo.h FORMS += \ aboutwindow.ui \ kernelinformationdialog.ui \ kernelinstaller.ui \ mainwindow.ui # 更新翻译 system(lrelease translation/gxde-kernel-manager_zh_CN.ts translation/gxde-kernel-manager_zh_CN.qm) # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target unix:!macx: LIBS += -lqtermwidget5 aptsource.path = /etc/apt/sources.list.d/ aptsource.files = $$PWD/AptSources/gxde-kernel-manager.list aptsourcegpg.path = /etc/apt/trusted.gpg.d/ aptsourcegpg.files = $$PWD/AptSources/gxde-kernel-manager.gpg debiandesktop.path = /usr/share/applications/ debiandesktop.files = $$PWD/gxde-kernel-manager.desktop uosdesktop.path = /opt/apps/gxde-kernel-manager/entries/applications uosdesktop.files = $$PWD/gxde-kernel-manager.desktop icon.path = /opt/apps/gxde-kernel-manager/ icon.files = $$PWD/icon/icon.svg targetrunner.path = /opt/apps/gxde-kernel-manager/ targetrunner.files = $$PWD/gxde-kernel-manager-runner.sh #libinclude.path = /opt/apps/gxde-kernel-manager/ #libinclude.files = $$PWD/lib target.path = /opt/apps/gxde-kernel-manager/ INSTALLS += aptsourcegpg aptsource target debiandesktop uosdesktop icon targetrunner TRANSLATIONS += translation/gxde-kernel-manager_zh_CN.ts RESOURCES += \ Resource.qrc