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