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 DEFINES *= QT_NO_DEBUG_OUTPUT
18 DEFINES *= QT_USE_QSTRINGBUILDER
19 DEFINES *= QT_STRICT_ITERATORS
21 !contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
22 warning("You need to specify a Google API Key, refer to the README.md file for details")
25 TARGET = $${APP_UNIX_NAME}
27 QT += network sql script
28 qt:greaterThan(QT_MAJOR_VERSION, 4) {
29 contains(QT, gui): QT *= widgets
32 include(src/qtsingleapplication/qtsingleapplication.pri)
34 HEADERS += src/video.h \
35 src/searchlineedit.h \
39 src/playlistitemdelegate.h \
47 src/videoareawidget.h \
49 src/videodefinition.h \
51 src/globalshortcuts.h \
52 src/globalshortcutbackend.h \
53 src/downloadmanager.h \
57 src/downloadlistview.h \
58 src/downloadsettings.h \
60 src/channelsuggest.h \
62 src/segmentedcontrol.h \
64 src/refinesearchwidget.h \
65 src/refinesearchbutton.h \
76 src/ytstandardfeed.h \
77 src/standardfeedsview.h \
82 src/videosourcewidget.h \
84 src/ytsinglevideosource.h \
91 src/channelaggregator.h \
93 src/aggregatevideosource.h \
95 src/channelitemdelegate.h \
98 src/snapshotsettings.h \
99 src/snapshotpreview.h \
101 src/yt3listparser.h \
104 src/paginatedvideosource.h \
105 src/compatibility/qurlqueryhelper.h
106 SOURCES += src/main.cpp \
107 src/searchlineedit.cpp \
108 src/urllineedit.cpp \
111 src/videomimedata.cpp \
112 src/updatechecker.cpp \
113 src/networkaccess.cpp \
114 src/searchparams.cpp \
115 src/minisplitter.cpp \
116 src/loadingwidget.cpp \
117 src/videoareawidget.cpp \
118 src/autocomplete.cpp \
119 src/videodefinition.cpp \
122 src/globalshortcuts.cpp \
123 src/globalshortcutbackend.cpp \
124 src/downloadmanager.cpp \
125 src/downloaditem.cpp \
126 src/downloadview.cpp \
127 src/downloadmodel.cpp \
128 src/downloadlistview.cpp \
129 src/downloadsettings.cpp \
130 src/channelsuggest.cpp \
132 src/segmentedcontrol.cpp \
133 src/playlistview.cpp \
134 src/refinesearchwidget.cpp \
135 src/refinesearchbutton.cpp \
136 src/sidebarwidget.cpp \
142 src/playlistitemdelegate.cpp \
143 src/playlistmodel.cpp \
144 src/videosource.cpp \
146 src/ytstandardfeed.cpp \
147 src/standardfeedsview.cpp \
149 src/ytcategories.cpp \
150 src/ytfeedreader.cpp \
151 src/ytsuggester.cpp \
152 src/videosourcewidget.cpp \
153 src/regionsview.cpp \
154 src/ytsinglevideosource.cpp \
155 src/sidebarheader.cpp \
159 src/painterutils.cpp \
161 src/channelaggregator.cpp \
162 src/channelmodel.cpp \
163 src/aggregatevideosource.cpp \
164 src/channelview.cpp \
165 src/channelitemdelegate.cpp \
166 src/jsfunctions.cpp \
168 src/snapshotsettings.cpp \
169 src/snapshotpreview.cpp \
171 src/yt3listparser.cpp \
174 src/paginatedvideosource.cpp
175 RESOURCES += resources.qrc
176 DESTDIR = build/target/
177 OBJECTS_DIR = build/obj/
181 # Tell Qt Linguist that we use UTF-8 strings in our sources
184 include(locale/locale.pri)
187 DISTFILES += CHANGES COPYING
189 qt:greaterThan(QT_MAJOR_VERSION, 4) {
191 INCLUDEPATH += /usr/include/phonon4qt5
194 INCLUDEPATH += /usr/include/phonon
197 HEADERS += src/gnomeglobalshortcutbackend.h
198 SOURCES += src/gnomeglobalshortcutbackend.cpp
199 isEmpty(PREFIX):PREFIX = /usr
200 BINDIR = $$PREFIX/bin
202 target.path = $$BINDIR
203 DATADIR = $$PREFIX/share
204 PKGDATADIR = $$DATADIR/minitube
205 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
206 PKGDATADIR=\\\"$$PKGDATADIR\\\"
207 INSTALLS += translations \
218 translations.path = $$PKGDATADIR
219 translations.files += $$DESTDIR/locale
220 desktop.path = $$DATADIR/applications
221 desktop.files += minitube.desktop
222 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
223 iconsvg.files += data/minitube.svg
224 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
225 icon16.files += data/16x16/minitube.png
226 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
227 icon22.files += data/22x22/minitube.png
228 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
229 icon32.files += data/32x32/minitube.png
230 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
231 icon48.files += data/48x48/minitube.png
232 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
233 icon64.files += data/64x64/minitube.png
234 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
235 icon128.files += data/128x128/minitube.png
236 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
237 icon256.files += data/256x256/minitube.png
238 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
239 icon512.files += data/512x512/minitube.png
241 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)