RESOLVED FIXED 88413
[EFL] Add support for building with ENABLE_MEDIA_STREAM
https://bugs.webkit.org/show_bug.cgi?id=88413
Summary [EFL] Add support for building with ENABLE_MEDIA_STREAM
Sudarsana Nagineni (babu)
Reported 2012-06-06 07:03:35 PDT
Add support for building Media Stream feature with ENABLE_MEDIA_STREAM flag.
Attachments
Patch (5.95 KB, patch)
2012-06-06 08:20 PDT, Sudarsana Nagineni (babu)
no flags
Patch (9.62 KB, patch)
2012-06-13 12:20 PDT, Sudarsana Nagineni (babu)
no flags
patch (9.72 KB, patch)
2012-06-14 06:01 PDT, Sudarsana Nagineni (babu)
no flags
patch (2.79 KB, patch)
2012-06-19 07:25 PDT, Sudarsana Nagineni (babu)
no flags
patch (2.97 KB, patch)
2012-06-20 03:28 PDT, Sudarsana Nagineni (babu)
no flags
Patch (1.69 KB, patch)
2012-06-21 16:46 PDT, Sudarsana Nagineni (babu)
no flags
Sudarsana Nagineni (babu)
Comment 1 2012-06-06 08:20:27 PDT
Created attachment 146037 [details] Patch Add support for building Media Stream feature.
Gyuyoung Kim
Comment 2 2012-06-06 19:16:55 PDT
Comment on attachment 146037 [details] Patch LGTM. BTW, will you support media stream feature for EFL port ?
Sudarsana Nagineni (babu)
Comment 3 2012-06-07 01:31:30 PDT
(In reply to comment #2) > (From update of attachment 146037 [details]) > LGTM. BTW, will you support media stream feature for EFL port ? Thanks for your review. I tried to enable this feature by default, but some of the tests are not passing, so it is turned off for now. I filed a meta bug #87662 for adding missing implementation and enabling this feature for the EFL port.
Gyuyoung Kim
Comment 4 2012-06-07 01:35:40 PDT
Ok, Looks fine.
Chris Dumez
Comment 5 2012-06-09 05:02:18 PDT
Comment on attachment 146037 [details] Patch LGTM.
Sudarsana Nagineni (babu)
Comment 6 2012-06-13 10:51:34 PDT
Sources that need to be compiled for supporting Media Stream feature has already been added to CMake build system in bug 88849. So, I will consider this bug for adding EFL platform specific changes only.
Sudarsana Nagineni (babu)
Comment 7 2012-06-13 12:20:00 PDT
Created attachment 147385 [details] Patch Add support for building Media Stream feature.
Gyuyoung Kim
Comment 8 2012-06-13 19:37:53 PDT
Comment on attachment 147385 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147385&action=review > Source/WebKit/efl/WebCoreSupport/UserMediaClientEfl.h:19 > + */ Trivial nit : Add an empty line.
Raphael Kubo da Costa (:rakuco)
Comment 9 2012-06-13 20:00:33 PDT
Comment on attachment 147385 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147385&action=review Does it make sense to sort of add this functionality to the port even if UserMediaClientEfl only contains stubs? > Source/WebCore/PlatformEfl.cmake:286 > + LIST(APPEND WebCore_INCLUDE_DIRECTORIES > + "${WEBCORE_DIR}/platform/mediastream/gstreamer" > + ) > + LIST(APPEND WebCore_SOURCES > + platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp > + platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp > + ) We generally use a 4-space indentation for CMake files. I generally favor not using these conditionals, as the .cpp files are protected by #ifdefs anyway. But we might just change all those checks at once in another patch.
Sudarsana Nagineni (babu)
Comment 10 2012-06-14 05:45:04 PDT
(In reply to comment #9) > (From update of attachment 147385 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=147385&action=review > > Does it make sense to sort of add this functionality to the port even if UserMediaClientEfl only contains stubs? > This is an initial patch to add support for building media stream feature on the EFL port. This feature is turned off for now because some of the tests are still failing. As I said in the comment 3, I filed a meta bug for adding missing implementation before enabling the feature. GTK and Blackberry ports enabled this by default, but the tests are skipped it seems. > > Source/WebCore/PlatformEfl.cmake:286 > > + LIST(APPEND WebCore_INCLUDE_DIRECTORIES > > + "${WEBCORE_DIR}/platform/mediastream/gstreamer" > > + ) > > + LIST(APPEND WebCore_SOURCES > > + platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp > > + platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp > > + ) > > We generally use a 4-space indentation for CMake files. Initially I thought of using 4-space indentation, but switched to 2-space for consistency reasons. EFL's CMake files are using 2-space in most of the places. I think we should fix this in all the EFL's CMake files in a separate bug. >I generally favor not using these conditionals, as the .cpp files are protected by #ifdefs anyway. But we might just change all those checks at once in another patch. Make sense to have a separate bug to fix all at once.
Sudarsana Nagineni (babu)
Comment 11 2012-06-14 06:01:51 PDT
Created attachment 147566 [details] patch Updated patch fixing review comments.
Raphael Kubo da Costa (:rakuco)
Comment 12 2012-06-14 16:26:02 PDT
(In reply to comment #10) > This is an initial patch to add support for building media stream feature on the EFL port. This feature is turned off for now because some of the tests are still failing. As I said in the comment 3, I filed a meta bug for adding missing implementation before enabling the feature. GTK and Blackberry ports enabled this by default, but the tests are skipped it seems. Do you already have some more patches up your sleeve? I'm usually a bit uncomfortable with adding stub source files, as they sometimes end up not being updated with actual implementations. Wouldn't it the case to implement the code in UserMediaClientEfl in this same patch?
Sudarsana Nagineni (babu)
Comment 13 2012-06-15 13:24:22 PDT
Comment on attachment 147566 [details] patch As discussed on #webkit-efl, I am going to remove stubs I added in the patch for now and keep only build system changes.
Sudarsana Nagineni (babu)
Comment 14 2012-06-19 07:25:31 PDT
Created attachment 148330 [details] patch Removed stub sources. Patch contains only minor build system changes.
Gyuyoung Kim
Comment 15 2012-06-19 17:19:29 PDT
Comment on attachment 148330 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=148330&action=review > Source/WebCore/PlatformEfl.cmake:285 > + platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp These files already are being protected by #if ENABLE(MEDIA_STREAM). So, in this case, I don't like to guard twice.
Sudarsana Nagineni (babu)
Comment 16 2012-06-20 03:28:43 PDT
Created attachment 148532 [details] patch Removed unnecessary ifdef guard.
Gyuyoung Kim
Comment 17 2012-06-20 19:23:10 PDT
Comment on attachment 148532 [details] patch LGTM.
Raphael Kubo da Costa (:rakuco)
Comment 18 2012-06-21 12:39:00 PDT
Comment on attachment 148532 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=148532&action=review > Source/cmake/OptionsEfl.cmake:79 > +WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_STREAM OFF) Isn't it redundant since it's also OFF by default in WebKitFeatures.cmake?
Sudarsana Nagineni (babu)
Comment 19 2012-06-21 16:46:56 PDT
Sudarsana Nagineni (babu)
Comment 20 2012-06-21 16:51:07 PDT
Comment on attachment 148532 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=148532&action=review >> Source/cmake/OptionsEfl.cmake:79 >> +WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_STREAM OFF) > > Isn't it redundant since it's also OFF by default in WebKitFeatures.cmake? You are right. Removed it now.
Raphael Kubo da Costa (:rakuco)
Comment 21 2012-06-22 13:56:16 PDT
Comment on attachment 148913 [details] Patch Looks fine, thanks.
WebKit Review Bot
Comment 22 2012-06-25 14:26:24 PDT
Comment on attachment 148913 [details] Patch Clearing flags on attachment: 148913 Committed r121180: <http://trac.webkit.org/changeset/121180>
WebKit Review Bot
Comment 23 2012-06-25 14:26:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.