forked from crow-translate/crow-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrow-translate.pro
209 lines (188 loc) · 7.34 KB
/
crow-translate.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
#-------------------------------------------------
#
# Project created by Shatur95 2018-01-03T03:19:41
#
#-------------------------------------------------
TARGET = crow
TEMPLATE = app
VERSION = 2.3.2
INCLUDEPATH = src
QT += core gui widgets
CONFIG += lrelease embed_translations
# Windows specific stuff
QMAKE_TARGET_COMPANY = Hennadii Chernyshchyk
QMAKE_TARGET_DESCRIPTION = Crow Translate
QMAKE_TARGET_COPYRIGHT = Copyright © 2018-2019 Hennadii Chernyshchyk
QMAKE_TARGET_PRODUCT = Crow Translate
RC_ICONS = dist\windows\icon.ico
include(src/qonlinetranslator/qonlinetranslator.pri)
include(src/third-party/qtaskbarcontrol/qtaskbarcontrol.pri)
include(src/third-party/singleapplication/singleapplication.pri)
include(src/third-party/qhotkey/qhotkey.pri)
DEFINES += \
QAPPLICATION_CLASS=QApplication \
QT_DEPRECATED_WARNINGS
SOURCES += \
src/addlangdialog.cpp \
src/cli.cpp \
src/langbuttongroup.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/popupwindow.cpp \
src/selection.cpp \
src/settings/appsettings.cpp \
src/settings/settingsdialog.cpp \
src/settings/shortcutsmodel/shortcutitem.cpp \
src/settings/shortcutsmodel/shortcutsmodel.cpp \
src/settings/shortcutsmodel/shortcutsview.cpp \
src/sourcetextedit.cpp \
src/speakbuttons.cpp \
src/transitions/languagedetectedtransition.cpp \
src/transitions/playerstoppedtransition.cpp \
src/transitions/retranslationtransition.cpp \
src/transitions/textemptytransition.cpp \
src/transitions/translatorabortedtransition.cpp \
src/transitions/translatorerrortransition.cpp \
src/translationedit.cpp \
src/trayicon.cpp
HEADERS += \
src/addlangdialog.h \
src/cli.h \
src/langbuttongroup.h \
src/mainwindow.h \
src/popupwindow.h \
src/selection.h \
src/settings/appsettings.h \
src/settings/settingsdialog.h \
src/settings/shortcutsmodel/shortcutitem.h \
src/settings/shortcutsmodel/shortcutsmodel.h \
src/settings/shortcutsmodel/shortcutsview.h \
src/sourcetextedit.h \
src/speakbuttons.h \
src/transitions/languagedetectedtransition.h \
src/transitions/playerstoppedtransition.h \
src/transitions/retranslationtransition.h \
src/transitions/textemptytransition.h \
src/transitions/translatorabortedtransition.h \
src/transitions/translatorerrortransition.h \
src/translationedit.h \
src/trayicon.h
FORMS += \
src/addlangdialog.ui \
src/mainwindow.ui \
src/speakbuttons.ui \
src/popupwindow.ui \
src/settings/settingsdialog.ui
RESOURCES += \
data/resources.qrc
TRANSLATIONS += \
data/translations/crow.ts \
data/translations/crow_es.ts \
data/translations/crow_fr_FR.ts \
data/translations/crow_ms_MY.ts \
data/translations/crow_pl.ts \
data/translations/crow_pt_BR.ts \
data/translations/crow_ru.ts \
data/translations/crow_tr.ts \
data/translations/crow_uk.ts \
data/translations/crow_zh_CN.ts
win32 {
SOURCES += \
src/updaterdialog.cpp
HEADERS += \
src/updaterdialog.h
FORMS += \
src/updaterdialog.ui
RESOURCES += \
data/windows-icons.qrc
include(src/qgittag/qgittag.pri)
}
unix {
CONFIG += dbus
target.path = /usr/bin
desktop.path = /usr/share/applications
desktop.files = dist/unix/generic/io.crow_translate.CrowTranslate.desktop
# App icons
icon16.path = /usr/share/icons/hicolor/16x16/apps/
icon16.files = dist/unix/generic/hicolor/16x16/apps/crow-translate.png
icon22.path = /usr/share/icons/hicolor/22x22/apps/
icon22.files = dist/unix/generic/hicolor/22x22/apps/crow-translate.png
icon24.path = /usr/share/icons/hicolor/24x24/apps/
icon24.files = dist/unix/generic/hicolor/24x24/apps/crow-translate.png
icon32.path = /usr/share/icons/hicolor/32x32/apps/
icon32.files = dist/unix/generic/hicolor/32x32/apps/crow-translate.png
icon36.path = /usr/share/icons/hicolor/36x36/apps/
icon36.files = dist/unix/generic/hicolor/36x36/apps/crow-translate.png
icon48.path = /usr/share/icons/hicolor/48x48/apps/
icon48.files = dist/unix/generic/hicolor/48x48/apps/crow-translate.png
icon64.path = /usr/share/icons/hicolor/64x64/apps/
icon64.files = dist/unix/generic/hicolor/64x64/apps/crow-translate.png
icon72.path = /usr/share/icons/hicolor/72x72/apps/
icon72.files = dist/unix/generic/hicolor/72x72/apps/crow-translate.png
icon96.path = /usr/share/icons/hicolor/96x96/apps/
icon96.files = dist/unix/generic/hicolor/96x96/apps/crow-translate.png
icon128.path = /usr/share/icons/hicolor/128x128/apps/
icon128.files = dist/unix/generic/hicolor/128x128/apps/crow-translate.png
icon192.path = /usr/share/icons/hicolor/192x192/apps/
icon192.files = dist/unix/generic/hicolor/192x192/apps/crow-translate.png
icon256.path = /usr/share/icons/hicolor/256x256/apps/
icon256.files = dist/unix/generic/hicolor/256x256/apps/crow-translate.png
iconScalable.path = /usr/share/icons/hicolor/scalable/apps/
iconScalable.files = dist/unix/generic/hicolor/scalable/apps/crow-translate.svg
# Status icons
statusIcons16.path = /usr/share/icons/hicolor/16x16/status/
statusIcons16.files = dist/unix/generic/hicolor/16x16/status/*
statusIcons22.path = /usr/share/icons/hicolor/22x22/status/
statusIcons22.files = dist/unix/generic/hicolor/22x22/status/*
statusIcons24.path = /usr/share/icons/hicolor/24x24/status/
statusIcons24.files = dist/unix/generic/hicolor/24x24/status/*
statusIcons32.path = /usr/share/icons/hicolor/32x32/status/
statusIcons32.files = dist/unix/generic/hicolor/32x32/status/*
statusIcons36.path = /usr/share/icons/hicolor/36x36/status/
statusIcons36.files = dist/unix/generic/hicolor/36x36/status/*
statusIcons48.path = /usr/share/icons/hicolor/48x48/status/
statusIcons48.files = dist/unix/generic/hicolor/48x48/status/*
statusIcons64.path = /usr/share/icons/hicolor/64x64/status/
statusIcons64.files = dist/unix/generic/hicolor/64x64/status/*
statusIcons72.path = /usr/share/icons/hicolor/72x72/status/
statusIcons72.files = dist/unix/generic/hicolor/72x72/status/*
statusIcons96.path = /usr/share/icons/hicolor/96x96/status/
statusIcons96.files = dist/unix/generic/hicolor/96x96/status/*
statusIcons128.path = /usr/share/icons/hicolor/128x128/status/
statusIcons128.files = dist/unix/generic/hicolor/128x128/status/*
statusIcons192.path = /usr/share/icons/hicolor/192x192/status/
statusIcons192.files = dist/unix/generic/hicolor/192x192/status/*
statusIcons256.path = /usr/share/icons/hicolor/256x256/status/
statusIcons256.files = dist/unix/generic/hicolor/256x256/status/*
statusIconsScalable.path = /usr/share/icons/hicolor/scalable/status/
statusIconsScalable.files = dist/unix/generic/hicolor/scalable/status/*
INSTALLS += \
target \
desktop \
icon16 \
icon22 \
icon24 \
icon32 \
icon36 \
icon48 \
icon64 \
icon72 \
icon96 \
icon128 \
icon192 \
icon256 \
iconScalable \
statusIcons16 \
statusIcons22 \
statusIcons24 \
statusIcons32 \
statusIcons36 \
statusIcons48 \
statusIcons64 \
statusIcons72 \
statusIcons96 \
statusIcons128 \
statusIcons192 \
statusIcons256 \
statusIconsScalable
}