-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmere-about.pro
More file actions
64 lines (49 loc) · 1.27 KB
/
mere-about.pro
File metadata and controls
64 lines (49 loc) · 1.27 KB
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
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = mere-about
VERSION = 0.0.1b
TEMPLATE= app
VERSION= 0.0.1
DEFINES += APP_CODE=\\\"about\\\"
DEFINES += APP_NAME=\\\"$$TARGET\\\"
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
SOURCES += \
src/main.cpp \
src/aboutapp.cpp \
src/aboutwin.cpp
HEADERS += \
src/aboutapp.h \
src/aboutwin.h
RESOURCES += \
res/about.qrc
INCLUDEPATH += /usr/local/include
LIBS += -lmere-utils -lmere-widgets
TRANSLATIONS += \
i18n/about_bn.ts \
i18n/about_en.ts
##
## TS file(s)
##
qtPrepareTool(LUPDATE, lupdate)
command = $$LUPDATE mere-about.pro
system($$command)|error("Failed to run: $$command")
#
# Generate QM file(s) from TS file(s)
#
qtPrepareTool(LRELEASE, lrelease)
command = $$LRELEASE -removeidentical i18n/*.ts
system($$command)|error("Failed to run: $$command")
#
# Install
#
unix{
target.path = /usr/local/bin/
# i18n.path = /usr/local/share/mere/mere-about/i18n/
i18n.path = /usr/local/share/mere/about/i18n
i18n.files = i18n/*.qm
desktop.path = /usr/local/share/applications/
desktop.files = mere-about.desktop
INSTALLS += target i18n desktop
}