forked from proton/zNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
znotes.pro
148 lines (136 loc) · 3.55 KB
/
znotes.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
141
142
143
144
145
146
147
148
# -------------------------------------------------
# Project created by QtCreator 2009-09-20T17:20:55
# -------------------------------------------------
TARGET = znotes
VERSION = "0.4.7"
QT += core network
if(greaterThan(QT_MAJOR_VERSION, 4)) {
QT += widgets printsupport
} else {
QT += gui
}
TEMPLATE = app
OBJECTS_DIR = build
UI_DIR = build
MOC_DIR = build
RCC_DIR = build
SOURCES += main.cpp \
mainwindow.cpp \
configdialog.cpp \
settings.cpp \
note.cpp \
scriptmodel.cpp \
aboutDialog.cpp \
toolbarmodel.cpp \
highlighter.cpp \
textedit.cpp \
notelist.cpp \
notecreatewidget.cpp \
notetype.cpp \
notecreatebutton.cpp \
highlightrulemodel.cpp \
single_inst/qtlockedfile_win.cpp \
single_inst/qtlockedfile_unix.cpp \
single_inst/qtlockedfile.cpp \
single_inst/qtlocalpeer.cpp \
single_inst/qtsingleapplication.cpp \
ztabwidget.cpp \
ztabbar.cpp \
shared.cpp \
todonote.cpp \
textnote.cpp \
picturenote.cpp \
htmlnote.cpp \
zapplication.cpp
HEADERS += mainwindow.h \
configdialog.h \
settings.h \
note.h \
scriptmodel.h \
aboutDialog.h \
toolbaraction.h \
toolbarmodel.h \
highlighter.h \
textedit.h \
notelist.h \
notecreatewidget.h \
notetype.h \
notecreatebutton.h \
highlightrulemodel.h \
single_inst/qtlockedfile.h \
single_inst/qtlocalpeer.h \
single_inst/qtsingleapplication.h \
ztabwidget.h \
ztabbar.h \
shared.h \
textnote.h \
htmlnote.h \
picturenote.h \
todonote.h \
zapplication.h
FORMS += mainwindow.ui \
configdialog.ui \
aboutDialog.ui \
notecreatewidget.ui
TRANSLATIONS += translations/znotes_ru.ts \
translations/znotes_cs.ts \
translations/znotes_pl.ts \
translations/znotes_pt_BR.ts \
translations/znotes_uk.ts \
translations/znotes_sk.ts \
translations/znotes_es.ts \
translations/znotes_de.ts \
translations/znotes_en.ts \
translations/znotes_sv.ts
# For Qt translation files only qm-files compiling. No lupdate.
QT_TRANSLATIONS += translations/qt_ru.ts \
translations/qt_cs.ts \
translations/qt_pl.ts \
translations/qt_pt.ts \
translations/qt_uk.ts \
translations/qt_sk.ts \
translations/qt_es.ts \
translations/qt_de.ts \
translations/qt_sv.ts
RESOURCES += znotes.qrc
!without_todo_format {
QT += xml
DEFINES += NOTE_TODO_FORMAT
SOURCES += \
todomodel.cpp
HEADERS += \
todomodel.h
}
# This makes qmake generate translations
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
TSQM.name = $$QMAKE_LRELEASE \
${QMAKE_FILE_IN}
TSQM.input = TRANSLATIONS QT_TRANSLATIONS
TSQM.output = ${QMAKE_FILE_BASE}.qm
TSQM.commands = $$QMAKE_LRELEASE \
${QMAKE_FILE_IN}
TSQM.CONFIG = no_link
QMAKE_EXTRA_COMPILERS += TSQM
PRE_TARGETDEPS += compiler_TSQM_make_all
!os2:DEFINES += VERSION=\\\"$$VERSION\\\"
unix {
PREFIX = $$(PREFIX)
isEmpty( PREFIX ):PREFIX = /usr
DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/znotes/\\\"
target.path = $$PREFIX/bin/
locale.path = $$PREFIX/share/znotes/translations/
locale.files = translations/*.qm
pixmap.path = /usr/share/pixmaps
pixmap.files = *.png
desktop.path = /usr/share/applications
desktop.files = *.desktop
INSTALLS += target \
locale \
pixmap \
desktop
}
os2 {
DEFINES += VERSION=\'\"$$VERSION\"\'
RC_FILE = znotes_os2.rc
}
win32:RC_FILE = znotes.rc