1 CONFIG += c++14 exceptions_off rtti_off optimize_full
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 DEFINES += APP_SNAPSHOT
15 CONFIG -= debug_and_release
16 CONFIG(debug, debug|release): {
17 message(Building for debug)
19 CONFIG(release, debug|release): {
20 message(Building for release)
21 DEFINES *= QT_NO_DEBUG_OUTPUT
24 DEFINES *= QT_USE_QSTRINGBUILDER QT_STRICT_ITERATORS QT_DEPRECATED_WARNINGS
26 !contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
27 warning("You need to specify a Google API Key, refer to the README.md file for details")
30 TARGET = $${APP_UNIX_NAME}
32 QT += widgets network sql qml
34 include(lib/http/http.pri)
35 include(lib/idle/idle.pri)
38 include(lib/media/media.pri)
40 include(src/qtsingleapplication/qtsingleapplication.pri)
42 HEADERS += src/video.h \
46 src/playlistitemdelegate.h \
53 src/videodefinition.h \
55 src/globalshortcuts.h \
56 src/globalshortcutbackend.h \
57 src/downloadmanager.h \
61 src/downloadlistview.h \
62 src/downloadsettings.h \
64 src/channelsuggest.h \
66 src/segmentedcontrol.h \
68 src/refinesearchwidget.h \
69 src/refinesearchbutton.h \
80 src/ytstandardfeed.h \
81 src/standardfeedsview.h \
85 src/videosourcewidget.h \
87 src/ytsinglevideosource.h \
94 src/channelaggregator.h \
96 src/aggregatevideosource.h \
98 src/channelitemdelegate.h \
101 src/snapshotsettings.h \
102 src/snapshotpreview.h \
104 src/yt3listparser.h \
107 src/paginatedvideosource.h \
109 src/channellistview.h \
112 src/clickablelabel.h \
118 SOURCES += src/main.cpp \
122 src/videomimedata.cpp \
123 src/updatechecker.cpp \
124 src/searchparams.cpp \
125 src/minisplitter.cpp \
126 src/loadingwidget.cpp \
127 src/autocomplete.cpp \
128 src/videodefinition.cpp \
131 src/globalshortcuts.cpp \
132 src/globalshortcutbackend.cpp \
133 src/downloadmanager.cpp \
134 src/downloaditem.cpp \
135 src/downloadview.cpp \
136 src/downloadmodel.cpp \
137 src/downloadlistview.cpp \
138 src/downloadsettings.cpp \
139 src/channelsuggest.cpp \
141 src/segmentedcontrol.cpp \
142 src/playlistview.cpp \
143 src/refinesearchwidget.cpp \
144 src/refinesearchbutton.cpp \
145 src/sidebarwidget.cpp \
151 src/playlistitemdelegate.cpp \
152 src/playlistmodel.cpp \
153 src/videosource.cpp \
155 src/ytstandardfeed.cpp \
156 src/standardfeedsview.cpp \
158 src/ytcategories.cpp \
159 src/ytsuggester.cpp \
160 src/videosourcewidget.cpp \
161 src/regionsview.cpp \
162 src/ytsinglevideosource.cpp \
163 src/sidebarheader.cpp \
167 src/painterutils.cpp \
169 src/channelaggregator.cpp \
170 src/channelmodel.cpp \
171 src/aggregatevideosource.cpp \
172 src/channelview.cpp \
173 src/channelitemdelegate.cpp \
174 src/jsfunctions.cpp \
176 src/snapshotsettings.cpp \
177 src/snapshotpreview.cpp \
179 src/yt3listparser.cpp \
182 src/paginatedvideosource.cpp \
183 src/channellistview.cpp \
186 src/clickablelabel.cpp \
188 src/toolbarmenu.cpp \
189 src/sharetoolbar.cpp \
191 src/searchlineedit.cpp
193 RESOURCES += resources.qrc
194 RESOURCES += $$files(icons/*.png, true)
196 DESTDIR = build/target/
197 OBJECTS_DIR = build/obj/
201 # Tell Qt Linguist that we use UTF-8 strings in our sources
205 include(locale/locale.pri)
208 DISTFILES += CHANGES COPYING
212 HEADERS += src/gnomeglobalshortcutbackend.h
213 SOURCES += src/gnomeglobalshortcutbackend.cpp
215 isEmpty(PREFIX):PREFIX = /usr
217 BINDIR = $$PREFIX/bin
219 target.path = $$BINDIR
221 DATADIR = $$PREFIX/share
222 PKGDATADIR = $$DATADIR/minitube
223 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
224 PKGDATADIR=\\\"$$PKGDATADIR\\\"
226 INSTALLS += translations \
239 translations.path = $$PKGDATADIR
240 translations.files += $$DESTDIR/locale
241 sounds.path = $$PKGDATADIR
242 sounds.files += sounds/
243 desktop.path = $$DATADIR/applications
244 desktop.files += minitube.desktop
245 appdata.path = $$DATADIR/appdata
246 appdata.files += minitube.appdata.xml
247 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
248 iconsvg.files += data/minitube.svg
249 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
250 icon16.files += data/16x16/minitube.png
251 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
252 icon22.files += data/22x22/minitube.png
253 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
254 icon32.files += data/32x32/minitube.png
255 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
256 icon48.files += data/48x48/minitube.png
257 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
258 icon64.files += data/64x64/minitube.png
259 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
260 icon128.files += data/128x128/minitube.png
261 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
262 icon256.files += data/256x256/minitube.png
263 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
264 icon512.files += data/512x512/minitube.png
267 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
269 message(CONFIG: $$CONFIG)
270 message(DEFINES: $$DEFINES)
271 message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)
272 message(QMAKE_LFLAGS: $$QMAKE_LFLAGS)