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