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 | #DEFINES += EXPERIMENTAL
|
---|
13 | DEFINES += SINGLE_INSTANCE
|
---|
14 | DEFINES += FIND_SUBTITLES
|
---|
15 | DEFINES += VIDEOPREVIEW
|
---|
16 | DEFINES += YOUTUBE_SUPPORT
|
---|
17 | DEFINES += BLURAY_SUPPORT
|
---|
18 | DEFINES += TV_SUPPORT
|
---|
19 | DEFINES += GUI_CHANGE_ON_RUNTIME
|
---|
20 | DEFINES += LOG_MPLAYER
|
---|
21 | DEFINES += LOG_SMPLAYER
|
---|
22 | DEFINES += DEFAULTGUI
|
---|
23 | DEFINES += MINIGUI
|
---|
24 | DEFINES += MPCGUI
|
---|
25 | DEFINES += SKINS
|
---|
26 | !os2 {
|
---|
27 | DEFINES += MPRIS2
|
---|
28 | }
|
---|
29 | DEFINES += UPDATE_CHECKER
|
---|
30 | DEFINES += CHECK_UPGRADED
|
---|
31 | !os2 {
|
---|
32 | DEFINES += AUTO_SHUTDOWN_PC
|
---|
33 | }
|
---|
34 | DEFINES += CAPTURE_STREAM
|
---|
35 | DEFINES += BOOKMARKS
|
---|
36 | DEFINES += MOUSE_GESTURES
|
---|
37 | DEFINES += GLOBALSHORTCUTS
|
---|
38 |
|
---|
39 | !os2 {
|
---|
40 | DEFINES += MPV_SUPPORT
|
---|
41 | }
|
---|
42 | DEFINES += MPLAYER_SUPPORT
|
---|
43 |
|
---|
44 | # Whether to include support for the obsolete mplayer2 or not
|
---|
45 | # (requires MPLAYER_SUPPORT)
|
---|
46 | DEFINES += MPLAYER2_SUPPORT
|
---|
47 |
|
---|
48 | # Note to distro maintainers:
|
---|
49 | # By disabling SHARE_ACTIONS or SHARE_WIDGET
|
---|
50 | # you're preventing SMPlayer to receive donations and thus
|
---|
51 | # SERIOUSLY HURTING THE DEVELOPMENT AND PUTTING
|
---|
52 | # AT RISK THE CONTINUATION OF THIS PROJECT
|
---|
53 | # Please don't.
|
---|
54 |
|
---|
55 | DEFINES += SHARE_ACTIONS
|
---|
56 | DEFINES += SHARE_WIDGET
|
---|
57 |
|
---|
58 | # If Qt >= 5.4
|
---|
59 | greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
---|
60 | DEFINES += HDPI_SUPPORT
|
---|
61 | }
|
---|
62 |
|
---|
63 | #DEFINES += SIMPLE_BUILD
|
---|
64 | #DEFINES += IDOPT_BUILD
|
---|
65 |
|
---|
66 | contains( DEFINES, SIMPLE_BUILD ) {
|
---|
67 | DEFINES -= SINGLE_INSTANCE
|
---|
68 | DEFINES -= FIND_SUBTITLES
|
---|
69 | DEFINES -= VIDEOPREVIEW
|
---|
70 | DEFINES -= LOG_MPLAYER
|
---|
71 | DEFINES -= LOG_SMPLAYER
|
---|
72 | DEFINES -= MINIGUI
|
---|
73 | DEFINES -= MPCGUI
|
---|
74 | DEFINES -= SKINS
|
---|
75 | DEFINES -= MPRIS2
|
---|
76 | DEFINES -= UPDATE_CHECKER
|
---|
77 | DEFINES -= CHECK_UPGRADED
|
---|
78 | DEFINES -= SHARE_ACTIONS
|
---|
79 | DEFINES -= SHARE_WIDGET
|
---|
80 | DEFINES -= AUTO_SHUTDOWN_PC
|
---|
81 | DEFINES -= BOOKMARKS
|
---|
82 | DEFINES -= TV_SUPPORT
|
---|
83 | }
|
---|
84 |
|
---|
85 | contains( DEFINES, IDOPT_BUILD ) {
|
---|
86 | DEFINES -= MPCGUI
|
---|
87 | DEFINES -= SKINS
|
---|
88 | DEFINES -= CAPTURE_STREAM
|
---|
89 | DEFINES -= TV_SUPPORT
|
---|
90 | DEFINES -= MPLAYER_SUPPORT
|
---|
91 | DEFINES -= MPLAYER2_SUPPORT
|
---|
92 | }
|
---|
93 |
|
---|
94 | isEqual(QT_MAJOR_VERSION, 5) {
|
---|
95 | QT += widgets gui
|
---|
96 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x040000
|
---|
97 | win32 {
|
---|
98 | DEFINES -= MPRIS2
|
---|
99 | }
|
---|
100 | }
|
---|
101 |
|
---|
102 | contains(QT_VERSION, ^4\\.[0-3]\\..*) {
|
---|
103 | message("Some features requires Qt > 4.3.")
|
---|
104 |
|
---|
105 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
106 | DEFINES -= SINGLE_INSTANCE
|
---|
107 | message("SINGLE_INSTANCE disabled.")
|
---|
108 | }
|
---|
109 |
|
---|
110 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
---|
111 | DEFINES -= YOUTUBE_SUPPORT
|
---|
112 | message("YOUTUBE_SUPPORT disabled.")
|
---|
113 | }
|
---|
114 |
|
---|
115 | contains( DEFINES, SKINS ) {
|
---|
116 | DEFINES -= SKINS
|
---|
117 | message("SKINS disabled.")
|
---|
118 | }
|
---|
119 |
|
---|
120 | contains( DEFINES, FIND_SUBTITLES ) {
|
---|
121 | DEFINES -= FIND_SUBTITLES
|
---|
122 | message("FIND_SUBTITLES disabled.")
|
---|
123 | }
|
---|
124 |
|
---|
125 | contains( DEFINES, UPDATE_CHECKER ) {
|
---|
126 | DEFINES -= UPDATE_CHECKER
|
---|
127 | message("UPDATE_CHECKER disabled.")
|
---|
128 | }
|
---|
129 | }
|
---|
130 |
|
---|
131 | contains( DEFINES, GLOBALSHORTCUTS ) {
|
---|
132 | lessThan(QT_MAJOR_VERSION, 5) {
|
---|
133 | DEFINES -= GLOBALSHORTCUTS
|
---|
134 | message("GLOBALSHORTCUTS requires Qt 5. Disabled.")
|
---|
135 | }
|
---|
136 | }
|
---|
137 |
|
---|
138 | HEADERS += guiconfig.h \
|
---|
139 | config.h \
|
---|
140 | constants.h \
|
---|
141 | links.h \
|
---|
142 | svn_revision.h \
|
---|
143 | version.h \
|
---|
144 | chapters.h \
|
---|
145 | global.h \
|
---|
146 | paths.h \
|
---|
147 | helper.h \
|
---|
148 | colorutils.h \
|
---|
149 | translator.h \
|
---|
150 | subtracks.h \
|
---|
151 | tracks.h \
|
---|
152 | titletracks.h \
|
---|
153 | discname.h \
|
---|
154 | extensions.h \
|
---|
155 | desktopinfo.h \
|
---|
156 | myprocess.h \
|
---|
157 | mplayerversion.h \
|
---|
158 | playerid.h \
|
---|
159 | playerprocess.h \
|
---|
160 | infoprovider.h \
|
---|
161 | mplayerwindow.h \
|
---|
162 | mediadata.h \
|
---|
163 | audioequalizerlist.h \
|
---|
164 | mediasettings.h \
|
---|
165 | assstyles.h \
|
---|
166 | filters.h \
|
---|
167 | preferences.h \
|
---|
168 | filesettingsbase.h \
|
---|
169 | filesettings.h \
|
---|
170 | filesettingshash.h \
|
---|
171 | filehash.h \
|
---|
172 | images.h \
|
---|
173 | inforeader.h \
|
---|
174 | deviceinfo.h \
|
---|
175 | recents.h \
|
---|
176 | urlhistory.h \
|
---|
177 | core.h \
|
---|
178 | myscroller.h \
|
---|
179 | logwindow.h \
|
---|
180 | infowindow.h \
|
---|
181 | infofile.h \
|
---|
182 | seekwidget.h \
|
---|
183 | mytablewidget.h \
|
---|
184 | shortcutgetter.h \
|
---|
185 | actionseditor.h \
|
---|
186 | filechooser.h \
|
---|
187 | vdpauproperties.h \
|
---|
188 | preferencesdialog.h \
|
---|
189 | lineedit_with_icon.h \
|
---|
190 | mylineedit.h \
|
---|
191 | mycombobox.h \
|
---|
192 | tristatecombo.h \
|
---|
193 | languages.h \
|
---|
194 | selectcolorbutton.h \
|
---|
195 | prefwidget.h \
|
---|
196 | prefgeneral.h \
|
---|
197 | prefdrives.h \
|
---|
198 | prefinterface.h \
|
---|
199 | prefperformance.h \
|
---|
200 | prefinput.h \
|
---|
201 | prefsubtitles.h \
|
---|
202 | prefadvanced.h \
|
---|
203 | prefplaylist.h \
|
---|
204 | prefupdates.h \
|
---|
205 | prefnetwork.h \
|
---|
206 | filepropertiesdialog.h \
|
---|
207 | multilineinputdialog.h \
|
---|
208 | playlist.h \
|
---|
209 | playlistdock.h \
|
---|
210 | verticaltext.h \
|
---|
211 | eqslider.h \
|
---|
212 | videoequalizer.h \
|
---|
213 | audioequalizer.h \
|
---|
214 | myslider.h \
|
---|
215 | timeslider.h \
|
---|
216 | inputdvddirectory.h \
|
---|
217 | inputurl.h \
|
---|
218 | stereo3ddialog.h \
|
---|
219 | myaction.h \
|
---|
220 | myactiongroup.h \
|
---|
221 | filedialog.h \
|
---|
222 | inputmplayerversion.h \
|
---|
223 | about.h \
|
---|
224 | errordialog.h \
|
---|
225 | timedialog.h \
|
---|
226 | favorites.h \
|
---|
227 | favoriteeditor.h \
|
---|
228 | statewidget.h \
|
---|
229 | basegui.h \
|
---|
230 | baseguiplus.h \
|
---|
231 | autohidewidget.h \
|
---|
232 | widgetactions.h \
|
---|
233 | toolbareditor.h \
|
---|
234 | editabletoolbar.h \
|
---|
235 | clhelp.h \
|
---|
236 | cleanconfig.h \
|
---|
237 | smplayer.h \
|
---|
238 | myapplication.h
|
---|
239 |
|
---|
240 |
|
---|
241 | SOURCES += version.cpp \
|
---|
242 | global.cpp \
|
---|
243 | paths.cpp \
|
---|
244 | chapters.cpp \
|
---|
245 | helper.cpp \
|
---|
246 | colorutils.cpp \
|
---|
247 | translator.cpp \
|
---|
248 | subtracks.cpp \
|
---|
249 | tracks.cpp \
|
---|
250 | titletracks.cpp \
|
---|
251 | discname.cpp \
|
---|
252 | extensions.cpp \
|
---|
253 | desktopinfo.cpp \
|
---|
254 | myprocess.cpp \
|
---|
255 | mplayerversion.cpp \
|
---|
256 | playerid.cpp \
|
---|
257 | playerprocess.cpp \
|
---|
258 | infoprovider.cpp \
|
---|
259 | mplayerwindow.cpp \
|
---|
260 | mediadata.cpp \
|
---|
261 | mediasettings.cpp \
|
---|
262 | assstyles.cpp \
|
---|
263 | filters.cpp \
|
---|
264 | preferences.cpp \
|
---|
265 | filesettingsbase.cpp \
|
---|
266 | filesettings.cpp \
|
---|
267 | filesettingshash.cpp \
|
---|
268 | filehash.cpp \
|
---|
269 | images.cpp \
|
---|
270 | inforeader.cpp \
|
---|
271 | deviceinfo.cpp \
|
---|
272 | recents.cpp \
|
---|
273 | urlhistory.cpp \
|
---|
274 | core.cpp \
|
---|
275 | myscroller.cpp \
|
---|
276 | logwindow.cpp \
|
---|
277 | infowindow.cpp \
|
---|
278 | infofile.cpp \
|
---|
279 | seekwidget.cpp \
|
---|
280 | mytablewidget.cpp \
|
---|
281 | shortcutgetter.cpp \
|
---|
282 | actionseditor.cpp \
|
---|
283 | filechooser.cpp \
|
---|
284 | vdpauproperties.cpp \
|
---|
285 | preferencesdialog.cpp \
|
---|
286 | lineedit_with_icon.cpp \
|
---|
287 | mylineedit.cpp \
|
---|
288 | mycombobox.cpp \
|
---|
289 | tristatecombo.cpp \
|
---|
290 | languages.cpp \
|
---|
291 | selectcolorbutton.cpp \
|
---|
292 | prefwidget.cpp \
|
---|
293 | prefgeneral.cpp \
|
---|
294 | prefdrives.cpp \
|
---|
295 | prefinterface.cpp \
|
---|
296 | prefperformance.cpp \
|
---|
297 | prefinput.cpp \
|
---|
298 | prefsubtitles.cpp \
|
---|
299 | prefadvanced.cpp \
|
---|
300 | prefplaylist.cpp \
|
---|
301 | prefupdates.cpp \
|
---|
302 | prefnetwork.cpp \
|
---|
303 | filepropertiesdialog.cpp \
|
---|
304 | multilineinputdialog.cpp \
|
---|
305 | playlist.cpp \
|
---|
306 | playlistdock.cpp \
|
---|
307 | verticaltext.cpp \
|
---|
308 | eqslider.cpp \
|
---|
309 | videoequalizer.cpp \
|
---|
310 | audioequalizer.cpp \
|
---|
311 | myslider.cpp \
|
---|
312 | timeslider.cpp \
|
---|
313 | inputdvddirectory.cpp \
|
---|
314 | inputurl.cpp \
|
---|
315 | stereo3ddialog.cpp \
|
---|
316 | myaction.cpp \
|
---|
317 | myactiongroup.cpp \
|
---|
318 | filedialog.cpp \
|
---|
319 | inputmplayerversion.cpp \
|
---|
320 | about.cpp \
|
---|
321 | errordialog.cpp \
|
---|
322 | timedialog.cpp \
|
---|
323 | favorites.cpp \
|
---|
324 | favoriteeditor.cpp \
|
---|
325 | statewidget.cpp \
|
---|
326 | basegui.cpp \
|
---|
327 | baseguiplus.cpp \
|
---|
328 | autohidewidget.cpp \
|
---|
329 | widgetactions.cpp \
|
---|
330 | toolbareditor.cpp \
|
---|
331 | editabletoolbar.cpp \
|
---|
332 | clhelp.cpp \
|
---|
333 | cleanconfig.cpp \
|
---|
334 | smplayer.cpp \
|
---|
335 | myapplication.cpp \
|
---|
336 | main.cpp
|
---|
337 |
|
---|
338 | FORMS = inputdvddirectory.ui logwindow.ui infowindow.ui filepropertiesdialog.ui \
|
---|
339 | eqslider.ui seekwidget.ui inputurl.ui videoequalizer.ui vdpauproperties.ui \
|
---|
340 | preferencesdialog.ui prefgeneral.ui prefdrives.ui prefinterface.ui \
|
---|
341 | prefperformance.ui prefinput.ui prefsubtitles.ui prefadvanced.ui \
|
---|
342 | prefplaylist.ui prefupdates.ui prefnetwork.ui favoriteeditor.ui \
|
---|
343 | about.ui inputmplayerversion.ui errordialog.ui timedialog.ui stereo3ddialog.ui \
|
---|
344 | toolbareditor.ui multilineinputdialog.ui
|
---|
345 |
|
---|
346 | contains( DEFINES, TV_SUPPORT ) {
|
---|
347 | HEADERS += tvlist.h preftv.h tvsettings.h
|
---|
348 | SOURCES += tvlist.cpp preftv.cpp tvsettings.cpp
|
---|
349 | FORMS += preftv.ui
|
---|
350 | }
|
---|
351 |
|
---|
352 | contains( DEFINES, MPV_SUPPORT ) {
|
---|
353 | HEADERS += mpvprocess.h inforeadermpv.h
|
---|
354 | SOURCES += mpvprocess.cpp inforeadermpv.cpp
|
---|
355 | }
|
---|
356 |
|
---|
357 | contains( DEFINES, MPLAYER_SUPPORT ) {
|
---|
358 | HEADERS += mplayerprocess.h inforeadermplayer.h
|
---|
359 | SOURCES += mplayerprocess.cpp inforeadermplayer.cpp
|
---|
360 | }
|
---|
361 |
|
---|
362 | # qtsingleapplication
|
---|
363 | contains( DEFINES, SINGLE_INSTANCE ) {
|
---|
364 | INCLUDEPATH += qtsingleapplication
|
---|
365 | DEPENDPATH += qtsingleapplication
|
---|
366 |
|
---|
367 | SOURCES += qtsingleapplication/qtsingleapplication.cpp qtsingleapplication/qtlocalpeer.cpp
|
---|
368 | HEADERS += qtsingleapplication/qtsingleapplication.h qtsingleapplication/qtlocalpeer.h
|
---|
369 | }
|
---|
370 |
|
---|
371 | # Find subtitles dialog
|
---|
372 | contains( DEFINES, FIND_SUBTITLES ) {
|
---|
373 | DEFINES += DOWNLOAD_SUBS
|
---|
374 | DEFINES += OS_SEARCH_WORKAROUND
|
---|
375 | #DEFINES += USE_QUAZIP
|
---|
376 |
|
---|
377 | INCLUDEPATH += findsubtitles
|
---|
378 | DEPENDPATH += findsubtitles
|
---|
379 |
|
---|
380 | INCLUDEPATH += findsubtitles/maia
|
---|
381 | DEPENDPATH += findsubtitles/maia
|
---|
382 |
|
---|
383 | HEADERS += findsubtitles/findsubtitlesconfigdialog.h findsubtitles/findsubtitleswindow.h
|
---|
384 | SOURCES += findsubtitles/findsubtitlesconfigdialog.cpp findsubtitles/findsubtitleswindow.cpp
|
---|
385 | FORMS += findsubtitles/findsubtitleswindow.ui findsubtitles/findsubtitlesconfigdialog.ui
|
---|
386 |
|
---|
387 | # xmlrpc client code to connect to opensubtitles.org
|
---|
388 | HEADERS += findsubtitles/maia/maiaObject.h findsubtitles/maia/maiaFault.h findsubtitles/maia/maiaXmlRpcClient.h findsubtitles/osclient.h
|
---|
389 | SOURCES += findsubtitles/maia/maiaObject.cpp findsubtitles/maia/maiaFault.cpp findsubtitles/maia/maiaXmlRpcClient.cpp findsubtitles/osclient.cpp
|
---|
390 | }
|
---|
391 |
|
---|
392 | # Download subtitles
|
---|
393 | contains( DEFINES, DOWNLOAD_SUBS ) {
|
---|
394 | INCLUDEPATH += findsubtitles/filedownloader
|
---|
395 | DEPENDPATH += findsubtitles/filedownloader
|
---|
396 |
|
---|
397 | HEADERS += findsubtitles/filedownloader/filedownloader.h findsubtitles/subchooserdialog.h findsubtitles/fixsubs.h
|
---|
398 | SOURCES += findsubtitles/filedownloader/filedownloader.cpp findsubtitles/subchooserdialog.cpp findsubtitles/fixsubs.cpp
|
---|
399 |
|
---|
400 | FORMS += findsubtitles/subchooserdialog.ui
|
---|
401 |
|
---|
402 | contains( DEFINES, USE_QUAZIP ) {
|
---|
403 | INCLUDEPATH += findsubtitles/quazip
|
---|
404 | DEPENDPATH += findsubtitles/quazip
|
---|
405 |
|
---|
406 | HEADERS += crypt.h \
|
---|
407 | ioapi.h \
|
---|
408 | quazip.h \
|
---|
409 | quazipfile.h \
|
---|
410 | quazipfileinfo.h \
|
---|
411 | quazipnewinfo.h \
|
---|
412 | unzip.h \
|
---|
413 | zip.h
|
---|
414 |
|
---|
415 | SOURCES += ioapi.c \
|
---|
416 | quazip.cpp \
|
---|
417 | quazipfile.cpp \
|
---|
418 | quazipnewinfo.cpp \
|
---|
419 | unzip.c \
|
---|
420 | zip.c
|
---|
421 | }
|
---|
422 |
|
---|
423 | LIBS += -lz
|
---|
424 |
|
---|
425 | win32 {
|
---|
426 | INCLUDEPATH += ..\\zlib
|
---|
427 | LIBS += -L..\\zlib
|
---|
428 | }
|
---|
429 | }
|
---|
430 |
|
---|
431 | # Youtube support
|
---|
432 | contains( DEFINES, YOUTUBE_SUPPORT ) {
|
---|
433 | DEFINES += YT_USE_SCRIPT
|
---|
434 | INCLUDEPATH += youtube
|
---|
435 | DEPENDPATH += youtube
|
---|
436 |
|
---|
437 | HEADERS += youtube/retrieveyoutubeurl.h youtube/loadpage.h
|
---|
438 | SOURCES += youtube/retrieveyoutubeurl.cpp youtube/loadpage.cpp
|
---|
439 |
|
---|
440 | contains( DEFINES, YT_USE_SCRIPT ) {
|
---|
441 | DEFINES += YT_USE_SIG
|
---|
442 | DEFINES += YT_USE_YTSIG
|
---|
443 | QT += script
|
---|
444 | }
|
---|
445 |
|
---|
446 | contains( DEFINES, YT_USE_SIG ) {
|
---|
447 | HEADERS += youtube/sig.h
|
---|
448 | SOURCES += youtube/sig.cpp
|
---|
449 | }
|
---|
450 |
|
---|
451 | contains( DEFINES, YT_USE_YTSIG ) {
|
---|
452 | HEADERS += youtube/ytsig.h youtube/codedownloader.h
|
---|
453 | SOURCES += youtube/ytsig.cpp youtube/codedownloader.cpp
|
---|
454 | }
|
---|
455 | }
|
---|
456 |
|
---|
457 | # defaultgui
|
---|
458 | contains( DEFINES, DEFAULTGUI ) {
|
---|
459 | HEADERS += defaultgui.h
|
---|
460 | SOURCES += defaultgui.cpp
|
---|
461 | }
|
---|
462 |
|
---|
463 | # minigui
|
---|
464 | contains( DEFINES, MINIGUI ) {
|
---|
465 | HEADERS += minigui.h
|
---|
466 | SOURCES += minigui.cpp
|
---|
467 | }
|
---|
468 |
|
---|
469 | # mpcgui
|
---|
470 | contains( DEFINES, MPCGUI ) {
|
---|
471 | INCLUDEPATH += mpcgui
|
---|
472 | DEPENDPATH += mpcgui
|
---|
473 |
|
---|
474 | HEADERS += mpcgui/mpcgui.h mpcgui/mpcstyles.h
|
---|
475 | SOURCES += mpcgui/mpcgui.cpp mpcgui/mpcstyles.cpp
|
---|
476 | }
|
---|
477 |
|
---|
478 | # Skins support
|
---|
479 | contains( DEFINES, SKINS ) {
|
---|
480 | INCLUDEPATH += skingui
|
---|
481 | DEPENDPATH += skingui
|
---|
482 |
|
---|
483 | HEADERS += skingui/myicon.h skingui/mybutton.h skingui/panelseeker.h skingui/playcontrol.h \
|
---|
484 | skingui/mediapanel.h skingui/volumecontrolpanel.h skingui/mediabarpanel.h \
|
---|
485 | skingui/qpropertysetter.h skingui/actiontools.h skingui/skingui.h
|
---|
486 | SOURCES += skingui/myicon.cpp skingui/mybutton.cpp skingui/panelseeker.cpp skingui/playcontrol.cpp \
|
---|
487 | skingui/mediapanel.cpp skingui/volumecontrolpanel.cpp skingui/mediabarpanel.cpp \
|
---|
488 | skingui/qpropertysetter.cpp skingui/actiontools.cpp skingui/skingui.cpp
|
---|
489 | FORMS += skingui/mediapanel.ui skingui/mediabarpanel.ui
|
---|
490 | }
|
---|
491 |
|
---|
492 | contains( DEFINES, MPRIS2 ) {
|
---|
493 | INCLUDEPATH += mpris2
|
---|
494 | DEPENDPATH += mpris2
|
---|
495 |
|
---|
496 | HEADERS += mpris2/mediaplayer2.h mpris2/mediaplayer2player.h mpris2/mpris2.h
|
---|
497 | SOURCES += mpris2/mediaplayer2.cpp mpris2/mediaplayer2player.cpp mpris2/mpris2.cpp
|
---|
498 |
|
---|
499 | QT += dbus
|
---|
500 | }
|
---|
501 |
|
---|
502 | # Update checker
|
---|
503 | contains( DEFINES, UPDATE_CHECKER ) {
|
---|
504 | HEADERS += updatechecker.h updatecheckerdata.h
|
---|
505 | SOURCES += updatechecker.cpp updatecheckerdata.cpp
|
---|
506 | }
|
---|
507 |
|
---|
508 | # Videopreview
|
---|
509 | contains( DEFINES, VIDEOPREVIEW ) {
|
---|
510 | INCLUDEPATH += videopreview
|
---|
511 | DEPENDPATH += videopreview
|
---|
512 |
|
---|
513 | HEADERS += videopreview/videopreview.h videopreview/videopreviewconfigdialog.h
|
---|
514 | SOURCES += videopreview/videopreview.cpp videopreview/videopreviewconfigdialog.cpp
|
---|
515 |
|
---|
516 | FORMS += videopreview/videopreviewconfigdialog.ui
|
---|
517 | }
|
---|
518 |
|
---|
519 |
|
---|
520 | !contains(DEFINES, SHARE_ACTIONS) | !contains(DEFINES, SHARE_WIDGET) {
|
---|
521 | message("Note to distro maintainers:")
|
---|
522 | message("By disabling SHARE_ACTIONS or SHARE_WIDGET")
|
---|
523 | message("you're preventing SMPlayer to receive donations and thus")
|
---|
524 | message("SERIOUSLY HURTING THE DEVELOPMENT AND PUTTING")
|
---|
525 | message("AT RISK THE CONTINUATION OF THIS PROJECT")
|
---|
526 | message("Please don't.")
|
---|
527 | }
|
---|
528 |
|
---|
529 | contains( DEFINES, SHARE_ACTIONS ) {
|
---|
530 | HEADERS += sharedialog.h
|
---|
531 | SOURCES += sharedialog.cpp
|
---|
532 | FORMS += sharedialog.ui
|
---|
533 | }
|
---|
534 |
|
---|
535 | contains( DEFINES, SHARE_WIDGET|SHARE_ACTIONS ) {
|
---|
536 | HEADERS += sharewidget.h sharedata.h
|
---|
537 | SOURCES += sharewidget.cpp sharedata.cpp
|
---|
538 | }
|
---|
539 |
|
---|
540 | contains( DEFINES, AUTO_SHUTDOWN_PC ) {
|
---|
541 | HEADERS += shutdowndialog.h shutdown.h
|
---|
542 | SOURCES += shutdowndialog.cpp shutdown.cpp
|
---|
543 | FORMS += shutdowndialog.ui
|
---|
544 |
|
---|
545 | unix { QT += dbus }
|
---|
546 | }
|
---|
547 |
|
---|
548 | contains( DEFINES, BOOKMARKS ) {
|
---|
549 | HEADERS += inputbookmark.h bookmarkdialog.h
|
---|
550 | SOURCES += inputbookmark.cpp bookmarkdialog.cpp
|
---|
551 | FORMS += inputbookmark.ui bookmarkdialog.ui
|
---|
552 | }
|
---|
553 |
|
---|
554 | contains( DEFINES, GLOBALSHORTCUTS ) {
|
---|
555 | HEADERS += globalshortcuts/globalshortcuts.h
|
---|
556 | SOURCES += globalshortcuts/globalshortcuts.cpp
|
---|
557 | unix {
|
---|
558 | QT += gui-private
|
---|
559 | LIBS += $${QMAKE_LIBS_X11}
|
---|
560 | }
|
---|
561 | }
|
---|
562 |
|
---|
563 | contains( DEFINES, HDPI_SUPPORT ) {
|
---|
564 | HEADERS += hdpisupport.h
|
---|
565 | SOURCES += hdpisupport.cpp
|
---|
566 | }
|
---|
567 |
|
---|
568 | unix {
|
---|
569 | UI_DIR = .ui
|
---|
570 | MOC_DIR = .moc
|
---|
571 | OBJECTS_DIR = .obj
|
---|
572 |
|
---|
573 | DEFINES += DATA_PATH=$(DATA_PATH)
|
---|
574 | DEFINES += DOC_PATH=$(DOC_PATH)
|
---|
575 | DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
|
---|
576 | DEFINES += THEMES_PATH=$(THEMES_PATH)
|
---|
577 | DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
|
---|
578 | #DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
579 | }
|
---|
580 |
|
---|
581 | win32 {
|
---|
582 | DEFINES += SCREENSAVER_OFF
|
---|
583 | DEFINES += AVOID_SCREENSAVER
|
---|
584 | #DEFINES += FONTCACHE_DIALOG
|
---|
585 | #DEFINES += FONTS_HACK
|
---|
586 |
|
---|
587 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
588 | HEADERS += screensaver.h
|
---|
589 | SOURCES += screensaver.cpp
|
---|
590 | }
|
---|
591 |
|
---|
592 | contains( DEFINES, FONTCACHE_DIALOG ) {
|
---|
593 | HEADERS += fontcache.h
|
---|
594 | SOURCES += fontcache.cpp
|
---|
595 | }
|
---|
596 |
|
---|
597 | !contains( DEFINES, PORTABLE_APP ) {
|
---|
598 | DEFINES += USE_ASSOCIATIONS
|
---|
599 | }
|
---|
600 |
|
---|
601 | contains( DEFINES, USE_ASSOCIATIONS ) {
|
---|
602 | HEADERS += prefassociations.h winfileassoc.h
|
---|
603 | SOURCES += prefassociations.cpp winfileassoc.cpp
|
---|
604 | FORMS += prefassociations.ui
|
---|
605 | }
|
---|
606 |
|
---|
607 | contains(TEMPLATE,vcapp) {
|
---|
608 | LIBS += ole32.lib user32.lib
|
---|
609 | } else {
|
---|
610 | LIBS += libole32
|
---|
611 | }
|
---|
612 |
|
---|
613 | RC_FILE = smplayer.rc
|
---|
614 | DEFINES += NO_DEBUG_ON_CONSOLE
|
---|
615 | #debug {
|
---|
616 | # CONFIG += console
|
---|
617 | #}
|
---|
618 | }
|
---|
619 |
|
---|
620 | os2 {
|
---|
621 | DEFINES += SCREENSAVER_OFF
|
---|
622 | DEFINES += AVOID_SCREENSAVER
|
---|
623 | INCLUDEPATH += .
|
---|
624 | contains( DEFINES, SCREENSAVER_OFF ) {
|
---|
625 | HEADERS += screensaver.h
|
---|
626 | SOURCES += screensaver.cpp
|
---|
627 | }
|
---|
628 | RC_FILE = smplayer_os2.rc
|
---|
629 |
|
---|
630 | # define the vendor part
|
---|
631 | DEF_FILE_VENDOR = bww bitwise works GmbH
|
---|
632 | DEF_FILE_VERSION = $$APPLICATION_VERSION
|
---|
633 | DEF_FILE_DESCRIPTION = OS/2 and OS/2-based systems port of SMPlayer
|
---|
634 | }
|
---|
635 |
|
---|
636 |
|
---|
637 | TRANSLATIONS = translations/smplayer_es.ts translations/smplayer_de.ts \
|
---|
638 | translations/smplayer_sk.ts translations/smplayer_it.ts \
|
---|
639 | translations/smplayer_fr.ts translations/smplayer_zh_CN.ts \
|
---|
640 | translations/smplayer_ru_RU.ts translations/smplayer_hu.ts \
|
---|
641 | translations/smplayer_en_US.ts translations/smplayer_pl.ts \
|
---|
642 | translations/smplayer_ja.ts translations/smplayer_nl.ts \
|
---|
643 | translations/smplayer_uk_UA.ts translations/smplayer_pt_BR.ts \
|
---|
644 | translations/smplayer_ka.ts translations/smplayer_cs.ts \
|
---|
645 | translations/smplayer_bg.ts translations/smplayer_tr.ts \
|
---|
646 | translations/smplayer_sv.ts translations/smplayer_sr.ts \
|
---|
647 | translations/smplayer_zh_TW.ts translations/smplayer_ro_RO.ts \
|
---|
648 | translations/smplayer_pt.ts translations/smplayer_el_GR.ts \
|
---|
649 | translations/smplayer_fi.ts translations/smplayer_ko.ts \
|
---|
650 | translations/smplayer_mk.ts translations/smplayer_eu.ts \
|
---|
651 | translations/smplayer_ca.ts translations/smplayer_sl_SI.ts \
|
---|
652 | translations/smplayer_ar_SY.ts translations/smplayer_ku.ts \
|
---|
653 | translations/smplayer_gl.ts translations/smplayer_vi_VN.ts \
|
---|
654 | translations/smplayer_et.ts translations/smplayer_lt.ts \
|
---|
655 | translations/smplayer_da.ts translations/smplayer_hr.ts \
|
---|
656 | translations/smplayer_he_IL.ts translations/smplayer_th.ts \
|
---|
657 | translations/smplayer_ms_MY.ts translations/smplayer_uz.ts \
|
---|
658 | translations/smplayer_nn_NO.ts translations/smplayer_id.ts \
|
---|
659 | translations/smplayer_ar.ts translations/smplayer_en_GB.ts \
|
---|
660 | translations/smplayer_sq_AL.ts translations/smplayer_am.ts \
|
---|
661 | translations/smplayer_fa.ts
|
---|
662 |
|
---|