2022-12-08 14:00:51 +08:00
|
|
|
|
#include(../../../env.pri)
|
|
|
|
|
|
|
|
|
|
QT += widgets dbus
|
|
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
CONFIG += plugin
|
|
|
|
|
|
|
|
|
|
TARGET = $$qtLibraryTarget(proxy)
|
|
|
|
|
DESTDIR = ../..
|
2023-04-21 14:39:22 +08:00
|
|
|
|
|
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
|
!system($$PWD/translate_generation.sh): error("Failed to generate translation")
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-08 14:00:51 +08:00
|
|
|
|
target.path = $$[QT_INSTALL_LIBS]/ukui-control-center
|
|
|
|
|
trans.files = translations/*
|
|
|
|
|
trans.path = /usr/share/kylin-nm/proxy/
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
|
$$PROJECT_COMPONENTSOURCE \
|
|
|
|
|
$$PROJECT_ROOTDIR \
|
|
|
|
|
/usr/include/ukcc/interface \
|
|
|
|
|
/usr/include/ukcc/widgets
|
|
|
|
|
|
|
|
|
|
LIBS += -L$$[QT_INSTALL_LIBS] -lgsettings-qt -lukcc
|
|
|
|
|
|
|
|
|
|
##加载gio库和gio-unix库,用于获取和设置enum类型的gsettings
|
|
|
|
|
CONFIG += link_pkgconfig \
|
|
|
|
|
C++11
|
|
|
|
|
PKGCONFIG += gio-2.0 \
|
|
|
|
|
gio-unix-2.0 \
|
|
|
|
|
gsettings-qt \
|
|
|
|
|
kysdk-qtwidgets
|
|
|
|
|
|
|
|
|
|
#DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
applistwidget.cpp \
|
|
|
|
|
aptproxydialog.cpp \
|
|
|
|
|
proxy.cpp
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
applistwidget.h \
|
|
|
|
|
aptinfo.h \
|
|
|
|
|
aptproxydialog.h \
|
|
|
|
|
proxy.h \
|
|
|
|
|
certificationdialog.h
|
|
|
|
|
|
|
|
|
|
FORMS +=
|
|
|
|
|
|
|
|
|
|
INSTALLS += target \
|
|
|
|
|
trans
|
|
|
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
|
translations/zh_CN.ts \
|
|
|
|
|
translations/tr.ts \
|
2023-05-10 13:47:26 +08:00
|
|
|
|
translations/bo_CN.ts \
|
2023-07-14 10:23:41 +08:00
|
|
|
|
translations/en_US.ts \
|
|
|
|
|
translations/mn.ts
|
2023-05-10 13:47:26 +08:00
|
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
|
translations/en_US.ts
|