4 -lws32 \ |
4 -lws32 \ |
5 -lfbscli \ |
5 -lfbscli \ |
6 -lcone \ |
6 -lcone \ |
7 -lmmfcontrollerframework \ |
7 -lmmfcontrollerframework \ |
8 -lefsrv \ |
8 -lefsrv \ |
9 -lbitgdi |
9 -lbitgdi \ |
|
10 -lapgrfx \ |
|
11 -lapmime \ |
10 |
12 |
11 # If support to DRM is wanted then comment out the following line |
13 # If support to DRM is wanted then comment out the following line |
12 #CONFIG += drm_supported |
14 #CONFIG += drm_supported |
|
15 |
|
16 # We are building Symbian backend with media player support |
|
17 DEFINES += HAS_MEDIA_PLAYER |
13 |
18 |
14 drm_supported { |
19 drm_supported { |
15 LIBS + = -ldrmaudioplayutility |
20 LIBS + = -ldrmaudioplayutility |
16 DEFINES += S60_DRM_SUPPORTED |
21 DEFINES += S60_DRM_SUPPORTED |
17 } |
22 } |
18 |
23 |
19 HEADERS += \ |
24 HEADERS += \ |
20 $$PWD/s60mediaplayercontrol.h \ |
25 $$PWD/s60mediaplayercontrol.h \ |
21 $$PWD/s60mediaplayerservice.h \ |
26 $$PWD/s60mediaplayerservice.h \ |
22 $$PWD/s60mediaplayersession.h \ |
27 $$PWD/s60mediaplayersession.h \ |
|
28 $$PWD/s60mediametadataprovider.h \ |
23 $$PWD/s60videoplayersession.h \ |
29 $$PWD/s60videoplayersession.h \ |
24 $$PWD/s60mediametadataprovider.h \ |
|
25 $$PWD/s60videosurface.h \ |
30 $$PWD/s60videosurface.h \ |
26 $$PWD/s60videooverlay.h \ |
31 $$PWD/s60videooverlay.h \ |
27 $$PWD/s60videorenderer.h \ |
32 $$PWD/s60videorenderer.h \ |
28 $$PWD/s60mediarecognizer.h \ |
33 $$PWD/s60mediarecognizer.h \ |
29 $$PWD/s60audioplayersession.h \ |
34 $$PWD/s60audioplayersession.h \ |
33 |
38 |
34 SOURCES += \ |
39 SOURCES += \ |
35 $$PWD/s60mediaplayercontrol.cpp \ |
40 $$PWD/s60mediaplayercontrol.cpp \ |
36 $$PWD/s60mediaplayerservice.cpp \ |
41 $$PWD/s60mediaplayerservice.cpp \ |
37 $$PWD/s60mediaplayersession.cpp \ |
42 $$PWD/s60mediaplayersession.cpp \ |
|
43 $$PWD/s60mediametadataprovider.cpp \ |
38 $$PWD/s60videoplayersession.cpp \ |
44 $$PWD/s60videoplayersession.cpp \ |
39 $$PWD/s60mediametadataprovider.cpp \ |
|
40 $$PWD/s60videosurface.cpp \ |
45 $$PWD/s60videosurface.cpp \ |
41 $$PWD/s60videooverlay.cpp \ |
46 $$PWD/s60videooverlay.cpp \ |
42 $$PWD/s60videorenderer.cpp \ |
47 $$PWD/s60videorenderer.cpp \ |
43 $$PWD/s60mediarecognizer.cpp \ |
48 $$PWD/s60mediarecognizer.cpp \ |
44 $$PWD/s60audioplayersession.cpp \ |
49 $$PWD/s60audioplayersession.cpp \ |
45 $$PWD/s60videowidget.cpp \ |
50 $$PWD/s60videowidget.cpp \ |
46 $$PWD/s60mediaplayeraudioendpointselector.cpp |
51 $$PWD/s60mediaplayeraudioendpointselector.cpp |
47 |
52 |
|
53 |
|
54 contains(surfaces_s60_enabled,yes) { |
|
55 DEFINES += MMF_VIDEO_SURFACES_SUPPORTED |
|
56 message("Surfaces_s60 enabled") |
|
57 } |
|
58 |
48 contains(S60_VERSION, 3.1) { |
59 contains(S60_VERSION, 3.1) { |
49 |
|
50 #3.1 doesn't provide audio routing in videoplayer |
60 #3.1 doesn't provide audio routing in videoplayer |
51 DEFINES += HAS_NO_AUDIOROUTING_IN_VIDEOPLAYER |
61 contains(audiorouting_s60_enabled,yes) { |
52 |
|
53 MMP_RULES += "$${LITERAL_HASH}ifndef WINSCW" \ |
62 MMP_RULES += "$${LITERAL_HASH}ifndef WINSCW" \ |
54 "LIBRARY MPEngine.lib" \ |
63 "MACRO HAS_AUDIOROUTING" \ |
55 "MACRO HAS_MEDIA_PLAYER" \ |
64 "LIBRARY audiooutputrouting.lib" \ |
56 "$${LITERAL_HASH}endif" |
65 "$${LITERAL_HASH}endif" |
57 |
66 message("Note: AudioOutput Routing API not supported for 3.1 winscw target and in videoplayer") |
58 !exists($${EPOCROOT}epoc32\release\winscw\udeb\audiooutputrouting.lib) { |
|
59 MMP_RULES += "$${LITERAL_HASH}ifdef WINSCW" \ |
|
60 "MACRO HAS_NO_AUDIOROUTING" \ |
|
61 "$${LITERAL_HASH}else" \ |
|
62 "LIBRARY audiooutputrouting.lib" \ |
|
63 "$${LITERAL_HASH}endif" |
|
64 message("Note: AudioOutput Routing API not supported for 3.1 winscw target and in videoplayer") |
|
65 } |
67 } |
66 |
68 |
67 } else { |
69 } else { |
68 LIBS += -lMPEngine |
70 contains(audiorouting_s60_enabled,yes) { |
69 DEFINES += HAS_MEDIA_PLAYER |
71 #We use audiooutputrouting.lib for directing audio output to speaker/earspeaker |
70 LIBS += -laudiooutputrouting |
72 DEFINES += HAS_AUDIOROUTING_IN_VIDEOPLAYER |
|
73 DEFINES += HAS_AUDIOROUTING |
|
74 message("Audiorouting_s60 enabled for post 3.1 sdk") |
|
75 LIBS += -laudiooutputrouting |
|
76 } |
|
77 |
71 } |
78 } |
72 |
79 |
73 exists($${EPOCROOT}epoc32\include\platform\mw\mediarecognizer.h) { |
|
74 symbian:LIBS += -lplaybackhelper |
|
75 DEFINES += USE_SYMBIAN_MEDIARECOGNIZER |
|
76 #these are sdk plugins that don't exits in Symbian3 |
|
77 symbian:LIBS -= -lMPEngine |
|
78 message("Using Symbian mediarecognizer") |
|
79 } |
|
80 exists($$[QT_INSTALL_HEADERS]\QtGui\private\qwidget_p.h) { |
80 exists($$[QT_INSTALL_HEADERS]\QtGui\private\qwidget_p.h) { |
81 DEFINES += USE_PRIVATE_QWIDGET_METHODS |
81 DEFINES += USE_PRIVATE_QWIDGET_METHODS |
82 message("Enabling use of private QWidget methods") |
82 message("Enabling use of private QWidget methods") |
83 } |
83 } |
84 |
|