4 DEFINES += APP_VERSION="$$VERSION"
7 DEFINES += APP_NAME="$$APP_NAME"
9 APP_UNIX_NAME = minitube
10 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
13 DEFINES += APP_PHONON_SEEK
14 DEFINES += APP_SNAPSHOT
17 message(Building $${APP_NAME} $${VERSION})
18 message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
20 DEFINES *= QT_NO_DEBUG_OUTPUT
21 DEFINES *= QT_USE_QSTRINGBUILDER
22 DEFINES *= QT_STRICT_ITERATORS
24 !contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
25 warning("You need to specify a Google API Key, refer to the README.md file for details")
28 TARGET = $${APP_UNIX_NAME}
30 QT += network sql script
31 qt:greaterThan(QT_MAJOR_VERSION, 4) {
32 contains(QT, gui): QT *= widgets
35 include(src/qtsingleapplication/qtsingleapplication.pri)
37 HEADERS += src/video.h \
38 src/searchlineedit.h \
41 src/playlistitemdelegate.h \
49 src/videoareawidget.h \
51 src/videodefinition.h \
53 src/globalshortcuts.h \
54 src/globalshortcutbackend.h \
55 src/downloadmanager.h \
59 src/downloadlistview.h \
60 src/downloadsettings.h \
62 src/channelsuggest.h \
64 src/segmentedcontrol.h \
66 src/refinesearchwidget.h \
67 src/refinesearchbutton.h \
78 src/ytstandardfeed.h \
79 src/standardfeedsview.h \
84 src/videosourcewidget.h \
86 src/ytsinglevideosource.h \
93 src/channelaggregator.h \
95 src/aggregatevideosource.h \
97 src/channelitemdelegate.h \
100 src/snapshotsettings.h \
101 src/snapshotpreview.h \
103 src/yt3listparser.h \
106 src/paginatedvideosource.h \
107 src/compatibility/qurlqueryhelper.h \
108 src/compatibility/pathsservice.h \
111 src/channellistview.h
112 SOURCES += src/main.cpp \
113 src/searchlineedit.cpp \
116 src/videomimedata.cpp \
117 src/updatechecker.cpp \
118 src/networkaccess.cpp \
119 src/searchparams.cpp \
120 src/minisplitter.cpp \
121 src/loadingwidget.cpp \
122 src/videoareawidget.cpp \
123 src/autocomplete.cpp \
124 src/videodefinition.cpp \
127 src/globalshortcuts.cpp \
128 src/globalshortcutbackend.cpp \
129 src/downloadmanager.cpp \
130 src/downloaditem.cpp \
131 src/downloadview.cpp \
132 src/downloadmodel.cpp \
133 src/downloadlistview.cpp \
134 src/downloadsettings.cpp \
135 src/channelsuggest.cpp \
137 src/segmentedcontrol.cpp \
138 src/playlistview.cpp \
139 src/refinesearchwidget.cpp \
140 src/refinesearchbutton.cpp \
141 src/sidebarwidget.cpp \
147 src/playlistitemdelegate.cpp \
148 src/playlistmodel.cpp \
149 src/videosource.cpp \
151 src/ytstandardfeed.cpp \
152 src/standardfeedsview.cpp \
154 src/ytcategories.cpp \
155 src/ytfeedreader.cpp \
156 src/ytsuggester.cpp \
157 src/videosourcewidget.cpp \
158 src/regionsview.cpp \
159 src/ytsinglevideosource.cpp \
160 src/sidebarheader.cpp \
164 src/painterutils.cpp \
166 src/channelaggregator.cpp \
167 src/channelmodel.cpp \
168 src/aggregatevideosource.cpp \
169 src/channelview.cpp \
170 src/channelitemdelegate.cpp \
171 src/jsfunctions.cpp \
173 src/snapshotsettings.cpp \
174 src/snapshotpreview.cpp \
176 src/yt3listparser.cpp \
179 src/paginatedvideosource.cpp \
180 src/compatibility/pathsservice.cpp \
182 src/channellistview.cpp
183 RESOURCES += resources.qrc
184 DESTDIR = build/target/
185 OBJECTS_DIR = build/obj/
189 # Tell Qt Linguist that we use UTF-8 strings in our sources
192 include(locale/locale.pri)
195 DISTFILES += CHANGES COPYING
198 qt:greaterThan(QT_MAJOR_VERSION, 4) {
200 INCLUDEPATH += /usr/include/phonon4qt5
203 INCLUDEPATH += /usr/include/phonon
206 HEADERS += src/gnomeglobalshortcutbackend.h
207 SOURCES += src/gnomeglobalshortcutbackend.cpp
208 isEmpty(PREFIX):PREFIX = /usr
209 BINDIR = $$PREFIX/bin
211 target.path = $$BINDIR
212 DATADIR = $$PREFIX/share
213 PKGDATADIR = $$DATADIR/minitube
214 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
215 PKGDATADIR=\\\"$$PKGDATADIR\\\"
216 INSTALLS += translations \
227 translations.path = $$PKGDATADIR
228 translations.files += $$DESTDIR/locale
229 desktop.path = $$DATADIR/applications
230 desktop.files += minitube.desktop
231 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
232 iconsvg.files += data/minitube.svg
233 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
234 icon16.files += data/16x16/minitube.png
235 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
236 icon22.files += data/22x22/minitube.png
237 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
238 icon32.files += data/32x32/minitube.png
239 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
240 icon48.files += data/48x48/minitube.png
241 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
242 icon64.files += data/64x64/minitube.png
243 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
244 icon128.files += data/128x128/minitube.png
245 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
246 icon256.files += data/256x256/minitube.png
247 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
248 icon512.files += data/512x512/minitube.png
250 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)