-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmere-lock.pro
More file actions
115 lines (91 loc) · 2.25 KB
/
Copy pathmere-lock.pro
File metadata and controls
115 lines (91 loc) · 2.25 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
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
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = mere-lock
VERSION = 0.0.1b
TEMPLATE= app
CONFIG += c++11
#CONFIG += debug_and_release
DEFINES += APP_CODE=\\\"lock\\\"
DEFINES += APP_NAME=\\\"$$TARGET\\\"
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
SOURCES += \
src/config.cpp \
src/locker.cpp \
src/lockscreen.cpp \
src/main.cpp \
src/lockapp.cpp \
src/prompt.cpp \
src/screenlocker.cpp \
src/screenunlocker.cpp \
src/secret.cpp \
src/systemlocker.cpp \
src/ticker.cpp \
src/unlocker.cpp \
src/unlockprompt.cpp \
src/waitbar.cpp
HEADERS += \
src/config.h \
src/lockapp.h \
src/locker.h \
src/lockscreen.h \
src/prompt.h \
src/screenlocker.h \
src/screenunlocker.h \
src/secret.h \
src/systemlocker.h \
src/ticker.h \
src/unlocker.h \
src/unlockprompt.h \
src/waitbar.h
RESOURCES += \
res/lock.qrc
DISTFILES += \
etc/lock.conf
share/mere-logo.png
share/freebsd-logo.png
TRANSLATIONS += \
i18n/lock_bn.ts \
i18n/lock_en.ts
OTHER_FILES += \
README.md
INCLUDEPATH += /usr/local/include
LIBS += -lX11
LIBS += -lmere-auth -lmere-config-lite -lmere-utils -lmere-widgets
##
## TS file(s)
##
#qtPrepareTool(LUPDATE, lupdate)
#command = $$LUPDATE mere-lock.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
{
pre.path = $${OUT_PWD}/build
pre.commands = echo pre-install > /dev/null
#pre.depends =
INSTALLS += pre
target.path = /usr/local/bin
i18n.path = /usr/local/share/mere/lock/i18n
i18n.files = i18n/*.qm
desktop.path = /usr/local/share/applications/
desktop.files = mere-lock.desktop
config.path = /usr/local/etc/mere/
config.files += etc/lock.conf
share.path = /usr/local/share/mere/lock/
share.files += share/mere-logo.png share/freebsd-logo.png
INSTALLS += config share i18n desktop target
!linux-g++ {
post.path = $${OUT_PWD}/build
post.commands = chmod u+s /usr/local/bin/mere-lock
#post.depends =
INSTALLS += post
}
}