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 HEADERS += src/video.h \
50 src/playlistitemdelegate.h \
58 src/videodefinition.h \
60 src/globalshortcuts.h \
61 src/globalshortcutbackend.h \
62 src/downloadmanager.h \
66 src/downloadlistview.h \
67 src/downloadsettings.h \
69 src/channelsuggest.h \
71 src/segmentedcontrol.h \
73 src/refinesearchwidget.h \
74 src/refinesearchbutton.h \
84 src/waitingspinnerwidget.h \
86 src/ytstandardfeed.h \
87 src/standardfeedsview.h \
91 src/videosourcewidget.h \
93 src/ytsinglevideosource.h \
100 src/channelaggregator.h \
102 src/aggregatevideosource.h \
104 src/channelitemdelegate.h \
107 src/snapshotsettings.h \
108 src/snapshotpreview.h \
110 src/yt3listparser.h \
113 src/paginatedvideosource.h \
115 src/channellistview.h \
118 src/clickablelabel.h \
124 SOURCES += src/main.cpp \
127 src/updateutils.cpp \
129 src/videomimedata.cpp \
130 src/searchparams.cpp \
131 src/minisplitter.cpp \
132 src/loadingwidget.cpp \
133 src/autocomplete.cpp \
134 src/videodefinition.cpp \
137 src/globalshortcuts.cpp \
138 src/globalshortcutbackend.cpp \
139 src/downloadmanager.cpp \
140 src/downloaditem.cpp \
141 src/downloadview.cpp \
142 src/downloadmodel.cpp \
143 src/downloadlistview.cpp \
144 src/downloadsettings.cpp \
145 src/channelsuggest.cpp \
147 src/segmentedcontrol.cpp \
148 src/playlistview.cpp \
149 src/refinesearchwidget.cpp \
150 src/refinesearchbutton.cpp \
151 src/sidebarwidget.cpp \
157 src/playlistitemdelegate.cpp \
158 src/playlistmodel.cpp \
159 src/videosource.cpp \
160 src/waitingspinnerwidget.cpp \
162 src/ytstandardfeed.cpp \
163 src/standardfeedsview.cpp \
165 src/ytcategories.cpp \
166 src/ytsuggester.cpp \
167 src/videosourcewidget.cpp \
168 src/regionsview.cpp \
169 src/ytsinglevideosource.cpp \
170 src/sidebarheader.cpp \
174 src/painterutils.cpp \
176 src/channelaggregator.cpp \
177 src/channelmodel.cpp \
178 src/aggregatevideosource.cpp \
179 src/channelview.cpp \
180 src/channelitemdelegate.cpp \
181 src/jsfunctions.cpp \
183 src/snapshotsettings.cpp \
184 src/snapshotpreview.cpp \
186 src/yt3listparser.cpp \
189 src/paginatedvideosource.cpp \
190 src/channellistview.cpp \
193 src/clickablelabel.cpp \
195 src/toolbarmenu.cpp \
196 src/sharetoolbar.cpp \
198 src/searchlineedit.cpp
200 RESOURCES += resources.qrc
201 RESOURCES += $$files(icons/*.png, true)
203 DESTDIR = build/target/
204 OBJECTS_DIR = build/obj/
208 # Tell Qt Linguist that we use UTF-8 strings in our sources
212 include(locale/locale.pri)
215 DISTFILES += CHANGES COPYING
219 HEADERS += src/gnomeglobalshortcutbackend.h
220 SOURCES += src/gnomeglobalshortcutbackend.cpp
222 isEmpty(PREFIX):PREFIX = /usr
224 BINDIR = $$PREFIX/bin
226 target.path = $$BINDIR
228 DATADIR = $$PREFIX/share
229 PKGDATADIR = $$DATADIR/minitube
230 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
231 PKGDATADIR=\\\"$$PKGDATADIR\\\"
233 INSTALLS += translations \
246 translations.path = $$PKGDATADIR
247 translations.files += $$DESTDIR/locale
248 sounds.path = $$PKGDATADIR
249 sounds.files += sounds/
250 desktop.path = $$DATADIR/applications
251 desktop.files += minitube.desktop
252 appdata.path = $$DATADIR/appdata
253 appdata.files += minitube.appdata.xml
254 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
255 iconsvg.files += data/minitube.svg
256 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
257 icon16.files += data/16x16/minitube.png
258 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
259 icon22.files += data/22x22/minitube.png
260 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
261 icon32.files += data/32x32/minitube.png
262 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
263 icon48.files += data/48x48/minitube.png
264 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
265 icon64.files += data/64x64/minitube.png
266 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
267 icon128.files += data/128x128/minitube.png
268 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
269 icon256.files += data/256x256/minitube.png
270 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
271 icon512.files += data/512x512/minitube.png
274 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
276 !contains(DEFINES, APP_MAC_STORE) {
277 # DEFINES += UPDATER_NO_SPARKLE
278 include(lib/updater/updater.pri)
281 message(CONFIG: $$CONFIG)
282 message(DEFINES: $$DEFINES)
283 message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)
284 message(QMAKE_LFLAGS: $$QMAKE_LFLAGS)