-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathscreen_shot_recorder.pro
More file actions
49 lines (40 loc) · 1.2 KB
/
screen_shot_recorder.pro
File metadata and controls
49 lines (40 loc) · 1.2 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
TEMPLATE = subdirs
isEmpty(PREFIX){
PREFIX = /usr
}
SUBDIRS += \
src \
src/dde-dock-plugins \
src/pin_screenshots
translations.path = $$PREFIX/share/deepin-screen-recorder/translations
isEmpty(TRANSLATIONS) {
include(./translations.pri)
}
CONFIG += update_translations release_translations
QT6_LUPDATE = /usr/lib/qt6/bin/lupdate
QT6_LRELEASE = /usr/lib/qt6/bin/lrelease
DEFAULT_LUPDATE = lupdate
DEFAULT_LRELEASE = lrelease
versionAtLeast(QT_VERSION, 6.0.0) {
CONFIG(update_translations) {
isEmpty(lupdate):lupdate=$$QT6_LUPDATE
system($$lupdate -no-obsolete -locations none $$_PRO_FILE_)
}
CONFIG(release_translations) {
isEmpty(lrelease):lrelease=$$QT6_LRELEASE
system($$lrelease $$_PRO_FILE_)
}
} else {
CONFIG(update_translations) {
isEmpty(lupdate):lupdate=$$DEFAULT_LUPDATE
system($$lupdate -no-obsolete -locations none $$_PRO_FILE_)
}
CONFIG(release_translations) {
isEmpty(lrelease):lrelease=$$DEFAULT_LRELEASE
system($$lrelease $$_PRO_FILE_)
}
}
TRANSLATIONS_COMPILED = $$TRANSLATIONS
TRANSLATIONS_COMPILED ~= s/\.ts/.qm/g
translations.files = $$TRANSLATIONS_COMPILED
INSTALLS += translations