1 CONFIG += c++17 exceptions_off rtti_off optimize_full object_parallel_to_source
5 DEFINES += APP_VERSION="$$VERSION"
8 DEFINES += APP_NAME="$$APP_NAME"
10 APP_UNIX_NAME = minitube
11 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
13 message(Building $${APP_NAME} $${VERSION})
14 message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
16 DEFINES += APP_SNAPSHOT
18 CONFIG -= debug_and_release
19 CONFIG(debug, debug|release): {
20 message(Building for debug)
22 CONFIG(release, debug|release): {
23 message(Building for release)
24 DEFINES *= QT_NO_DEBUG_OUTPUT
27 DEFINES *= QT_USE_QSTRINGBUILDER QT_STRICT_ITERATORS QT_DEPRECATED_WARNINGS
29 !contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
30 warning("You need to specify a Google API Key, refer to the README.md file for details")
33 TARGET = $${APP_UNIX_NAME}
35 QT += widgets network sql qml
37 include(lib/http/http.pri)
38 include(lib/idle/idle.pri)
41 include(lib/media/media.pri)
43 include(src/qtsingleapplication/qtsingleapplication.pri)
44 include(src/invidious/invidious.pri)
46 INCLUDEPATH += $$PWD/src
48 HEADERS += src/video.h \
52 src/playlistitemdelegate.h \
60 src/videodefinition.h \
62 src/globalshortcuts.h \
63 src/globalshortcutbackend.h \
64 src/downloadmanager.h \
68 src/downloadlistview.h \
69 src/downloadsettings.h \
71 src/channelsuggest.h \
73 src/segmentedcontrol.h \
75 src/refinesearchwidget.h \
76 src/refinesearchbutton.h \
86 src/waitingspinnerwidget.h \
88 src/ytstandardfeed.h \
89 src/standardfeedsview.h \
93 src/videosourcewidget.h \
95 src/ytsinglevideosource.h \
102 src/channelaggregator.h \
104 src/aggregatevideosource.h \
106 src/channelitemdelegate.h \
109 src/snapshotsettings.h \
110 src/snapshotpreview.h \
112 src/yt3listparser.h \
115 src/paginatedvideosource.h \
117 src/channellistview.h \
120 src/clickablelabel.h \
126 SOURCES += src/main.cpp \
129 src/updateutils.cpp \
131 src/videomimedata.cpp \
132 src/searchparams.cpp \
133 src/minisplitter.cpp \
134 src/loadingwidget.cpp \
135 src/autocomplete.cpp \
136 src/videodefinition.cpp \
139 src/globalshortcuts.cpp \
140 src/globalshortcutbackend.cpp \
141 src/downloadmanager.cpp \
142 src/downloaditem.cpp \
143 src/downloadview.cpp \
144 src/downloadmodel.cpp \
145 src/downloadlistview.cpp \
146 src/downloadsettings.cpp \
147 src/channelsuggest.cpp \
149 src/segmentedcontrol.cpp \
150 src/playlistview.cpp \
151 src/refinesearchwidget.cpp \
152 src/refinesearchbutton.cpp \
153 src/sidebarwidget.cpp \
159 src/playlistitemdelegate.cpp \
160 src/playlistmodel.cpp \
161 src/videosource.cpp \
162 src/waitingspinnerwidget.cpp \
164 src/ytstandardfeed.cpp \
165 src/standardfeedsview.cpp \
167 src/ytcategories.cpp \
168 src/ytsuggester.cpp \
169 src/videosourcewidget.cpp \
170 src/regionsview.cpp \
171 src/ytsinglevideosource.cpp \
172 src/sidebarheader.cpp \
176 src/painterutils.cpp \
178 src/channelaggregator.cpp \
179 src/channelmodel.cpp \
180 src/aggregatevideosource.cpp \
181 src/channelview.cpp \
182 src/channelitemdelegate.cpp \
183 src/jsfunctions.cpp \
185 src/snapshotsettings.cpp \
186 src/snapshotpreview.cpp \
188 src/yt3listparser.cpp \
191 src/paginatedvideosource.cpp \
192 src/channellistview.cpp \
195 src/clickablelabel.cpp \
197 src/toolbarmenu.cpp \
198 src/sharetoolbar.cpp \
200 src/searchlineedit.cpp
202 RESOURCES += resources.qrc
203 RESOURCES += $$files(icons/*.png, true)
205 DESTDIR = build/target/
206 OBJECTS_DIR = build/obj/
210 # Tell Qt Linguist that we use UTF-8 strings in our sources
214 include(locale/locale.pri)
217 DISTFILES += CHANGES COPYING
221 HEADERS += src/gnomeglobalshortcutbackend.h
222 SOURCES += src/gnomeglobalshortcutbackend.cpp
224 isEmpty(PREFIX):PREFIX = /usr
226 BINDIR = $$PREFIX/bin
228 target.path = $$BINDIR
230 DATADIR = $$PREFIX/share
231 PKGDATADIR = $$DATADIR/minitube
232 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
233 PKGDATADIR=\\\"$$PKGDATADIR\\\"
235 INSTALLS += translations \
248 translations.path = $$PKGDATADIR
249 translations.files += $$DESTDIR/locale
250 sounds.path = $$PKGDATADIR
251 sounds.files += sounds/
252 desktop.path = $$DATADIR/applications
253 desktop.files += minitube.desktop
254 appdata.path = $$DATADIR/appdata
255 appdata.files += minitube.appdata.xml
256 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
257 iconsvg.files += data/minitube.svg
258 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
259 icon16.files += data/16x16/minitube.png
260 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
261 icon22.files += data/22x22/minitube.png
262 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
263 icon32.files += data/32x32/minitube.png
264 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
265 icon48.files += data/48x48/minitube.png
266 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
267 icon64.files += data/64x64/minitube.png
268 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
269 icon128.files += data/128x128/minitube.png
270 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
271 icon256.files += data/256x256/minitube.png
272 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
273 icon512.files += data/512x512/minitube.png
276 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
278 !contains(DEFINES, APP_MAC_STORE) {
279 # DEFINES += UPDATER_NO_SPARKLE
280 include(lib/updater/updater.pri)
283 message(CONFIG: $$CONFIG)
284 message(DEFINES: $$DEFINES)
285 message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)
286 message(QMAKE_LFLAGS: $$QMAKE_LFLAGS)