forked from flaviotordini/minitube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minitube.pro
261 lines (238 loc) · 6.79 KB
/
minitube.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
CONFIG += c++14 exceptions_off rtti_off optimize_full
TEMPLATE = app
VERSION = 3.2
DEFINES += APP_VERSION="$$VERSION"
APP_NAME = Minitube
DEFINES += APP_NAME="$$APP_NAME"
APP_UNIX_NAME = minitube
DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
DEFINES += APP_SNAPSHOT
message(Building $${APP_NAME} $${VERSION})
message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
DEFINES *= QT_NO_DEBUG_OUTPUT
DEFINES *= QT_USE_QSTRINGBUILDER
DEFINES *= QT_STRICT_ITERATORS
!contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
warning("You need to specify a Google API Key, refer to the README.md file for details")
}
TARGET = $${APP_UNIX_NAME}
QT += widgets network sql qml
include(lib/http/http.pri)
include(lib/idle/idle.pri)
DEFINES += MEDIA_MPV
include(lib/media/media.pri)
include(src/qtsingleapplication/qtsingleapplication.pri)
HEADERS += src/video.h \
src/spacer.h \
src/constants.h \
src/playlistitemdelegate.h \
src/videomimedata.h \
src/updatechecker.h \
src/searchparams.h \
src/minisplitter.h \
src/loadingwidget.h \
src/autocomplete.h \
src/videodefinition.h \
src/fontutils.h \
src/globalshortcuts.h \
src/globalshortcutbackend.h \
src/downloadmanager.h \
src/downloaditem.h \
src/downloadview.h \
src/downloadmodel.h \
src/downloadlistview.h \
src/downloadsettings.h \
src/suggester.h \
src/channelsuggest.h \
src/temporary.h \
src/segmentedcontrol.h \
src/playlistview.h \
src/refinesearchwidget.h \
src/refinesearchbutton.h \
src/sidebarwidget.h \
src/homeview.h \
src/aboutview.h \
src/mainwindow.h \
src/mediaview.h \
src/searchview.h \
src/view.h \
src/playlistmodel.h \
src/videosource.h \
src/ytsearch.h \
src/ytstandardfeed.h \
src/standardfeedsview.h \
src/ytregions.h \
src/ytcategories.h \
src/ytsuggester.h \
src/videosourcewidget.h \
src/regionsview.h \
src/ytsinglevideosource.h \
src/sidebarheader.h \
src/iconutils.h \
src/diskcache.h \
src/gridwidget.h \
src/painterutils.h \
src/database.h \
src/channelaggregator.h \
src/channelmodel.h \
src/aggregatevideosource.h \
src/channelview.h \
src/channelitemdelegate.h \
src/jsfunctions.h \
src/seekslider.h \
src/snapshotsettings.h \
src/snapshotpreview.h \
src/datautils.h \
src/yt3listparser.h \
src/ytchannel.h \
src/yt3.h \
src/paginatedvideosource.h \
src/searchwidget.h \
src/channellistview.h \
src/httputils.h \
src/appwidget.h \
src/clickablelabel.h \
src/ytvideo.h \
src/toolbarmenu.h \
src/sharetoolbar.h \
src/videoarea.h \
src/searchlineedit.h
SOURCES += src/main.cpp \
src/spacer.cpp \
src/video.cpp \
src/videomimedata.cpp \
src/updatechecker.cpp \
src/searchparams.cpp \
src/minisplitter.cpp \
src/loadingwidget.cpp \
src/autocomplete.cpp \
src/videodefinition.cpp \
src/constants.cpp \
src/fontutils.cpp \
src/globalshortcuts.cpp \
src/globalshortcutbackend.cpp \
src/downloadmanager.cpp \
src/downloaditem.cpp \
src/downloadview.cpp \
src/downloadmodel.cpp \
src/downloadlistview.cpp \
src/downloadsettings.cpp \
src/channelsuggest.cpp \
src/temporary.cpp \
src/segmentedcontrol.cpp \
src/playlistview.cpp \
src/refinesearchwidget.cpp \
src/refinesearchbutton.cpp \
src/sidebarwidget.cpp \
src/homeview.cpp \
src/mainwindow.cpp \
src/mediaview.cpp \
src/aboutview.cpp \
src/searchview.cpp \
src/playlistitemdelegate.cpp \
src/playlistmodel.cpp \
src/videosource.cpp \
src/ytsearch.cpp \
src/ytstandardfeed.cpp \
src/standardfeedsview.cpp \
src/ytregions.cpp \
src/ytcategories.cpp \
src/ytsuggester.cpp \
src/videosourcewidget.cpp \
src/regionsview.cpp \
src/ytsinglevideosource.cpp \
src/sidebarheader.cpp \
src/iconutils.cpp \
src/diskcache.cpp \
src/gridwidget.cpp \
src/painterutils.cpp \
src/database.cpp \
src/channelaggregator.cpp \
src/channelmodel.cpp \
src/aggregatevideosource.cpp \
src/channelview.cpp \
src/channelitemdelegate.cpp \
src/jsfunctions.cpp \
src/seekslider.cpp \
src/snapshotsettings.cpp \
src/snapshotpreview.cpp \
src/datautils.cpp \
src/yt3listparser.cpp \
src/ytchannel.cpp \
src/yt3.cpp \
src/paginatedvideosource.cpp \
src/channellistview.cpp \
src/httputils.cpp \
src/appwidget.cpp \
src/clickablelabel.cpp \
src/ytvideo.cpp \
src/toolbarmenu.cpp \
src/sharetoolbar.cpp \
src/videoarea.cpp \
src/searchlineedit.cpp
RESOURCES += resources.qrc
RESOURCES += $$files(icons/*.png, true)
DESTDIR = build/target/
OBJECTS_DIR = build/obj/
MOC_DIR = build/moc/
RCC_DIR = build/rcc/
# Tell Qt Linguist that we use UTF-8 strings in our sources
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
include(locale/locale.pri)
# deploy
DISTFILES += CHANGES COPYING
unix:!mac {
DEFINES += APP_LINUX
QT += dbus
HEADERS += src/gnomeglobalshortcutbackend.h
SOURCES += src/gnomeglobalshortcutbackend.cpp
isEmpty(PREFIX):PREFIX = /usr
BINDIR = $$PREFIX/bin
INSTALLS += target
target.path = $$BINDIR
DATADIR = $$PREFIX/share
PKGDATADIR = $$DATADIR/minitube
DEFINES += DATADIR=\\\"$$DATADIR\\\" \
PKGDATADIR=\\\"$$PKGDATADIR\\\"
INSTALLS += translations \
sounds \
desktop \
appdata \
iconsvg \
icon16 \
icon22 \
icon32 \
icon48 \
icon64 \
icon128 \
icon256 \
icon512
translations.path = $$PKGDATADIR
translations.files += $$DESTDIR/locale
sounds.path = $$PKGDATADIR
sounds.files += sounds/
desktop.path = $$DATADIR/applications
desktop.files += minitube.desktop
appdata.path = $$DATADIR/appdata
appdata.files += minitube.appdata.xml
iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
iconsvg.files += data/minitube.svg
icon16.path = $$DATADIR/icons/hicolor/16x16/apps
icon16.files += data/16x16/minitube.png
icon22.path = $$DATADIR/icons/hicolor/22x22/apps
icon22.files += data/22x22/minitube.png
icon32.path = $$DATADIR/icons/hicolor/32x32/apps
icon32.files += data/32x32/minitube.png
icon48.path = $$DATADIR/icons/hicolor/48x48/apps
icon48.files += data/48x48/minitube.png
icon64.path = $$DATADIR/icons/hicolor/64x64/apps
icon64.files += data/64x64/minitube.png
icon128.path = $$DATADIR/icons/hicolor/128x128/apps
icon128.files += data/128x128/minitube.png
icon256.path = $$DATADIR/icons/hicolor/256x256/apps
icon256.files += data/256x256/minitube.png
icon512.path = $$DATADIR/icons/hicolor/512x512/apps
icon512.files += data/512x512/minitube.png
}
mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)