2022-05-06 18:29:33 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# ukui-menu
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core gui svg dbus x11extras KWindowSystem sql
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
include(./src/BackProcess/backprocess.pri)
|
|
|
|
include(./src/QtSingleApplication/qtsingleapplication.pri)
|
|
|
|
include(./src/UserInterface/userinterface.pri)
|
|
|
|
include(./src/UtilityFunction/utilityfunction.pri)
|
|
|
|
QMAKE_CXXFLAGS += -g
|
|
|
|
|
|
|
|
TARGET = ukui-menu
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
target.path = /usr/bin
|
|
|
|
|
|
|
|
TRANSLATIONS+=\
|
2022-07-27 20:16:51 +08:00
|
|
|
translations/ukui-menu_bo_CN.ts \
|
2022-05-06 18:29:33 +08:00
|
|
|
translations/ukui-menu_zh_CN.ts \
|
|
|
|
translations/ukui-menu_tr.ts
|
|
|
|
|
|
|
|
QM_FILES_INSTALL_PATH = /usr/share/ukui-menu/translations/
|
|
|
|
|
|
|
|
# CONFIG += lrelase not work for qt5.6, add those from lrelease.prf for compatibility
|
|
|
|
qtPrepareTool(QMAKE_LRELEASE, lrelease)
|
|
|
|
lrelease.name = lrelease
|
|
|
|
lrelease.input = TRANSLATIONS
|
|
|
|
lrelease.output = ${QMAKE_FILE_IN_BASE}.qm
|
|
|
|
lrelease.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
|
|
|
|
lrelease.CONFIG = no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += lrelease
|
|
|
|
PRE_TARGETDEPS += compiler_lrelease_make_all
|
|
|
|
|
|
|
|
for (translation, TRANSLATIONS) {
|
|
|
|
translation = $$basename(translation)
|
|
|
|
QM_FILES += $$OUT_PWD/$$replace(translation, \\..*$, .qm)
|
|
|
|
}
|
|
|
|
qm_files.files = $$QM_FILES
|
|
|
|
qm_files.path = $$QM_FILES_INSTALL_PATH
|
|
|
|
qm_files.CONFIG = no_check_exist
|
|
|
|
INSTALLS += qm_files
|
|
|
|
|
|
|
|
# So we can access it from main.cpp
|
|
|
|
DEFINES += QM_FILES_INSTALL_PATH='\\"$${QM_FILES_INSTALL_PATH}\\"'
|
|
|
|
|
2022-06-20 09:49:56 +08:00
|
|
|
PKGCONFIG+=glib-2.0 gio-unix-2.0 gsettings-qt libbamf3 x11 xtst kysdk-waylandhelper
|
2022-05-06 18:29:33 +08:00
|
|
|
|
|
|
|
CONFIG += no_keywords link_pkgconfig
|
|
|
|
|
2022-07-12 14:56:21 +08:00
|
|
|
LIBS+=-pthread -luchardet -lukui-log4qt -lukui-com4c -lukui-com4cxx -lpeony
|
2022-05-06 18:29:33 +08:00
|
|
|
|
|
|
|
desktop_file.files = ukui-menu.desktop
|
|
|
|
desktop_file.path = /etc/xdg/autostart
|
|
|
|
|
|
|
|
INSTALLS += \
|
|
|
|
target desktop_file
|
|
|
|
|
|
|
|
FORMS +=
|
|
|
|
|
|
|
|
SOURCES += \
|
2022-06-20 09:49:56 +08:00
|
|
|
main.cpp \
|
2022-05-06 18:29:33 +08:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
res.qrc
|