2023-04-21 17:39:31 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2018-10-19T15:29:47
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core gui x11extras dbus KWindowSystem svg concurrent network
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
TARGET = kylin-vpn
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
CONFIG += c++14 qt warn_on link_pkgconfig no_keywords
|
|
|
|
#CONFIG += release
|
|
|
|
|
|
|
|
PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 libnm libnma libsecret-1 gtk+-3.0 gsettings-qt libcap kysdk-qtwidgets kysdk-waylandhelper
|
2024-01-24 14:59:31 +08:00
|
|
|
|
|
|
|
exists(/usr/include/kysdk/kysdk-system/libkysysinfo.h) {
|
|
|
|
DEFINES += KY_SDK_SYSINFO
|
|
|
|
PKGCONFIG += kysdk-sysinfo
|
|
|
|
}
|
2023-04-21 17:39:31 +08:00
|
|
|
|
|
|
|
INCLUDEPATH += /usr/include/KF5/NetworkManagerQt
|
|
|
|
|
|
|
|
LIBS += -L/usr/lib/ -lgsettings-qt -lX11 -lKF5NetworkManagerQt -lukui-log4qt
|
|
|
|
#LIBS += -lkysec
|
|
|
|
|
|
|
|
target.path = /usr/bin
|
|
|
|
target.source += $$TARGET
|
|
|
|
desktop.path = /etc/xdg/autostart/
|
|
|
|
desktop.files = kylin-vpn.desktop
|
|
|
|
gschema.files = org.ukui.kylin-vpn.switch.gschema.xml
|
|
|
|
gschema.path = /usr/share/glib-2.0/schemas/
|
2023-04-21 18:04:25 +08:00
|
|
|
qm_files.path = $${PREFIX}/share/kylin-nm/kylin-vpn/
|
|
|
|
qm_files.files = translations/*.qm
|
2023-04-21 17:39:31 +08:00
|
|
|
|
|
|
|
INSTALLS += target \
|
|
|
|
desktop \
|
|
|
|
gschema \
|
2023-04-21 18:04:25 +08:00
|
|
|
qm_files \
|
2023-04-21 17:39:31 +08:00
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which has been marked as 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 you use 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
|
|
|
|
|
|
|
|
# QMAKE_CXXFLAGS += -Wno-unused-parameter
|
|
|
|
QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
|
|
|
|
QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
|
|
|
|
QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
|
|
|
|
QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
|
|
|
|
|
|
|
|
include(singleapplication/qt-single-application.pri)
|
|
|
|
include(backend/backend.pri)
|
|
|
|
include(frontend/frontend.pri)
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp
|
|
|
|
|
|
|
|
unix {
|
|
|
|
UI_DIR = .ui
|
|
|
|
MOC_DIR = .moc
|
|
|
|
OBJECTS_DIR = .obj
|
|
|
|
}
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
org.ukui.kylin-vpn.switch.gschema.xml
|
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
translations/kylin-vpn_zh_CN.ts \
|
2023-07-14 10:23:41 +08:00
|
|
|
translations/kylin-vpn_bo_CN.ts \
|
|
|
|
translations/kylin-vpn_mn.ts
|
2023-04-21 17:39:31 +08:00
|
|
|
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
!system($$PWD/translate_generation.sh): error("Failed to generate translation")
|
|
|
|
}
|