Title: [196552] trunk/Source/WebCore
Revision
196552
Author
[email protected]
Date
2016-02-13 11:12:28 -0800 (Sat, 13 Feb 2016)

Log Message

[cmake] Consolidate building of GStreamer and OpenWebRTC code.
https://bugs.webkit.org/show_bug.cgi?id=154116

Patch by Konstantin Tokarev <[email protected]> on 2016-02-13
Reviewed by Michael Catanzaro.

No new tests needed.

* PlatformEfl.cmake: Migrated shared code to GStreamer.cmake.
* PlatformGTK.cmake: Ditto.
* platform/GStreamer.cmake: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (196551 => 196552)


--- trunk/Source/WebCore/ChangeLog	2016-02-13 17:41:12 UTC (rev 196551)
+++ trunk/Source/WebCore/ChangeLog	2016-02-13 19:12:28 UTC (rev 196552)
@@ -1,3 +1,16 @@
+2016-02-13  Konstantin Tokarev  <[email protected]>
+
+        [cmake] Consolidate building of GStreamer and OpenWebRTC code.
+        https://bugs.webkit.org/show_bug.cgi?id=154116
+
+        Reviewed by Michael Catanzaro.
+
+        No new tests needed.
+
+        * PlatformEfl.cmake: Migrated shared code to GStreamer.cmake.
+        * PlatformGTK.cmake: Ditto.
+        * platform/GStreamer.cmake: Added.
+
 2016-02-13  Mark Lam  <[email protected]>
 
         Add thread violation checks to WebView public APIs.

Modified: trunk/Source/WebCore/PlatformEfl.cmake (196551 => 196552)


--- trunk/Source/WebCore/PlatformEfl.cmake	2016-02-13 17:41:12 UTC (rev 196551)
+++ trunk/Source/WebCore/PlatformEfl.cmake	2016-02-13 19:12:28 UTC (rev 196552)
@@ -1,3 +1,4 @@
+include(platform/GStreamer.cmake)
 include(platform/ImageDecoders.cmake)
 include(platform/TextureMapper.cmake)
 
@@ -40,7 +41,6 @@
     "${WEBCORE_DIR}/platform/graphics/surfaces/glx"
     "${WEBCORE_DIR}/platform/graphics/x11"
     "${WEBCORE_DIR}/platform/linux"
-    "${WEBCORE_DIR}/platform/mediastream/openwebrtc"
     "${WEBCORE_DIR}/platform/mock/mediasource"
     "${WEBCORE_DIR}/platform/network/soup"
     "${WEBCORE_DIR}/platform/text/efl"
@@ -88,12 +88,6 @@
 
     platform/audio/efl/AudioBusEfl.cpp
 
-    platform/audio/gstreamer/AudioDestinationGStreamer.cpp
-    platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
-    platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
-    platform/audio/gstreamer/FFTFrameGStreamer.cpp
-    platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
-
     platform/efl/BatteryProviderEfl.cpp
     platform/efl/CursorEfl.cpp
     platform/efl/DragDataEfl.cpp
@@ -165,22 +159,7 @@
     platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
     platform/graphics/freetype/SimpleFontDataFreeType.cpp
 
-    platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/GRefPtrGStreamer.cpp
-    platform/graphics/gstreamer/GStreamerUtilities.cpp
     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
-    platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
-    platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
-    platform/graphics/gstreamer/MediaSourceGStreamer.cpp
-    platform/graphics/gstreamer/SourceBufferPrivateGStreamer.cpp
-    platform/graphics/gstreamer/TextCombinerGStreamer.cpp
-    platform/graphics/gstreamer/TextSinkGStreamer.cpp
-    platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp
-    platform/graphics/gstreamer/VideoSinkGStreamer.cpp
-    platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp
-    platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
 
     platform/graphics/harfbuzz/HarfBuzzFace.cpp
     platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
@@ -211,9 +190,6 @@
     platform/linux/GamepadDeviceLinux.cpp
     platform/linux/MemoryPressureHandlerLinux.cpp
 
-    platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp
-    platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp
-
     platform/network/efl/NetworkStateNotifierEfl.cpp
 
     platform/network/soup/AuthenticationChallengeSoup.cpp
@@ -341,62 +317,6 @@
     ${HARFBUZZ_INCLUDE_DIRS}
 )
 
-if (ENABLE_MEDIA_STREAM)
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${OPENWEBRTC_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${OPENWEBRTC_LIBRARIES}
-    )
-    list(APPEND WebCore_SOURCES
-        platform/graphics/gstreamer/MediaPlayerPrivateGStreamerOwr.cpp
-    )
-endif ()
-
-if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
-    list(APPEND WebCore_INCLUDE_DIRECTORIES
-        "${WEBCORE_DIR}/platform/graphics/gstreamer"
-    )
-
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${GSTREAMER_INCLUDE_DIRS}
-        ${GSTREAMER_BASE_INCLUDE_DIRS}
-        ${GSTREAMER_APP_INCLUDE_DIRS}
-        ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
-    )
-
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_APP_LIBRARIES}
-        ${GSTREAMER_BASE_LIBRARIES}
-        ${GSTREAMER_LIBRARIES}
-        ${GSTREAMER_PBUTILS_LIBRARIES}
-        ${GSTREAMER_AUDIO_LIBRARIES}
-    )
-    # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
-    set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
-endif ()
-
-if (ENABLE_VIDEO)
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${GSTREAMER_TAG_INCLUDE_DIRS}
-        ${GSTREAMER_VIDEO_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_TAG_LIBRARIES}
-        ${GSTREAMER_VIDEO_LIBRARIES}
-    )
-
-    if (USE_GSTREAMER_MPEGTS)
-        list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-            ${GSTREAMER_MPEGTS_INCLUDE_DIRS}
-        )
-
-        list(APPEND WebCore_LIBRARIES
-            ${GSTREAMER_MPEGTS_LIBRARIES}
-        )
-    endif ()
-endif ()
-
 if (USE_EGL)
     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
         "${WEBCORE_DIR}/platform/graphics/surfaces/egl"
@@ -440,17 +360,6 @@
 endif ()
 
 if (ENABLE_WEB_AUDIO)
-    list(APPEND WebCore_INCLUDE_DIRECTORIES
-        "${WEBCORE_DIR}/platform/audio/gstreamer"
-    )
-
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${GSTREAMER_AUDIO_INCLUDE_DIRS}
-        ${GSTREAMER_FFT_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_FFT_LIBRARIES}
-    )
     set(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
     file(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
     install(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})

Modified: trunk/Source/WebCore/PlatformGTK.cmake (196551 => 196552)


--- trunk/Source/WebCore/PlatformGTK.cmake	2016-02-13 17:41:12 UTC (rev 196551)
+++ trunk/Source/WebCore/PlatformGTK.cmake	2016-02-13 19:12:28 UTC (rev 196552)
@@ -1,3 +1,4 @@
+include(platform/GStreamer.cmake)
 include(platform/ImageDecoders.cmake)
 include(platform/TextureMapper.cmake)
 
@@ -43,7 +44,6 @@
     "${WEBCORE_DIR}/platform/graphics/wayland"
     "${WEBCORE_DIR}/platform/graphics/x11"
     "${WEBCORE_DIR}/platform/linux"
-    "${WEBCORE_DIR}/platform/mediastream/openwebrtc"
     "${WEBCORE_DIR}/platform/mock/mediasource"
     "${WEBCORE_DIR}/platform/network/gtk"
     "${WEBCORE_DIR}/platform/network/soup"
@@ -82,12 +82,6 @@
 
     platform/audio/glib/AudioBusGLib.cpp
 
-    platform/audio/gstreamer/AudioDestinationGStreamer.cpp
-    platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
-    platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
-    platform/audio/gstreamer/FFTFrameGStreamer.cpp
-    platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
-
     platform/geoclue/GeolocationProviderGeoclue1.cpp
     platform/geoclue/GeolocationProviderGeoclue2.cpp
 
@@ -129,22 +123,7 @@
 
     platform/graphics/glx/GLContextGLX.cpp
 
-    platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/GRefPtrGStreamer.cpp
-    platform/graphics/gstreamer/GStreamerUtilities.cpp
     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
-    platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
-    platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
-    platform/graphics/gstreamer/MediaSourceGStreamer.cpp
-    platform/graphics/gstreamer/SourceBufferPrivateGStreamer.cpp
-    platform/graphics/gstreamer/TextCombinerGStreamer.cpp
-    platform/graphics/gstreamer/TextSinkGStreamer.cpp
-    platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp
-    platform/graphics/gstreamer/VideoSinkGStreamer.cpp
-    platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp
-    platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp
-    platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
 
     platform/graphics/harfbuzz/HarfBuzzFace.cpp
     platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
@@ -176,9 +155,6 @@
     platform/linux/GamepadDeviceLinux.cpp
     platform/linux/MemoryPressureHandlerLinux.cpp
 
-    platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp
-    platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp
-
     platform/network/gtk/CredentialBackingStore.cpp
 
     platform/network/soup/AuthenticationChallengeSoup.cpp
@@ -318,84 +294,6 @@
     ${ZLIB_INCLUDE_DIRS}
 )
 
-if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
-    list(APPEND WebCore_INCLUDE_DIRECTORIES
-        ${WEBCORE_DIR}/platform/graphics/gstreamer
-    )
-
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${GSTREAMER_INCLUDE_DIRS}
-        ${GSTREAMER_BASE_INCLUDE_DIRS}
-        ${GSTREAMER_APP_INCLUDE_DIRS}
-        ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
-    )
-
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_APP_LIBRARIES}
-        ${GSTREAMER_BASE_LIBRARIES}
-        ${GSTREAMER_LIBRARIES}
-        ${GSTREAMER_PBUTILS_LIBRARIES}
-        ${GSTREAMER_AUDIO_LIBRARIES}
-    )
-    # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
-    set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
-endif ()
-
-if (ENABLE_VIDEO)
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${GSTREAMER_TAG_INCLUDE_DIRS}
-        ${GSTREAMER_VIDEO_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_TAG_LIBRARIES}
-        ${GSTREAMER_VIDEO_LIBRARIES}
-    )
-
-    if (USE_GSTREAMER_MPEGTS)
-        list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-            ${GSTREAMER_MPEGTS_INCLUDE_DIRS}
-        )
-
-        list(APPEND WebCore_LIBRARIES
-            ${GSTREAMER_MPEGTS_LIBRARIES}
-        )
-    endif ()
-
-    if (USE_GSTREAMER_GL)
-        list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-            ${GSTREAMER_GL_INCLUDE_DIRS}
-        )
-
-        list(APPEND WebCore_LIBRARIES
-            ${GSTREAMER_GL_LIBRARIES}
-        )
-    endif ()
-endif ()
-
-if (ENABLE_WEB_AUDIO)
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${WEBCORE_DIR}/platform/audio/gstreamer
-        ${GSTREAMER_AUDIO_INCLUDE_DIRS}
-        ${GSTREAMER_FFT_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${GSTREAMER_FFT_LIBRARIES}
-    )
-endif ()
-
-if (ENABLE_MEDIA_STREAM)
-    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
-        ${OPENWEBRTC_INCLUDE_DIRS}
-    )
-    list(APPEND WebCore_LIBRARIES
-        ${OPENWEBRTC_LIBRARIES}
-    )
-    list(APPEND WebCore_SOURCES
-        platform/graphics/gstreamer/MediaPlayerPrivateGStreamerOwr.cpp
-    )
-endif ()
-
-
 if (USE_OPENGL_ES_2)
     list(APPEND WebCore_SOURCES
         platform/graphics/opengl/Extensions3DOpenGLES.cpp

Added: trunk/Source/WebCore/platform/GStreamer.cmake (0 => 196552)


--- trunk/Source/WebCore/platform/GStreamer.cmake	                        (rev 0)
+++ trunk/Source/WebCore/platform/GStreamer.cmake	2016-02-13 19:12:28 UTC (rev 196552)
@@ -0,0 +1,115 @@
+list(APPEND WebCore_INCLUDE_DIRECTORIES
+    "${WEBCORE_DIR}/platform/mediastream/openwebrtc"
+)
+
+if (ENABLE_MEDIA_STREAM)
+    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+        ${OPENWEBRTC_INCLUDE_DIRS}
+    )
+
+    list(APPEND WebCore_LIBRARIES
+        ${OPENWEBRTC_LIBRARIES}
+    )
+
+    list(APPEND WebCore_SOURCES
+        platform/graphics/gstreamer/MediaPlayerPrivateGStreamerOwr.cpp
+
+        platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp
+        platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp
+    )
+endif ()
+
+if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
+    list(APPEND WebCore_INCLUDE_DIRECTORIES
+        "${WEBCORE_DIR}/platform/graphics/gstreamer"
+    )
+
+    list(APPEND WebCore_SOURCES
+        platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
+        platform/graphics/gstreamer/GRefPtrGStreamer.cpp
+        platform/graphics/gstreamer/GStreamerUtilities.cpp
+        platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp
+        platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+        platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
+        platform/graphics/gstreamer/MediaSourceGStreamer.cpp
+        platform/graphics/gstreamer/SourceBufferPrivateGStreamer.cpp
+        platform/graphics/gstreamer/TextCombinerGStreamer.cpp
+        platform/graphics/gstreamer/TextSinkGStreamer.cpp
+        platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp
+        platform/graphics/gstreamer/VideoSinkGStreamer.cpp
+        platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp
+        platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp
+        platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
+    )
+
+    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+        ${GSTREAMER_INCLUDE_DIRS}
+        ${GSTREAMER_BASE_INCLUDE_DIRS}
+        ${GSTREAMER_APP_INCLUDE_DIRS}
+        ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
+    )
+
+    list(APPEND WebCore_LIBRARIES
+        ${GSTREAMER_APP_LIBRARIES}
+        ${GSTREAMER_BASE_LIBRARIES}
+        ${GSTREAMER_LIBRARIES}
+        ${GSTREAMER_PBUTILS_LIBRARIES}
+        ${GSTREAMER_AUDIO_LIBRARIES}
+    )
+
+    # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
+    set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
+endif ()
+
+if (ENABLE_VIDEO)
+    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+        ${GSTREAMER_TAG_INCLUDE_DIRS}
+        ${GSTREAMER_VIDEO_INCLUDE_DIRS}
+    )
+
+    list(APPEND WebCore_LIBRARIES
+        ${GSTREAMER_TAG_LIBRARIES}
+        ${GSTREAMER_VIDEO_LIBRARIES}
+    )
+
+    if (USE_GSTREAMER_MPEGTS)
+        list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+            ${GSTREAMER_MPEGTS_INCLUDE_DIRS}
+        )
+        list(APPEND WebCore_LIBRARIES
+            ${GSTREAMER_MPEGTS_LIBRARIES}
+        )
+    endif ()
+
+    if (USE_GSTREAMER_GL)
+        list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+            ${GSTREAMER_GL_INCLUDE_DIRS}
+        )
+        list(APPEND WebCore_LIBRARIES
+            ${GSTREAMER_GL_LIBRARIES}
+        )
+    endif ()
+endif ()
+
+if (ENABLE_WEB_AUDIO)
+    list(APPEND WebCore_INCLUDE_DIRECTORIES
+        "${WEBCORE_DIR}/platform/audio/gstreamer"
+    )
+
+    list(APPEND WebCore_SOURCES
+        platform/audio/gstreamer/AudioDestinationGStreamer.cpp
+        platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
+        platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
+        platform/audio/gstreamer/FFTFrameGStreamer.cpp
+        platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
+    )
+
+    list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
+        ${GSTREAMER_AUDIO_INCLUDE_DIRS}
+        ${GSTREAMER_FFT_INCLUDE_DIRS}
+    )
+
+    list(APPEND WebCore_LIBRARIES
+        ${GSTREAMER_FFT_LIBRARIES}
+    )
+endif ()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to