1 | TEMPLATE = app
|
---|
2 | LANGUAGE = C++
|
---|
3 |
|
---|
4 | CONFIG += qt warn_on
|
---|
5 | CONFIG += release
|
---|
6 | #CONFIG += debug
|
---|
7 |
|
---|
8 | QT += network xml
|
---|
9 |
|
---|
10 | RESOURCES = icons.qrc
|
---|
11 |
|
---|
12 | INCLUDEPATH += mpcgui
|
---|
13 | DEPENDPATH += mpcgui
|
---|
14 |
|
---|
15 | #DEFINES += EXPERIMENTAL
|
---|
16 | DEFINES += SINGLE_INSTANCE
|
---|
17 | DEFINES += FIND_SUBTITLES
|
---|
18 | DEFINES += VIDEOPREVIEW
|
---|
19 | DEFINES += YOUTUBE_SUPPORT
|
---|
20 | DEFINES += GUI_CHANGE_ON_RUNTIME
|
---|
21 | DEFINES += LOG_MPLAYER
|
---|
22 | DEFINES += LOG_SMPLAYER
|
---|
23 | DEFINES += SKINS
|
---|
24 | DEFINES += UPDATE_CHECKER
|
---|
25 | #DEFINES += USE_FONTCONFIG_OPTIONS
|
---|
26 |
|
---|
27 | # Disable SINGLE_INSTANCE if Qt < 4.4
|
---|
28 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
29 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
30 | message("SINGLE_INSTANCE requires Qt > 4.3. Disabled.")
|
---|
31 | DEFINES -= SINGLE_INSTANCE
|
---|
32 | }
|
---|
33 | }
|
---|
34 |
|
---|
35 | # Disable SKINS if Qt < 4.4
|
---|
36 | contains( DEFINES, SKINS ) {
|
---|
37 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
38 | message("SKINS requires Qt > 4.3. Disabled.")
|
---|
39 | DEFINES -= SKINS
|
---|
40 | }
|
---|
41 | }
|
---|
42 |
|
---|
43 | # Disable FIND_SUBTITLES if Qt < 4.4
|
---|
44 | contains( DEFINES, FIND_SUBTITLES ) {
|
---|
45 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
46 | message("FIND_SUBTITLES requires Qt > 4.3. Disabled.")
|
---|
47 | DEFINES -= FIND_SUBTITLES
|
---|
48 | }
|
---|
49 | }
|
---|
50 |
|
---|
51 | # Disable UPDATE_CHECKER if Qt < 4.4
|
---|
52 | contains( DEFINES, UPDATE_CHECKER ) {
|
---|
53 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
54 | message("UPDATE_CHECKER requires Qt > 4.3. Disabled.")
|
---|
55 | DEFINES -= UPDATE_CHECKER
|
---|
56 | }
|
---|
57 | }
|
---|
58 |
|
---|
59 | HEADERS += guiconfig.h \
|
---|
60 | config.h \
|
---|
61 | constants.h \
|
---|
62 | svn_revision.h \
|
---|
63 | version.h \
|
---|
64 | chapters.h \
|
---|
65 | global.h \
|
---|
66 | paths.h \
|
---|
67 | helper.h \
|
---|
68 | colorutils.h \
|
---|
69 | translator.h \
|
---|
70 | subtracks.h \
|
---|
71 | tracks.h \
|
---|
72 | titletracks.h \
|
---|
73 | discname.h \
|
---|
74 | extensions.h \
|
---|
75 | desktopinfo.h \
|
---|
76 | myprocess.h \
|
---|
77 | mplayerversion.h \
|
---|
78 | mplayerprocess.h \
|
---|
79 | infoprovider.h \
|
---|
80 | mplayerwindow.h \
|
---|
81 | mediadata.h \
|
---|
82 | audioequalizerlist.h \
|
---|
83 | mediasettings.h \
|
---|
84 | assstyles.h \
|
---|
85 | filters.h \
|
---|
86 | preferences.h \
|
---|
87 | filesettingsbase.h \
|
---|
88 | filesettings.h \
|
---|
89 | filesettingshash.h \
|
---|
90 | filehash.h \
|
---|
91 | tvsettings.h \
|
---|
92 | images.h \
|
---|
93 | inforeader.h \
|
---|
94 | deviceinfo.h \
|
---|
95 | recents.h \
|
---|
96 | urlhistory.h \
|
---|
97 | core.h \
|
---|
98 | logwindow.h \
|
---|
99 | infofile.h \
|
---|
100 | seekwidget.h \
|
---|
101 | mytablewidget.h \
|
---|
102 | shortcutgetter.h \
|
---|
103 | actionseditor.h \
|
---|
104 | filechooser.h \
|
---|
105 | vdpauproperties.h \
|
---|
106 | preferencesdialog.h \
|
---|
107 | lineedit_with_icon.h \
|
---|
108 | mylineedit.h \
|
---|
109 | mycombobox.h \
|
---|
110 | tristatecombo.h \
|
---|
111 | languages.h \
|
---|
112 | selectcolorbutton.h \
|
---|
113 | simplehttp.h \
|
---|
114 | prefwidget.h \
|
---|
115 | prefgeneral.h \
|
---|
116 | prefdrives.h \
|
---|
117 | prefinterface.h \
|
---|
118 | prefperformance.h \
|
---|
119 | prefinput.h \
|
---|
120 | prefsubtitles.h \
|
---|
121 | prefadvanced.h \
|
---|
122 | prefplaylist.h \
|
---|
123 | preftv.h \
|
---|
124 | filepropertiesdialog.h \
|
---|
125 | multilineinputdialog.h \
|
---|
126 | playlist.h \
|
---|
127 | playlistdock.h \
|
---|
128 | verticaltext.h \
|
---|
129 | eqslider.h \
|
---|
130 | videoequalizer2.h \
|
---|
131 | audioequalizer.h \
|
---|
132 | myslider.h \
|
---|
133 | timeslider.h \
|
---|
134 | inputdvddirectory.h \
|
---|
135 | inputurl.h \
|
---|
136 | myaction.h \
|
---|
137 | myactiongroup.h \
|
---|
138 | filedialog.h \
|
---|
139 | inputmplayerversion.h \
|
---|
140 | about.h \
|
---|
141 | errordialog.h \
|
---|
142 | timedialog.h \
|
---|
143 | favorites.h \
|
---|
144 | tvlist.h \
|
---|
145 | favoriteeditor.h \
|
---|
146 | basegui.h \
|
---|
147 | baseguiplus.h \
|
---|
148 | floatingwidget.h \
|
---|
149 | widgetactions.h \
|
---|
150 | toolbareditor.h \
|
---|
151 | editabletoolbar.h \
|
---|
152 | defaultgui.h \
|
---|
153 | minigui.h \
|
---|
154 | mpcgui/mpcgui.h \
|
---|
155 | mpcgui/mpcstyles.h \
|
---|
156 | clhelp.h \
|
---|
157 | smplayer.h \
|
---|
158 | myapplication.h
|
---|
159 |
|
---|
160 |
|
---|
161 | SOURCES += version.cpp \
|
---|
162 | global.cpp \
|
---|
163 | paths.cpp \
|
---|
164 | chapters.cpp \
|
---|
165 | helper.cpp \
|
---|
166 | colorutils.cpp \
|
---|
167 | translator.cpp \
|
---|
168 | subtracks.cpp \
|
---|
169 | tracks.cpp \
|
---|
170 | titletracks.cpp \
|
---|
171 | discname.cpp \
|
---|
172 | extensions.cpp \
|
---|
173 | desktopinfo.cpp \
|
---|
174 | myprocess.cpp \
|
---|
175 | mplayerversion.cpp \
|
---|
176 | mplayerprocess.cpp \
|
---|
177 | infoprovider.cpp \
|
---|
178 | mplayerwindow.cpp \
|
---|
179 | mediadata.cpp \
|
---|
180 | mediasettings.cpp \
|
---|
181 | assstyles.cpp \
|
---|
182 | filters.cpp \
|
---|
183 | preferences.cpp \
|
---|
184 | filesettingsbase.cpp \
|
---|
185 | filesettings.cpp \
|
---|
186 | filesettingshash.cpp \
|
---|
187 | filehash.cpp \
|
---|
188 | tvsettings.cpp \
|
---|
189 | images.cpp \
|
---|
190 | inforeader.cpp \
|
---|
191 | deviceinfo.cpp \
|
---|
192 | recents.cpp \
|
---|
193 | urlhistory.cpp \
|
---|
194 | core.cpp \
|
---|
195 | logwindow.cpp \
|
---|
196 | infofile.cpp \
|
---|
197 | seekwidget.cpp \
|
---|
198 | mytablewidget.cpp \
|
---|
199 | shortcutgetter.cpp \
|
---|
200 | actionseditor.cpp \
|
---|
201 | filechooser.cpp \
|
---|
202 | vdpauproperties.cpp \
|
---|
203 | preferencesdialog.cpp \
|
---|
204 | lineedit_with_icon.cpp \
|
---|
205 | mylineedit.cpp \
|
---|
206 | mycombobox.cpp \
|
---|
207 | tristatecombo.cpp \
|
---|
208 | languages.cpp \
|
---|
209 | selectcolorbutton.cpp \
|
---|
210 | simplehttp.cpp \
|
---|
211 | prefwidget.cpp \
|
---|
212 | prefgeneral.cpp \
|
---|
213 | prefdrives.cpp \
|
---|
214 | prefinterface.cpp \
|
---|
215 | prefperformance.cpp \
|
---|
216 | prefinput.cpp \
|
---|
217 | prefsubtitles.cpp \
|
---|
218 | prefadvanced.cpp \
|
---|
219 | prefplaylist.cpp \
|
---|
220 | preftv.cpp \
|
---|
221 | filepropertiesdialog.cpp \
|
---|
222 | multilineinputdialog.cpp \
|
---|
223 | playlist.cpp \
|
---|
224 | playlistdock.cpp \
|
---|
225 | verticaltext.cpp \
|
---|
226 | eqslider.cpp \
|
---|
227 | videoequalizer2.cpp \
|
---|
228 | audioequalizer.cpp \
|
---|
229 | myslider.cpp \
|
---|
230 | timeslider.cpp \
|
---|
231 | inputdvddirectory.cpp \
|
---|
232 | inputurl.cpp \
|
---|
233 | myaction.cpp \
|
---|
234 | myactiongroup.cpp \
|
---|
235 | filedialog.cpp \
|
---|
236 | inputmplayerversion.cpp \
|
---|
237 | about.cpp \
|
---|
238 | errordialog.cpp \
|
---|
239 | timedialog.cpp \
|
---|
240 | favorites.cpp \
|
---|
241 | tvlist.cpp \
|
---|
242 | favoriteeditor.cpp \
|
---|
243 | basegui.cpp \
|
---|
244 | baseguiplus.cpp \
|
---|
245 | floatingwidget.cpp \
|
---|
246 | widgetactions.cpp \
|
---|
247 | toolbareditor.cpp \
|
---|
248 | editabletoolbar.cpp \
|
---|
249 | defaultgui.cpp \
|
---|
250 | minigui.cpp \
|
---|
251 | mpcgui/mpcgui.cpp \
|
---|
252 | mpcgui/mpcstyles.cpp \
|
---|
253 | clhelp.cpp \
|
---|
254 | smplayer.cpp \
|
---|
255 | myapplication.cpp \
|
---|
256 | main.cpp
|
---|
257 |
|
---|
258 | FORMS = inputdvddirectory.ui logwindowbase.ui filepropertiesdialog.ui \
|
---|
259 | eqslider.ui seekwidget.ui inputurl.ui videoequalizer2.ui vdpauproperties.ui \
|
---|
260 | preferencesdialog.ui prefgeneral.ui prefdrives.ui prefinterface.ui \
|
---|
261 | prefperformance.ui prefinput.ui prefsubtitles.ui prefadvanced.ui \
|
---|
262 | prefplaylist.ui preftv.ui favoriteeditor.ui \
|
---|
263 | about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
|
---|
264 | toolbareditor.ui multilineinputdialog.ui
|
---|
265 |
|
---|
266 | # qtsingleapplication
|
---|
267 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
268 | INCLUDEPATH += qtsingleapplication
|
---|
269 | DEPENDPATH += qtsingleapplication
|
---|
270 |
|
---|
271 | SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
|
---|
272 | HEADERS += qtsingleapplication.h qtlocalpeer.h
|
---|
273 | }
|
---|
274 |
|
---|
275 | # Find subtitles dialog
|
---|
276 | contains( DEFINES, FIND_SUBTITLES ) {
|
---|
277 | DEFINES += DOWNLOAD_SUBS
|
---|
278 |
|
---|
279 | INCLUDEPATH += findsubtitles
|
---|
280 | DEPENDPATH += findsubtitles
|
---|
281 |
|
---|
282 | INCLUDEPATH += findsubtitles/maia
|
---|
283 | DEPENDPATH += findsubtitles/maia
|
---|
284 |
|
---|
285 | HEADERS += findsubtitlesconfigdialog.h findsubtitleswindow.h
|
---|
286 | SOURCES += findsubtitlesconfigdialog.cpp findsubtitleswindow.cpp
|
---|
287 | FORMS += findsubtitleswindow.ui findsubtitlesconfigdialog.ui
|
---|
288 |
|
---|
289 | # xmlrpc client code to connect to opensubtitles.org
|
---|
290 | HEADERS += maiaObject.h maiaFault.h maiaXmlRpcClient.h osclient.h
|
---|
291 | SOURCES += maiaObject.cpp maiaFault.cpp maiaXmlRpcClient.cpp osclient.cpp
|
---|
292 | }
|
---|
293 |
|
---|
294 | # Download subtitles
|
---|
295 | contains( DEFINES, DOWNLOAD_SUBS ) {
|
---|
296 | INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
297 | DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
|
---|
298 |
|
---|
299 | HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
|
---|
300 | SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
|
---|
301 |
|
---|
302 | FORMS += subchooserdialog.ui
|
---|
303 |
|
---|
304 | HEADERS += crypt.h \
|
---|
305 | ioapi.h \
|
---|
306 | quazip.h \
|
---|
307 | quazipfile.h \
|
---|
308 | quazipfileinfo.h \
|
---|
309 | quazipnewinfo.h \
|
---|
310 | unzip.h \
|
---|
311 | zip.h
|
---|
312 |
|
---|
313 | SOURCES += ioapi.c \
|
---|
314 | quazip.cpp \
|
---|
315 | quazipfile.cpp \
|
---|
316 | quazipnewinfo.cpp \
|
---|
317 | unzip.c \
|
---|
318 | zip.c
|
---|
319 |
|
---|
320 | LIBS += -lz
|
---|
321 |
|
---|
322 | win32 {
|
---|
323 | INCLUDEPATH += ..\\zlib
|
---|
324 | LIBS += -L..\\zlib
|
---|
325 | }
|
---|
326 | }
|
---|
327 |
|
---|
328 | # Youtube support
|
---|
329 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
---|
330 | INCLUDEPATH += youtube
|
---|
331 | DEPENDPATH += youtube
|
---|
332 |
|
---|
333 | HEADERS += retrieveyoutubeurl.h
|
---|
334 | SOURCES += retrieveyoutubeurl.cpp
|
---|
335 | }
|
---|
336 |
|
---|
337 | # Skins support
|
---|
338 | contains( DEFINES, SKINS ) {
|
---|
339 | INCLUDEPATH += skingui
|
---|
340 | DEPENDPATH += skingui
|
---|
341 |
|
---|
342 | HEADERS += myicon.h mybutton.h panelseeker.h playcontrol.h \
|
---|
343 | mediapanel.h volumecontrolpanel.h mediabarpanel.h \
|
---|
344 | qpropertysetter.h actiontools.h skingui.h
|
---|
345 | SOURCES += myicon.cpp mybutton.cpp panelseeker.cpp playcontrol.cpp \
|
---|
346 | mediapanel.cpp volumecontrolpanel.cpp mediabarpanel.cpp \
|
---|
347 | qpropertysetter.cpp actiontools.cpp skingui.cpp
|
---|
348 | FORMS += mediapanel.ui mediabarpanel.ui
|
---|
349 | }
|
---|
350 |
|
---|
351 | # Update checker
|
---|
352 | contains( DEFINES, UPDATE_CHECKER ) {
|
---|
353 | HEADERS += updatechecker.h
|
---|
354 | SOURCES += updatechecker.CPP
|
---|
355 | }
|
---|
356 |
|
---|
357 | # Videopreview
|
---|
358 | contains( DEFINES, VIDEOPREVIEW ) {
|
---|
359 | INCLUDEPATH += videopreview
|
---|
360 | DEPENDPATH += videopreview
|
---|
361 |
|
---|
362 | HEADERS += videopreview.h videopreviewconfigdialog.h
|
---|
363 | SOURCES += videopreview.cpp videopreviewconfigdialog.cpp
|
---|
364 |
|
---|
365 | FORMS += videopreviewconfigdialog.ui
|
---|
366 | }
|
---|
367 |
|
---|
368 | unix {
|
---|
369 | UI_DIR = .ui
|
---|
370 | MOC_DIR = .moc
|
---|
371 | OBJECTS_DIR = .obj
|
---|
372 |
|
---|
373 | DEFINES += DATA_PATH=$(DATA_PATH)
|
---|
374 | DEFINES += DOC_PATH=$(DOC_PATH)
|
---|
375 | DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
|
---|
376 | DEFINES += THEMES_PATH=$(THEMES_PATH)
|
---|
377 | DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
|
---|
378 | #DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
379 | }
|
---|
380 |
|
---|
381 | win32 {
|
---|
382 | DEFINES += SCREENSAVER_OFF
|
---|
383 | DEFINES += FONTCACHE_DIALOG
|
---|
384 | DEFINES += USE_FONTCONFIG_OPTIONS
|
---|
385 |
|
---|
386 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
387 | HEADERS += screensaver.h
|
---|
388 | SOURCES += screensaver.cpp
|
---|
389 | }
|
---|
390 |
|
---|
391 | contains( DEFINES, FONTCACHE_DIALOG ) {
|
---|
392 | HEADERS += fontcache.h
|
---|
393 | SOURCES += fontcache.cpp
|
---|
394 | }
|
---|
395 |
|
---|
396 | !contains( DEFINES, PORTABLE_APP ) {
|
---|
397 | DEFINES += USE_ASSOCIATIONS
|
---|
398 | }
|
---|
399 |
|
---|
400 | contains( DEFINES, USE_ASSOCIATIONS ) {
|
---|
401 | HEADERS += prefassociations.h winfileassoc.h
|
---|
402 | SOURCES += prefassociations.cpp winfileassoc.cpp
|
---|
403 | FORMS += prefassociations.ui
|
---|
404 | }
|
---|
405 |
|
---|
406 | contains(TEMPLATE,vcapp) {
|
---|
407 | LIBS += ole32.lib user32.lib
|
---|
408 | } else {
|
---|
409 | LIBS += libole32
|
---|
410 | }
|
---|
411 |
|
---|
412 | RC_FILE = smplayer.rc
|
---|
413 | DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
414 | #debug {
|
---|
415 | # CONFIG += console
|
---|
416 | #}
|
---|
417 | }
|
---|
418 |
|
---|
419 | os2 {
|
---|
420 | DEFINES += SCREENSAVER_OFF
|
---|
421 | INCLUDEPATH += .
|
---|
422 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
423 | HEADERS += screensaver.h
|
---|
424 | SOURCES += screensaver.cpp
|
---|
425 | }
|
---|
426 | RC_FILE = smplayer_os2.rc
|
---|
427 | }
|
---|
428 |
|
---|
429 |
|
---|
430 | TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
|
---|
431 | translations/smplayer_sk.ts translations/smplayer_it.ts \
|
---|
432 | translations/smplayer_fr.ts translations/smplayer_zh_CN.ts \
|
---|
433 | translations/smplayer_ru_RU.ts translations/smplayer_hu.ts \
|
---|
434 | translations/smplayer_en_US.ts translations/smplayer_pl.ts \
|
---|
435 | translations/smplayer_ja.ts translations/smplayer_nl.ts \
|
---|
436 | translations/smplayer_uk_UA.ts translations/smplayer_pt_BR.ts \
|
---|
437 | translations/smplayer_ka.ts translations/smplayer_cs.ts \
|
---|
438 | translations/smplayer_bg.ts translations/smplayer_tr.ts \
|
---|
439 | translations/smplayer_sv.ts translations/smplayer_sr.ts \
|
---|
440 | translations/smplayer_zh_TW.ts translations/smplayer_ro_RO.ts \
|
---|
441 | translations/smplayer_pt.ts translations/smplayer_el_GR.ts \
|
---|
442 | translations/smplayer_fi.ts translations/smplayer_ko.ts \
|
---|
443 | translations/smplayer_mk.ts translations/smplayer_eu.ts \
|
---|
444 | translations/smplayer_ca.ts translations/smplayer_sl_SI.ts \
|
---|
445 | translations/smplayer_ar_SY.ts translations/smplayer_ku.ts \
|
---|
446 | translations/smplayer_gl.ts translations/smplayer_vi_VN.ts \
|
---|
447 | translations/smplayer_et.ts translations/smplayer_lt.ts \
|
---|
448 | translations/smplayer_da.ts translations/smplayer_hr.ts \
|
---|
449 | translations/smplayer_he_IL.ts translations/smplayer_th.ts \
|
---|
450 | translations/smplayer_ms_MY.ts
|
---|