forked from ukui/ukui-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ukui-menu.pro
125 lines (109 loc) · 4.21 KB
/
ukui-menu.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#-------------------------------------------------
#
# ukui-menu
#
#-------------------------------------------------
QT += core gui svg dbus x11extras KWindowSystem
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
include(src/QtSingleApplication/qtsingleapplication.pri)
QMAKE_CXXFLAGS += -g
TARGET = ukui-menu
TEMPLATE = app
target.path = /usr/bin
TRANSLATIONS+=\
translations/ukui-menu_bo.ts \
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}\\"'
SOURCES += \
src/CommonUseWidget/commonusewidget.cpp \
src/CommonUseWidget/fullcommonusewidget.cpp \
src/FunctionWidget/fullfunctionwidget.cpp \
src/FunctionWidget/functionbuttonwidget.cpp \
src/FunctionWidget/functionwidget.cpp \
src/LetterWidget/fullletterwidget.cpp \
src/LetterWidget/letterbuttonwidget.cpp \
src/LetterWidget/letterwidget.cpp \
src/MainViewWidget/directorychangedthread.cpp \
src/MainViewWidget/mainviewwidget.cpp \
src/MainWindow/mainwindow.cpp \
src/RightClickMenu/rightclickmenu.cpp \
src/SearchResultWidget/fullsearchresultwidget.cpp \
src/SearchResultWidget/searchappthread.cpp \
src/SearchResultWidget/searchresultwidget.cpp \
src/SideBarWidget/sidebarwidget.cpp \
src/Style/style.cpp \
src/UtilityFunction/classifyscrollarea.cpp \
src/UtilityFunction/fullitemdelegate.cpp \
src/UtilityFunction/fulllistview.cpp \
src/UtilityFunction/functionclassifybutton.cpp \
src/UtilityFunction/itemdelegate.cpp \
src/UtilityFunction/letterclassifybutton.cpp \
src/UtilityFunction/listview.cpp \
src/UtilityFunction/pushbutton.cpp \
src/UtilityFunction/scrollarea.cpp \
src/UtilityFunction/toolbutton.cpp \
src/Interface/ukuichineseletter.cpp \
src/Interface/ukuimenuinterface.cpp \
main.cpp \
src/UtilityFunction/utility.cpp \
src/XEventMonitor/xeventmonitor.cpp
HEADERS += \
src/CommonUseWidget/commonusewidget.h \
src/CommonUseWidget/fullcommonusewidget.h \
src/FunctionWidget/fullfunctionwidget.h \
src/FunctionWidget/functionbuttonwidget.h \
src/FunctionWidget/functionwidget.h \
src/LetterWidget/fullletterwidget.h \
src/LetterWidget/letterbuttonwidget.h \
src/LetterWidget/letterwidget.h \
src/MainViewWidget/directorychangedthread.h \
src/MainViewWidget/mainviewwidget.h \
src/MainWindow/mainwindow.h \
src/RightClickMenu/rightclickmenu.h \
src/SearchResultWidget/fullsearchresultwidget.h \
src/SearchResultWidget/searchappthread.h \
src/SearchResultWidget/searchresultwidget.h \
src/SideBarWidget/sidebarwidget.h \
src/Style/style.h \
src/UtilityFunction/classifyscrollarea.h \
src/UtilityFunction/fullitemdelegate.h \
src/UtilityFunction/fulllistview.h \
src/UtilityFunction/functionclassifybutton.h \
src/UtilityFunction/itemdelegate.h \
src/UtilityFunction/letterclassifybutton.h \
src/UtilityFunction/listview.h \
src/UtilityFunction/pushbutton.h \
src/UtilityFunction/scrollarea.h \
src/UtilityFunction/toolbutton.h \
src/Interface/ukuichineseletter.h \
src/Interface/ukuimenuinterface.h \
src/UtilityFunction/utility.h \
src/XEventMonitor/xeventmonitor.h
RESOURCES += \
res.qrc
PKGCONFIG+=glib-2.0 gio-unix-2.0 gsettings-qt libbamf3 x11 xrandr xtst
CONFIG += no_keywords link_pkgconfig
desktop_file.files = ukui-menu.desktop
desktop_file.path = /etc/xdg/autostart
INSTALLS += \
target desktop_file