4 DEFINES += APP_VERSION="$$VERSION"
7 DEFINES += APP_NAME="$$APP_NAME"
9 APP_UNIX_NAME = minitube
10 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
12 DEFINES *= QT_NO_DEBUG_OUTPUT
13 DEFINES *= QT_USE_QSTRINGBUILDER
14 DEFINES += QT_STRICT_ITERATORS
16 TARGET = $${APP_UNIX_NAME}
18 QT += network xml sql script
20 qt:greaterThan(QT_MAJOR_VERSION, 4) {
21 contains(QT, gui): QT *= widgets
26 include(src/qtsingleapplication/qtsingleapplication.pri)
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 SOURCES += src/main.cpp \
95 src/searchlineedit.cpp \
99 src/videomimedata.cpp \
100 src/updatechecker.cpp \
101 src/networkaccess.cpp \
102 src/searchparams.cpp \
103 src/minisplitter.cpp \
104 src/loadingwidget.cpp \
105 src/videoareawidget.cpp \
106 src/autocomplete.cpp \
107 src/videodefinition.cpp \
110 src/globalshortcuts.cpp \
111 src/globalshortcutbackend.cpp \
112 src/downloadmanager.cpp \
113 src/downloaditem.cpp \
114 src/downloadview.cpp \
115 src/downloadmodel.cpp \
116 src/downloadlistview.cpp \
117 src/downloadsettings.cpp \
118 src/channelsuggest.cpp \
120 src/segmentedcontrol.cpp \
121 src/playlistview.cpp \
122 src/refinesearchwidget.cpp \
123 src/refinesearchbutton.cpp \
124 src/sidebarwidget.cpp \
130 src/playlistitemdelegate.cpp \
131 src/playlistmodel.cpp \
132 src/videosource.cpp \
134 src/ytstandardfeed.cpp \
135 src/standardfeedsview.cpp \
137 src/ytcategories.cpp \
138 src/ytfeedreader.cpp \
139 src/ytsuggester.cpp \
140 src/videosourcewidget.cpp \
141 src/regionsview.cpp \
142 src/ytsinglevideosource.cpp \
143 src/sidebarheader.cpp \
147 src/painterutils.cpp \
150 src/channelaggregator.cpp \
151 src/channelmodel.cpp \
152 src/aggregatevideosource.cpp \
153 src/channelview.cpp \
154 src/channelitemdelegate.cpp \
155 src/jsfunctions.cpp \
157 RESOURCES += resources.qrc
158 DESTDIR = build/target/
159 OBJECTS_DIR = build/obj/
163 # Tell Qt Linguist that we use UTF-8 strings in our sources
166 include(locale/locale.pri)
169 DISTFILES += CHANGES COPYING
171 INCLUDEPATH += /usr/include/phonon
173 HEADERS += src/gnomeglobalshortcutbackend.h
174 SOURCES += src/gnomeglobalshortcutbackend.cpp
175 isEmpty(PREFIX):PREFIX = /usr
176 BINDIR = $$PREFIX/bin
178 target.path = $$BINDIR
179 DATADIR = $$PREFIX/share
180 PKGDATADIR = $$DATADIR/minitube
181 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
182 PKGDATADIR=\\\"$$PKGDATADIR\\\"
183 INSTALLS += translations \
194 translations.path = $$PKGDATADIR
195 translations.files += $$DESTDIR/locale
196 desktop.path = $$DATADIR/applications
197 desktop.files += minitube.desktop
198 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
199 iconsvg.files += data/minitube.svg
200 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
201 icon16.files += data/16x16/minitube.png
202 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
203 icon22.files += data/22x22/minitube.png
204 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
205 icon32.files += data/32x32/minitube.png
206 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
207 icon48.files += data/48x48/minitube.png
208 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
209 icon64.files += data/64x64/minitube.png
210 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
211 icon128.files += data/128x128/minitube.png
212 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
213 icon256.files += data/256x256/minitube.png
214 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
215 icon512.files += data/512x512/minitube.png
217 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)