-
Notifications
You must be signed in to change notification settings - Fork 6
/
kylin-calculator.pro
executable file
·141 lines (117 loc) · 3.88 KB
/
kylin-calculator.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
QT += \
core \
gui \
network \
KWindowSystem \
# 适配窗口管理器圆角阴影
KWindowSystem \
dbus \
x11extras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
# 适配窗口管理器圆角阴影
LIBS += -lpthread
LIBS += -lX11
# 配置gsettings
CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt
# v10禁用窗管
lessThan(QT_MAJOR_VERSION, 5) | lessThan(QT_MINOR_VERSION, 9) {
# message("QT_VERSION ("$$QT_VERSION")")
DEFINES += __V10__
QT -= x11extras
LIBS -= -lpthread
LIBS -= -lX11
}
CONFIG += \
c++11 \
link_pkgconfig
PKGCONFIG += \
gsl
LIBS += -L/usr/lib/libukui-log4qt.so.1.0.0 -lukui-log4qt
TARGET = kylin-calculator
# 生成qm文件
message($$system(./translations/generate_translations_qm.sh))
# translations
TRANSLATIONS += $$PWD/translations/kylin-calculator_zh_CN.ts
QM_FILES_INSTALL_PATH = /usr/share/kylin-calculator/translations/
CONFIG += lrelease
#BEFORE_LINK_CMD_LINE = echo Hello world!
#QMAKE_PRE_LINK += $$quote($$BEFORE_LINK_CMD_LINE)
target.path += /usr/bin
target.source += $$TARGET
# gsettings
schemes.files += \
$$PWD/data/org.kylin-calculator-data.gschema.xml \
$$PWD/data/org.ukui.log4qt.kylin-calculator.gschema.xml
schemes.path = /usr/share/glib-2.0/schemas/
# icon.path = /usr/share/pixmaps
# icon.files += $$PWD/image/calc.png
desktop.path = /usr/share/applications/
desktop.files += $$PWD/kylin-calculator.desktop
translationsFiles.path = /usr/share/kylin-calculator/translations/
translationsFiles.files += $$PWD/translations/*.qm
INSTALLS += \
target \
# icon \
desktop \
schemes \
translationsFiles
#TEMPLATE = app
RESOURCES += \
image.qrc
INCLUDEPATH += \
$$PWD/src/ \
$$PWD/src/menumodule/ \
$$PWD/common/ \
$$PWD/calculate/ \
$$PWD/calculate/BigFloat/ \
$$PWD/calculate/input/ \
$$PWD/calculate/cal/
SOURCES += \
# common
$$PWD/common/InputSymbols.cpp \
$$PWD/common/xatom-helper.cpp \
$$PWD/common/daemonipcdbus.cpp \
$$PWD/common/dbusadaptor.cpp \
# calculate
$$PWD/calculate/BigFloat/BigFloat.cpp \
$$PWD/calculate/cal/QStringCalculator.cpp \
$$PWD/calculate/input/InputJudgmentGraph.cpp \
$$PWD/calculate/input/InputTools.cpp \
$$PWD/calculate/input/InputProcess.cpp \
# src
$$PWD/src/mainwindow.cpp \
$$PWD/src/titlebar.cpp \
$$PWD/src/widgetstyle.cpp \
$$PWD/src/funclist.cpp \
$$PWD/src/standardmodel.cpp \
$$PWD/src/scientificmodel.cpp \
$$PWD/src/toolmodel.cpp \
$$PWD/src/basicbutton.cpp \
$$PWD/src/menumodule/menumodule.cpp \
# pwd
$$PWD/main.cpp
HEADERS += \
# common
$$PWD/common/InputSymbols.h \
$$PWD/common/xatom-helper.h \
$$PWD/common/highlight-effect.h \
$$PWD/common/daemonipcdbus.h \
$$PWD/common/dbusadaptor.h \
# calculate
$$PWD/calculate/cal.h \
$$PWD/calculate/BigFloat/BigFloat.h \
$$PWD/calculate/cal/QStringCalculator.h \
$$PWD/calculate/input/InputJudgmentGraph.h \
$$PWD/calculate/input/InputTools.h \
$$PWD/calculate/input/InputProcess.h \
# src
$$PWD/src/mainwindow.h \
$$PWD/src/titlebar.h \
$$PWD/src/widgetstyle.h \
$$PWD/src/scientificmodel.h \
$$PWD/src/funclist.h \
$$PWD/src/standardmodel.h \
$$PWD/src/toolmodel.h \
$$PWD/src/basicbutton.h \
$$PWD/src/menumodule/menumodule.h