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}
17 QT += network xml phonon sql script
18 include(src/qtsingleapplication/qtsingleapplication.pri)
21 src/searchlineedit.h \
25 src/playlistitemdelegate.h \
33 src/videoareawidget.h \
35 src/videodefinition.h \
37 src/globalshortcuts.h \
38 src/globalshortcutbackend.h \
39 src/downloadmanager.h \
43 src/downloadlistview.h \
44 src/downloadsettings.h \
46 src/channelsuggest.h \
48 src/segmentedcontrol.h \
50 src/refinesearchwidget.h \
51 src/refinesearchbutton.h \
62 src/ytstandardfeed.h \
63 src/standardfeedsview.h \
68 src/videosourcewidget.h \
70 src/ytsinglevideosource.h \
78 src/channelaggregator.h \
80 src/aggregatevideosource.h \
82 src/channelitemdelegate.h \
85 SOURCES += src/main.cpp \
86 src/searchlineedit.cpp \
90 src/videomimedata.cpp \
91 src/updatechecker.cpp \
92 src/networkaccess.cpp \
93 src/searchparams.cpp \
94 src/minisplitter.cpp \
95 src/loadingwidget.cpp \
96 src/videoareawidget.cpp \
97 src/autocomplete.cpp \
98 src/videodefinition.cpp \
101 src/globalshortcuts.cpp \
102 src/globalshortcutbackend.cpp \
103 src/downloadmanager.cpp \
104 src/downloaditem.cpp \
105 src/downloadview.cpp \
106 src/downloadmodel.cpp \
107 src/downloadlistview.cpp \
108 src/downloadsettings.cpp \
109 src/channelsuggest.cpp \
111 src/segmentedcontrol.cpp \
112 src/playlistview.cpp \
113 src/refinesearchwidget.cpp \
114 src/refinesearchbutton.cpp \
115 src/sidebarwidget.cpp \
121 src/playlistitemdelegate.cpp \
122 src/playlistmodel.cpp \
123 src/videosource.cpp \
125 src/ytstandardfeed.cpp \
126 src/standardfeedsview.cpp \
128 src/ytcategories.cpp \
129 src/ytfeedreader.cpp \
130 src/ytsuggester.cpp \
131 src/videosourcewidget.cpp \
132 src/regionsview.cpp \
133 src/ytsinglevideosource.cpp \
134 src/sidebarheader.cpp \
138 src/painterutils.cpp \
141 src/channelaggregator.cpp \
142 src/channelmodel.cpp \
143 src/aggregatevideosource.cpp \
144 src/channelview.cpp \
145 src/channelitemdelegate.cpp \
146 src/jsfunctions.cpp \
148 RESOURCES += resources.qrc
149 DESTDIR = build/target/
150 OBJECTS_DIR = build/obj/
154 # Tell Qt Linguist that we use UTF-8 strings in our sources
157 include(locale/locale.pri)
160 DISTFILES += CHANGES COPYING
162 INCLUDEPATH += /usr/include/phonon
164 HEADERS += src/gnomeglobalshortcutbackend.h
165 SOURCES += src/gnomeglobalshortcutbackend.cpp
166 isEmpty(PREFIX):PREFIX = /usr
167 BINDIR = $$PREFIX/bin
169 target.path = $$BINDIR
170 DATADIR = $$PREFIX/share
171 PKGDATADIR = $$DATADIR/minitube
172 DEFINES += DATADIR=\\\"$$DATADIR\\\" \
173 PKGDATADIR=\\\"$$PKGDATADIR\\\"
174 INSTALLS += translations \
185 translations.path = $$PKGDATADIR
186 translations.files += $$DESTDIR/locale
187 desktop.path = $$DATADIR/applications
188 desktop.files += minitube.desktop
189 iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
190 iconsvg.files += data/minitube.svg
191 icon16.path = $$DATADIR/icons/hicolor/16x16/apps
192 icon16.files += data/16x16/minitube.png
193 icon22.path = $$DATADIR/icons/hicolor/22x22/apps
194 icon22.files += data/22x22/minitube.png
195 icon32.path = $$DATADIR/icons/hicolor/32x32/apps
196 icon32.files += data/32x32/minitube.png
197 icon48.path = $$DATADIR/icons/hicolor/48x48/apps
198 icon48.files += data/48x48/minitube.png
199 icon64.path = $$DATADIR/icons/hicolor/64x64/apps
200 icon64.files += data/64x64/minitube.png
201 icon128.path = $$DATADIR/icons/hicolor/128x128/apps
202 icon128.files += data/128x128/minitube.png
203 icon256.path = $$DATADIR/icons/hicolor/256x256/apps
204 icon256.files += data/256x256/minitube.png
205 icon512.path = $$DATADIR/icons/hicolor/512x512/apps
206 icon512.files += data/512x512/minitube.png
208 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)