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)
29 HEADERS += src/video.h \
30 src/searchlineedit.h \
34 src/playlistitemdelegate.h \
42 src/videoareawidget.h \
44 src/videodefinition.h \
46 src/globalshortcuts.h \
47 src/globalshortcutbackend.h \
48 src/downloadmanager.h \
52 src/downloadlistview.h \
53 src/downloadsettings.h \
55 src/channelsuggest.h \
57 src/segmentedcontrol.h \
59 src/refinesearchwidget.h \
60 src/refinesearchbutton.h \
71 src/ytstandardfeed.h \
72 src/standardfeedsview.h \
77 src/videosourcewidget.h \
79 src/ytsinglevideosource.h \
87 src/channelaggregator.h \
89 src/aggregatevideosource.h \
91 src/channelitemdelegate.h \
94 src/snapshotsettings.h \
95 src/snapshotpreview.h \
97 SOURCES += src/main.cpp \
98 src/searchlineedit.cpp \
102 src/videomimedata.cpp \
103 src/updatechecker.cpp \
104 src/networkaccess.cpp \
105 src/searchparams.cpp \
106 src/minisplitter.cpp \
107 src/loadingwidget.cpp \
108 src/videoareawidget.cpp \
109 src/autocomplete.cpp \
110 src/videodefinition.cpp \
113 src/globalshortcuts.cpp \
114 src/globalshortcutbackend.cpp \
115 src/downloadmanager.cpp \
116 src/downloaditem.cpp \
117 src/downloadview.cpp \
118 src/downloadmodel.cpp \
119 src/downloadlistview.cpp \
120 src/downloadsettings.cpp \
121 src/channelsuggest.cpp \
123 src/segmentedcontrol.cpp \
124 src/playlistview.cpp \
125 src/refinesearchwidget.cpp \
126 src/refinesearchbutton.cpp \
127 src/sidebarwidget.cpp \
133 src/playlistitemdelegate.cpp \
134 src/playlistmodel.cpp \
135 src/videosource.cpp \
137 src/ytstandardfeed.cpp \
138 src/standardfeedsview.cpp \
140 src/ytcategories.cpp \
141 src/ytfeedreader.cpp \
142 src/ytsuggester.cpp \
143 src/videosourcewidget.cpp \
144 src/regionsview.cpp \
145 src/ytsinglevideosource.cpp \
146 src/sidebarheader.cpp \
150 src/painterutils.cpp \
153 src/channelaggregator.cpp \
154 src/channelmodel.cpp \
155 src/aggregatevideosource.cpp \
156 src/channelview.cpp \
157 src/channelitemdelegate.cpp \
158 src/jsfunctions.cpp \
160 src/snapshotsettings.cpp \
161 src/snapshotpreview.cpp \
163 RESOURCES += resources.qrc
164 DESTDIR = build/target/
165 OBJECTS_DIR = build/obj/
169 # Tell Qt Linguist that we use UTF-8 strings in our sources
172 include(locale/locale.pri)
175 DISTFILES += CHANGES COPYING
177 qt:greaterThan(QT_MAJOR_VERSION, 4) {
179 INCLUDEPATH += /usr/include/phonon4qt5
182 INCLUDEPATH += /usr/include/phonon
185 HEADERS += src/gnomeglobalshortcutbackend.h
186 SOURCES += src/gnomeglobalshortcutbackend.cpp
187 isEmpty(PREFIX):PREFIX = /usr
188 BINDIR = $$PREFIX/bin
190 target.path = $$BINDIR
191 DATADIR = $$PREFIX/share
192 PKGDATADIR = $$DATADIR/minitube
193 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
194 PKGDATADIR=\\\"$$PKGDATADIR\\\"
195 INSTALLS += translations \
206 translations.path = $$PKGDATADIR
207 translations.files += $$DESTDIR/locale
208 desktop.path = $$DATADIR/applications
209 desktop.files += minitube.desktop
210 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
211 iconsvg.files += data/minitube.svg
212 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
213 icon16.files += data/16x16/minitube.png
214 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
215 icon22.files += data/22x22/minitube.png
216 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
217 icon32.files += data/32x32/minitube.png
218 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
219 icon48.files += data/48x48/minitube.png
220 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
221 icon64.files += data/64x64/minitube.png
222 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
223 icon128.files += data/128x128/minitube.png
224 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
225 icon256.files += data/256x256/minitube.png
226 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
227 icon512.files += data/512x512/minitube.png
229 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)