]> git.sur5r.net Git - minitube/blob - minitube.pro
2.5.2
[minitube] / minitube.pro
1 CONFIG += release
2 TEMPLATE = app
3 VERSION = 2.5.2
4 DEFINES += APP_VERSION="$$VERSION"
5
6 APP_NAME = Minitube
7 DEFINES += APP_NAME="$$APP_NAME"
8
9 APP_UNIX_NAME = minitube
10 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
11
12 DEFINES += APP_PHONON
13 DEFINES += APP_PHONON_SEEK
14 DEFINES += APP_SNAPSHOT
15 DEFINES += APP_YT3
16
17 message(Building $${APP_NAME} $${VERSION})
18 message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
19
20 DEFINES *= QT_NO_DEBUG_OUTPUT
21 DEFINES *= QT_USE_QSTRINGBUILDER
22 DEFINES *= QT_STRICT_ITERATORS
23
24 !contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
25     warning("You need to specify a Google API Key, refer to the README.md file for details")
26 }
27
28 TARGET = $${APP_UNIX_NAME}
29
30 QT += network sql script
31 qt:greaterThan(QT_MAJOR_VERSION, 4) {
32     contains(QT, gui): QT *= widgets
33 }
34
35 include(src/qtsingleapplication/qtsingleapplication.pri)
36
37 HEADERS += src/video.h \
38     src/searchlineedit.h \
39     src/spacer.h \
40     src/constants.h \
41     src/playlistitemdelegate.h \
42     src/networkaccess.h \
43     src/videomimedata.h \
44     src/global.h \
45     src/updatechecker.h \
46     src/searchparams.h \
47     src/minisplitter.h \
48     src/loadingwidget.h \
49     src/videoareawidget.h \
50     src/autocomplete.h \
51     src/videodefinition.h \
52     src/fontutils.h \
53     src/globalshortcuts.h \
54     src/globalshortcutbackend.h \
55     src/downloadmanager.h \
56     src/downloaditem.h \
57     src/downloadview.h \
58     src/downloadmodel.h \
59     src/downloadlistview.h \
60     src/downloadsettings.h \
61     src/suggester.h \
62     src/channelsuggest.h \
63     src/temporary.h \
64     src/segmentedcontrol.h \
65     src/playlistview.h \
66     src/refinesearchwidget.h \
67     src/refinesearchbutton.h \
68     src/sidebarwidget.h \
69     src/homeview.h \
70     src/aboutview.h \
71     src/mainwindow.h \
72     src/mediaview.h \
73     src/searchview.h \
74     src/view.h \
75     src/playlistmodel.h \
76     src/videosource.h \
77     src/ytsearch.h \
78     src/ytstandardfeed.h \
79     src/standardfeedsview.h \
80     src/ytregions.h \
81     src/ytcategories.h \
82     src/ytfeedreader.h \
83     src/ytsuggester.h \
84     src/videosourcewidget.h \
85     src/regionsview.h \
86     src/ytsinglevideosource.h \
87     src/sidebarheader.h \
88     src/iconutils.h \
89     src/diskcache.h \
90     src/gridwidget.h \
91     src/painterutils.h \
92     src/database.h \
93     src/channelaggregator.h \
94     src/channelmodel.h \
95     src/aggregatevideosource.h \
96     src/channelview.h \
97     src/channelitemdelegate.h \
98     src/jsfunctions.h \
99     src/seekslider.h \
100     src/snapshotsettings.h \
101     src/snapshotpreview.h \
102     src/datautils.h \
103     src/yt3listparser.h \
104     src/ytchannel.h \
105     src/yt3.h \
106     src/paginatedvideosource.h \
107     src/compatibility/qurlqueryhelper.h \
108     src/compatibility/pathsservice.h \
109     src/searchwidget.h \
110     src/exlineedit.h \
111     src/channellistview.h
112 SOURCES += src/main.cpp \
113     src/searchlineedit.cpp \
114     src/spacer.cpp \
115     src/video.cpp \
116     src/videomimedata.cpp \
117     src/updatechecker.cpp \
118     src/networkaccess.cpp \
119     src/searchparams.cpp \
120     src/minisplitter.cpp \
121     src/loadingwidget.cpp \
122     src/videoareawidget.cpp \
123     src/autocomplete.cpp \
124     src/videodefinition.cpp \
125     src/constants.cpp \
126     src/fontutils.cpp \
127     src/globalshortcuts.cpp \
128     src/globalshortcutbackend.cpp \
129     src/downloadmanager.cpp \
130     src/downloaditem.cpp \
131     src/downloadview.cpp \
132     src/downloadmodel.cpp \
133     src/downloadlistview.cpp \
134     src/downloadsettings.cpp \
135     src/channelsuggest.cpp \
136     src/temporary.cpp \
137     src/segmentedcontrol.cpp \
138     src/playlistview.cpp \
139     src/refinesearchwidget.cpp \
140     src/refinesearchbutton.cpp \
141     src/sidebarwidget.cpp \
142     src/homeview.cpp \
143     src/mainwindow.cpp \
144     src/mediaview.cpp \
145     src/aboutview.cpp \
146     src/searchview.cpp \
147     src/playlistitemdelegate.cpp \
148     src/playlistmodel.cpp \
149     src/videosource.cpp \
150     src/ytsearch.cpp \
151     src/ytstandardfeed.cpp \
152     src/standardfeedsview.cpp \
153     src/ytregions.cpp \
154     src/ytcategories.cpp \
155     src/ytfeedreader.cpp \
156     src/ytsuggester.cpp \
157     src/videosourcewidget.cpp \
158     src/regionsview.cpp \
159     src/ytsinglevideosource.cpp \
160     src/sidebarheader.cpp \
161     src/iconutils.cpp \
162     src/diskcache.cpp \
163     src/gridwidget.cpp \
164     src/painterutils.cpp \
165     src/database.cpp \
166     src/channelaggregator.cpp \
167     src/channelmodel.cpp \
168     src/aggregatevideosource.cpp \
169     src/channelview.cpp \
170     src/channelitemdelegate.cpp \
171     src/jsfunctions.cpp \
172     src/seekslider.cpp \
173     src/snapshotsettings.cpp \
174     src/snapshotpreview.cpp \
175     src/datautils.cpp \
176     src/yt3listparser.cpp \
177     src/ytchannel.cpp \
178     src/yt3.cpp \
179     src/paginatedvideosource.cpp \
180     src/compatibility/pathsservice.cpp \
181     src/exlineedit.cpp \
182     src/channellistview.cpp
183 RESOURCES += resources.qrc
184 DESTDIR = build/target/
185 OBJECTS_DIR = build/obj/
186 MOC_DIR = build/moc/
187 RCC_DIR = build/rcc/
188
189 # Tell Qt Linguist that we use UTF-8 strings in our sources
190 CODECFORTR = UTF-8
191 CODECFORSRC = UTF-8
192 include(locale/locale.pri)
193
194 # deploy
195 DISTFILES += CHANGES COPYING
196 unix:!mac {
197     DEFINES += APP_LINUX
198     qt:greaterThan(QT_MAJOR_VERSION, 4) {
199         LIBS += -lphonon4qt5
200         INCLUDEPATH += /usr/include/phonon4qt5
201     } else {
202         QT += phonon
203         INCLUDEPATH += /usr/include/phonon
204     }
205     QT += dbus
206     HEADERS += src/gnomeglobalshortcutbackend.h
207     SOURCES += src/gnomeglobalshortcutbackend.cpp
208     isEmpty(PREFIX):PREFIX = /usr
209     BINDIR = $$PREFIX/bin
210     INSTALLS += target
211     target.path = $$BINDIR
212     DATADIR = $$PREFIX/share
213     PKGDATADIR = $$DATADIR/minitube
214     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
215         PKGDATADIR=\\\"$$PKGDATADIR\\\"
216     INSTALLS += translations \
217         desktop \
218         iconsvg \
219         icon16 \
220         icon22 \
221         icon32 \
222         icon48 \
223         icon64 \
224         icon128 \
225         icon256 \
226         icon512
227     translations.path = $$PKGDATADIR
228     translations.files += $$DESTDIR/locale
229     desktop.path = $$DATADIR/applications
230     desktop.files += minitube.desktop
231     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
232     iconsvg.files += data/minitube.svg
233     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
234     icon16.files += data/16x16/minitube.png
235     icon22.path = $$DATADIR/icons/hicolor/22x22/apps
236     icon22.files += data/22x22/minitube.png
237     icon32.path = $$DATADIR/icons/hicolor/32x32/apps
238     icon32.files += data/32x32/minitube.png
239     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
240     icon48.files += data/48x48/minitube.png
241     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
242     icon64.files += data/64x64/minitube.png
243     icon128.path = $$DATADIR/icons/hicolor/128x128/apps
244     icon128.files += data/128x128/minitube.png
245     icon256.path = $$DATADIR/icons/hicolor/256x256/apps
246     icon256.files += data/256x256/minitube.png
247     icon512.path = $$DATADIR/icons/hicolor/512x512/apps
248     icon512.files += data/512x512/minitube.png
249 }
250 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
251
252 OTHER_FILES += \
253     sounds/snapshot.wav