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