1 CONFIG += release c++11
2 CONFIG -= rtti exceptions
5 DEFINES += APP_VERSION="$$VERSION"
8 DEFINES += APP_NAME="$$APP_NAME"
10 APP_UNIX_NAME = minitube
11 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
14 DEFINES += APP_PHONON_SEEK
15 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 += widgets network sql qml
32 include(src/qtsingleapplication/qtsingleapplication.pri)
33 include(src/http/http.pri)
34 include(src/idle/idle.pri)
36 HEADERS += src/video.h \
37 src/searchlineedit.h \
40 src/playlistitemdelegate.h \
46 src/videoareawidget.h \
48 src/videodefinition.h \
50 src/globalshortcuts.h \
51 src/globalshortcutbackend.h \
52 src/downloadmanager.h \
56 src/downloadlistview.h \
57 src/downloadsettings.h \
59 src/channelsuggest.h \
61 src/segmentedcontrol.h \
63 src/refinesearchwidget.h \
64 src/refinesearchbutton.h \
75 src/ytstandardfeed.h \
76 src/standardfeedsview.h \
80 src/videosourcewidget.h \
82 src/ytsinglevideosource.h \
89 src/channelaggregator.h \
91 src/aggregatevideosource.h \
93 src/channelitemdelegate.h \
96 src/snapshotsettings.h \
97 src/snapshotpreview.h \
102 src/paginatedvideosource.h \
105 src/channellistview.h \
108 src/clickablelabel.h \
112 SOURCES += src/main.cpp \
113 src/searchlineedit.cpp \
116 src/videomimedata.cpp \
117 src/updatechecker.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/ytsuggester.cpp \
155 src/videosourcewidget.cpp \
156 src/regionsview.cpp \
157 src/ytsinglevideosource.cpp \
158 src/sidebarheader.cpp \
162 src/painterutils.cpp \
164 src/channelaggregator.cpp \
165 src/channelmodel.cpp \
166 src/aggregatevideosource.cpp \
167 src/channelview.cpp \
168 src/channelitemdelegate.cpp \
169 src/jsfunctions.cpp \
171 src/snapshotsettings.cpp \
172 src/snapshotpreview.cpp \
174 src/yt3listparser.cpp \
177 src/paginatedvideosource.cpp \
179 src/channellistview.cpp \
182 src/clickablelabel.cpp \
184 src/toolbarmenu.cpp \
186 RESOURCES += resources.qrc
187 DESTDIR = build/target/
188 OBJECTS_DIR = build/obj/
192 # Tell Qt Linguist that we use UTF-8 strings in our sources
195 include(locale/locale.pri)
198 DISTFILES += CHANGES COPYING
202 INCLUDEPATH += /usr/include/phonon4qt5
204 HEADERS += src/gnomeglobalshortcutbackend.h
205 SOURCES += src/gnomeglobalshortcutbackend.cpp
206 isEmpty(PREFIX):PREFIX = /usr
207 BINDIR = $$PREFIX/bin
209 target.path = $$BINDIR
210 DATADIR = $$PREFIX/share
211 PKGDATADIR = $$DATADIR/minitube
212 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
213 PKGDATADIR=\\\"$$PKGDATADIR\\\"
214 INSTALLS += translations \
226 translations.path = $$PKGDATADIR
227 translations.files += $$DESTDIR/locale
228 desktop.path = $$DATADIR/applications
229 desktop.files += minitube.desktop
230 appdata.path = $$DATADIR/appdata
231 appdata.files += minitube.appdata.xml
232 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
233 iconsvg.files += data/minitube.svg
234 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
235 icon16.files += data/16x16/minitube.png
236 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
237 icon22.files += data/22x22/minitube.png
238 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
239 icon32.files += data/32x32/minitube.png
240 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
241 icon48.files += data/48x48/minitube.png
242 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
243 icon64.files += data/64x64/minitube.png
244 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
245 icon128.files += data/128x128/minitube.png
246 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
247 icon256.files += data/256x256/minitube.png
248 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
249 icon512.files += data/512x512/minitube.png
251 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)