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
16 #DEFINES *= QT_NO_DEBUG_OUTPUT
17 DEFINES *= QT_USE_QSTRINGBUILDER
18 DEFINES *= QT_STRICT_ITERATORS
20 TARGET = $${APP_UNIX_NAME}
22 QT += network xml sql script
23 qt:greaterThan(QT_MAJOR_VERSION, 4) {
24 contains(QT, gui): QT *= widgets
27 include(src/qtsingleapplication/qtsingleapplication.pri)
31 src/searchlineedit.h \
35 src/playlistitemdelegate.h \
43 src/videoareawidget.h \
45 src/videodefinition.h \
47 src/globalshortcuts.h \
48 src/globalshortcutbackend.h \
49 src/downloadmanager.h \
53 src/downloadlistview.h \
54 src/downloadsettings.h \
56 src/channelsuggest.h \
58 src/segmentedcontrol.h \
60 src/refinesearchwidget.h \
61 src/refinesearchbutton.h \
72 src/ytstandardfeed.h \
73 src/standardfeedsview.h \
78 src/videosourcewidget.h \
80 src/ytsinglevideosource.h \
88 src/channelaggregator.h \
90 src/aggregatevideosource.h \
92 src/channelitemdelegate.h \
95 src/snapshotsettings.h \
96 src/snapshotpreview.h \
98 SOURCES += src/main.cpp \
99 src/searchlineedit.cpp \
100 src/urllineedit.cpp \
103 src/videomimedata.cpp \
104 src/updatechecker.cpp \
105 src/networkaccess.cpp \
106 src/searchparams.cpp \
107 src/minisplitter.cpp \
108 src/loadingwidget.cpp \
109 src/videoareawidget.cpp \
110 src/autocomplete.cpp \
111 src/videodefinition.cpp \
114 src/globalshortcuts.cpp \
115 src/globalshortcutbackend.cpp \
116 src/downloadmanager.cpp \
117 src/downloaditem.cpp \
118 src/downloadview.cpp \
119 src/downloadmodel.cpp \
120 src/downloadlistview.cpp \
121 src/downloadsettings.cpp \
122 src/channelsuggest.cpp \
124 src/segmentedcontrol.cpp \
125 src/playlistview.cpp \
126 src/refinesearchwidget.cpp \
127 src/refinesearchbutton.cpp \
128 src/sidebarwidget.cpp \
134 src/playlistitemdelegate.cpp \
135 src/playlistmodel.cpp \
136 src/videosource.cpp \
138 src/ytstandardfeed.cpp \
139 src/standardfeedsview.cpp \
141 src/ytcategories.cpp \
142 src/ytfeedreader.cpp \
143 src/ytsuggester.cpp \
144 src/videosourcewidget.cpp \
145 src/regionsview.cpp \
146 src/ytsinglevideosource.cpp \
147 src/sidebarheader.cpp \
151 src/painterutils.cpp \
154 src/channelaggregator.cpp \
155 src/channelmodel.cpp \
156 src/aggregatevideosource.cpp \
157 src/channelview.cpp \
158 src/channelitemdelegate.cpp \
159 src/jsfunctions.cpp \
161 src/snapshotsettings.cpp \
162 src/snapshotpreview.cpp \
164 RESOURCES += resources.qrc
165 DESTDIR = build/target/
166 OBJECTS_DIR = build/obj/
170 # Tell Qt Linguist that we use UTF-8 strings in our sources
173 include(locale/locale.pri)
176 DISTFILES += CHANGES COPYING
179 qt:greaterThan(QT_MAJOR_VERSION, 4) {
181 INCLUDEPATH += /usr/include/phonon4qt5
184 INCLUDEPATH += /usr/include/phonon
187 HEADERS += src/gnomeglobalshortcutbackend.h
188 SOURCES += src/gnomeglobalshortcutbackend.cpp
189 isEmpty(PREFIX):PREFIX = /usr
190 BINDIR = $$PREFIX/bin
192 target.path = $$BINDIR
193 DATADIR = $$PREFIX/share
194 PKGDATADIR = $$DATADIR/minitube
195 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
196 PKGDATADIR=\\\"$$PKGDATADIR\\\"
197 INSTALLS += translations \
208 translations.path = $$PKGDATADIR
209 translations.files += $$DESTDIR/locale
210 desktop.path = $$DATADIR/applications
211 desktop.files += minitube.desktop
212 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
213 iconsvg.files += data/minitube.svg
214 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
215 icon16.files += data/16x16/minitube.png
216 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
217 icon22.files += data/22x22/minitube.png
218 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
219 icon32.files += data/32x32/minitube.png
220 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
221 icon48.files += data/48x48/minitube.png
222 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
223 icon64.files += data/64x64/minitube.png
224 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
225 icon128.files += data/128x128/minitube.png
226 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
227 icon256.files += data/256x256/minitube.png
228 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
229 icon512.files += data/512x512/minitube.png
231 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)