-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcute-light-text-previewer.pro
68 lines (58 loc) · 2.06 KB
/
cute-light-text-previewer.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
QT += core gui printsupport network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
TARGET=text-previewer
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS WITH_DARKSTYLE
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
aboutdialog.cpp \
gtranslatedialog.cpp \
gtranslator.cpp \
main.cpp \
viewer_mainwin.cpp
HEADERS += \
aboutdialog.h \
defines.h \
gtranslatedialog.h \
gtranslator.h \
viewer_mainwin.h
FORMS += \
aboutdialog.ui \
gtranslatedialog.ui \
viewer_mainwin.ui
RESOURCES += \
files.qrc \
icons.qrc \
theme.qrc \
translations.qrc
TRANSLATIONS = \
translations/text-previewer_ja_JP.ts
#LUPDATE = $$[QT_INSTALL_BINS]/lupdate -locations absolute -no-obsolete
LRELEASE = $$QMAKE_LRELEASE
isEmpty(LRELEASE):LRELEASE = $$[QT_INSTALL_BINS]/lrelease
#lupdate.commands = $$LUPDATE -ts $$TRANSLATIONS
#QMAKE_EXTRA_TARGETS += lupdate
updateqm.input = TRANSLATIONS
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
isEmpty(vcproj):updateqm.variable_out = PRE_TARGETDEPS
updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
updateqm.name = LRELEASE ${QMAKE_FILE_IN}
updateqm.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += updateqm
unix{
isEmpty(PREFIX): PREFIX = /usr/local
DATADIR = $$PREFIX/share
desktop.path = $$DATADIR/applications
target.path = $$PREFIX/bin
message(Binary: $$PREFIX/bin)
desktop.files = cute-light-text-previewer.desktop
message(Data Directory: $$PREFIX/share)
INSTALLS += desktop target
}