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