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 src/compatibility/pathsservice.h
107 SOURCES += src/main.cpp \
108 src/searchlineedit.cpp \
109 src/urllineedit.cpp \
112 src/videomimedata.cpp \
113 src/updatechecker.cpp \
114 src/networkaccess.cpp \
115 src/searchparams.cpp \
116 src/minisplitter.cpp \
117 src/loadingwidget.cpp \
118 src/videoareawidget.cpp \
119 src/autocomplete.cpp \
120 src/videodefinition.cpp \
123 src/globalshortcuts.cpp \
124 src/globalshortcutbackend.cpp \
125 src/downloadmanager.cpp \
126 src/downloaditem.cpp \
127 src/downloadview.cpp \
128 src/downloadmodel.cpp \
129 src/downloadlistview.cpp \
130 src/downloadsettings.cpp \
131 src/channelsuggest.cpp \
133 src/segmentedcontrol.cpp \
134 src/playlistview.cpp \
135 src/refinesearchwidget.cpp \
136 src/refinesearchbutton.cpp \
137 src/sidebarwidget.cpp \
143 src/playlistitemdelegate.cpp \
144 src/playlistmodel.cpp \
145 src/videosource.cpp \
147 src/ytstandardfeed.cpp \
148 src/standardfeedsview.cpp \
150 src/ytcategories.cpp \
151 src/ytfeedreader.cpp \
152 src/ytsuggester.cpp \
153 src/videosourcewidget.cpp \
154 src/regionsview.cpp \
155 src/ytsinglevideosource.cpp \
156 src/sidebarheader.cpp \
160 src/painterutils.cpp \
162 src/channelaggregator.cpp \
163 src/channelmodel.cpp \
164 src/aggregatevideosource.cpp \
165 src/channelview.cpp \
166 src/channelitemdelegate.cpp \
167 src/jsfunctions.cpp \
169 src/snapshotsettings.cpp \
170 src/snapshotpreview.cpp \
172 src/yt3listparser.cpp \
175 src/paginatedvideosource.cpp \
176 src/compatibility/pathsservice.cpp
177 RESOURCES += resources.qrc
178 DESTDIR = build/target/
179 OBJECTS_DIR = build/obj/
183 # Tell Qt Linguist that we use UTF-8 strings in our sources
186 include(locale/locale.pri)
189 DISTFILES += CHANGES COPYING
191 qt:greaterThan(QT_MAJOR_VERSION, 4) {
193 INCLUDEPATH += /usr/include/phonon4qt5
196 INCLUDEPATH += /usr/include/phonon
199 HEADERS += src/gnomeglobalshortcutbackend.h
200 SOURCES += src/gnomeglobalshortcutbackend.cpp
201 isEmpty(PREFIX):PREFIX = /usr
202 BINDIR = $$PREFIX/bin
204 target.path = $$BINDIR
205 DATADIR = $$PREFIX/share
206 PKGDATADIR = $$DATADIR/minitube
207 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
208 PKGDATADIR=\\\"$$PKGDATADIR\\\"
209 INSTALLS += translations \
220 translations.path = $$PKGDATADIR
221 translations.files += $$DESTDIR/locale
222 desktop.path = $$DATADIR/applications
223 desktop.files += minitube.desktop
224 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
225 iconsvg.files += data/minitube.svg
226 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
227 icon16.files += data/16x16/minitube.png
228 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
229 icon22.files += data/22x22/minitube.png
230 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
231 icon32.files += data/32x32/minitube.png
232 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
233 icon48.files += data/48x48/minitube.png
234 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
235 icon64.files += data/64x64/minitube.png
236 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
237 icon128.files += data/128x128/minitube.png
238 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
239 icon256.files += data/256x256/minitube.png
240 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
241 icon512.files += data/512x512/minitube.png
243 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)