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 \
42 src/playlistitemdelegate.h \
50 src/videoareawidget.h \
52 src/videodefinition.h \
54 src/globalshortcuts.h \
55 src/globalshortcutbackend.h \
56 src/downloadmanager.h \
60 src/downloadlistview.h \
61 src/downloadsettings.h \
63 src/channelsuggest.h \
65 src/segmentedcontrol.h \
67 src/refinesearchwidget.h \
68 src/refinesearchbutton.h \
79 src/ytstandardfeed.h \
80 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 \
108 src/compatibility/qurlqueryhelper.h \
109 src/compatibility/pathsservice.h
110 SOURCES += src/main.cpp \
111 src/searchlineedit.cpp \
112 src/urllineedit.cpp \
115 src/videomimedata.cpp \
116 src/updatechecker.cpp \
117 src/networkaccess.cpp \
118 src/searchparams.cpp \
119 src/minisplitter.cpp \
120 src/loadingwidget.cpp \
121 src/videoareawidget.cpp \
122 src/autocomplete.cpp \
123 src/videodefinition.cpp \
126 src/globalshortcuts.cpp \
127 src/globalshortcutbackend.cpp \
128 src/downloadmanager.cpp \
129 src/downloaditem.cpp \
130 src/downloadview.cpp \
131 src/downloadmodel.cpp \
132 src/downloadlistview.cpp \
133 src/downloadsettings.cpp \
134 src/channelsuggest.cpp \
136 src/segmentedcontrol.cpp \
137 src/playlistview.cpp \
138 src/refinesearchwidget.cpp \
139 src/refinesearchbutton.cpp \
140 src/sidebarwidget.cpp \
146 src/playlistitemdelegate.cpp \
147 src/playlistmodel.cpp \
148 src/videosource.cpp \
150 src/ytstandardfeed.cpp \
151 src/standardfeedsview.cpp \
153 src/ytcategories.cpp \
154 src/ytfeedreader.cpp \
155 src/ytsuggester.cpp \
156 src/videosourcewidget.cpp \
157 src/regionsview.cpp \
158 src/ytsinglevideosource.cpp \
159 src/sidebarheader.cpp \
163 src/painterutils.cpp \
165 src/channelaggregator.cpp \
166 src/channelmodel.cpp \
167 src/aggregatevideosource.cpp \
168 src/channelview.cpp \
169 src/channelitemdelegate.cpp \
170 src/jsfunctions.cpp \
172 src/snapshotsettings.cpp \
173 src/snapshotpreview.cpp \
175 src/yt3listparser.cpp \
178 src/paginatedvideosource.cpp \
179 src/compatibility/pathsservice.cpp
180 RESOURCES += resources.qrc
181 DESTDIR = build/target/
182 OBJECTS_DIR = build/obj/
186 # Tell Qt Linguist that we use UTF-8 strings in our sources
189 include(locale/locale.pri)
192 DISTFILES += CHANGES COPYING
195 qt:greaterThan(QT_MAJOR_VERSION, 4) {
197 INCLUDEPATH += /usr/include/phonon4qt5
200 INCLUDEPATH += /usr/include/phonon
203 HEADERS += src/gnomeglobalshortcutbackend.h
204 SOURCES += src/gnomeglobalshortcutbackend.cpp
205 isEmpty(PREFIX):PREFIX = /usr
206 BINDIR = $$PREFIX/bin
208 target.path = $$BINDIR
209 DATADIR = $$PREFIX/share
210 PKGDATADIR = $$DATADIR/minitube
211 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
212 PKGDATADIR=\\\"$$PKGDATADIR\\\"
213 INSTALLS += translations \
224 translations.path = $$PKGDATADIR
225 translations.files += $$DESTDIR/locale
226 desktop.path = $$DATADIR/applications
227 desktop.files += minitube.desktop
228 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
229 iconsvg.files += data/minitube.svg
230 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
231 icon16.files += data/16x16/minitube.png
232 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
233 icon22.files += data/22x22/minitube.png
234 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
235 icon32.files += data/32x32/minitube.png
236 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
237 icon48.files += data/48x48/minitube.png
238 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
239 icon64.files += data/64x64/minitube.png
240 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
241 icon128.files += data/128x128/minitube.png
242 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
243 icon256.files += data/256x256/minitube.png
244 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
245 icon512.files += data/512x512/minitube.png
247 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)