source: smplayer/trunk/src/smplayer.pro@ 156

Last change on this file since 156 was 156, checked in by Silvan Scherrer, 11 years ago

SMPlayer: update trunk to 0.8.6

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