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 phonon sql script
20 include(src/qtsingleapplication/qtsingleapplication.pri)
24 src/searchlineedit.h \
28 src/playlistitemdelegate.h \
36 src/videoareawidget.h \
38 src/videodefinition.h \
40 src/globalshortcuts.h \
41 src/globalshortcutbackend.h \
42 src/downloadmanager.h \
46 src/downloadlistview.h \
47 src/downloadsettings.h \
49 src/channelsuggest.h \
51 src/segmentedcontrol.h \
53 src/refinesearchwidget.h \
54 src/refinesearchbutton.h \
65 src/ytstandardfeed.h \
66 src/standardfeedsview.h \
71 src/videosourcewidget.h \
73 src/ytsinglevideosource.h \
81 src/channelaggregator.h \
83 src/aggregatevideosource.h \
85 src/channelitemdelegate.h \
88 SOURCES += src/main.cpp \
89 src/searchlineedit.cpp \
93 src/videomimedata.cpp \
94 src/updatechecker.cpp \
95 src/networkaccess.cpp \
96 src/searchparams.cpp \
97 src/minisplitter.cpp \
98 src/loadingwidget.cpp \
99 src/videoareawidget.cpp \
100 src/autocomplete.cpp \
101 src/videodefinition.cpp \
104 src/globalshortcuts.cpp \
105 src/globalshortcutbackend.cpp \
106 src/downloadmanager.cpp \
107 src/downloaditem.cpp \
108 src/downloadview.cpp \
109 src/downloadmodel.cpp \
110 src/downloadlistview.cpp \
111 src/downloadsettings.cpp \
112 src/channelsuggest.cpp \
114 src/segmentedcontrol.cpp \
115 src/playlistview.cpp \
116 src/refinesearchwidget.cpp \
117 src/refinesearchbutton.cpp \
118 src/sidebarwidget.cpp \
124 src/playlistitemdelegate.cpp \
125 src/playlistmodel.cpp \
126 src/videosource.cpp \
128 src/ytstandardfeed.cpp \
129 src/standardfeedsview.cpp \
131 src/ytcategories.cpp \
132 src/ytfeedreader.cpp \
133 src/ytsuggester.cpp \
134 src/videosourcewidget.cpp \
135 src/regionsview.cpp \
136 src/ytsinglevideosource.cpp \
137 src/sidebarheader.cpp \
141 src/painterutils.cpp \
144 src/channelaggregator.cpp \
145 src/channelmodel.cpp \
146 src/aggregatevideosource.cpp \
147 src/channelview.cpp \
148 src/channelitemdelegate.cpp \
149 src/jsfunctions.cpp \
151 RESOURCES += resources.qrc
152 DESTDIR = build/target/
153 OBJECTS_DIR = build/obj/
157 # Tell Qt Linguist that we use UTF-8 strings in our sources
160 include(locale/locale.pri)
163 DISTFILES += CHANGES COPYING
165 INCLUDEPATH += /usr/include/phonon
167 HEADERS += src/gnomeglobalshortcutbackend.h
168 SOURCES += src/gnomeglobalshortcutbackend.cpp
169 isEmpty(PREFIX):PREFIX = /usr
170 BINDIR = $$PREFIX/bin
172 target.path = $$BINDIR
173 DATADIR = $$PREFIX/share
174 PKGDATADIR = $$DATADIR/minitube
175 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
176 PKGDATADIR=\\\"$$PKGDATADIR\\\"
177 INSTALLS += translations \
188 translations.path = $$PKGDATADIR
189 translations.files += $$DESTDIR/locale
190 desktop.path = $$DATADIR/applications
191 desktop.files += minitube.desktop
192 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
193 iconsvg.files += data/minitube.svg
194 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
195 icon16.files += data/16x16/minitube.png
196 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
197 icon22.files += data/22x22/minitube.png
198 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
199 icon32.files += data/32x32/minitube.png
200 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
201 icon48.files += data/48x48/minitube.png
202 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
203 icon64.files += data/64x64/minitube.png
204 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
205 icon128.files += data/128x128/minitube.png
206 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
207 icon256.files += data/256x256/minitube.png
208 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
209 icon512.files += data/512x512/minitube.png
211 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)