chromium/third_party/blink/renderer/modules/mediastream/BUILD.gn

# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/blink/renderer/modules/modules.gni")

blink_modules_sources("mediastream") {
  sources = [
    "apply_constraints_processor.cc",
    "apply_constraints_processor.h",
    "apply_constraints_request.cc",
    "apply_constraints_request.h",
    "browser_capture_media_stream_track.cc",
    "browser_capture_media_stream_track.h",
    "capture_controller.cc",
    "capture_controller.h",
    "captured_mouse_event.cc",
    "captured_mouse_event.h",
    "crop_target.cc",
    "crop_target.h",
    "dom_window_media_stream.h",
    "identifiability_metrics.cc",
    "identifiability_metrics.h",
    "image_capture_device_settings.h",
    "input_device_info.cc",
    "input_device_info.h",
    "local_media_stream_audio_source.cc",
    "local_media_stream_audio_source.h",
    "local_video_capturer_source.cc",
    "local_video_capturer_source.h",
    "low_latency_video_renderer_algorithm.cc",
    "low_latency_video_renderer_algorithm.h",
    "media_constraints.cc",
    "media_constraints.h",
    "media_constraints_impl.cc",
    "media_constraints_impl.h",
    "media_device_info.cc",
    "media_device_info.h",
    "media_devices.cc",
    "media_devices.h",
    "media_stream.cc",
    "media_stream.h",
    "media_stream_audio_processor.cc",
    "media_stream_audio_processor.h",
    "media_stream_audio_renderer.h",
    "media_stream_constraints_util.cc",
    "media_stream_constraints_util.h",
    "media_stream_constraints_util_audio.cc",
    "media_stream_constraints_util_audio.h",
    "media_stream_constraints_util_sets.cc",
    "media_stream_constraints_util_sets.h",
    "media_stream_constraints_util_video_content.cc",
    "media_stream_constraints_util_video_content.h",
    "media_stream_constraints_util_video_device.cc",
    "media_stream_constraints_util_video_device.h",
    "media_stream_device_observer.cc",
    "media_stream_device_observer.h",
    "media_stream_event.cc",
    "media_stream_event.h",
    "media_stream_local_frame_wrapper.cc",
    "media_stream_local_frame_wrapper.h",
    "media_stream_renderer_factory.cc",
    "media_stream_renderer_factory.h",
    "media_stream_set.cc",
    "media_stream_set.h",
    "media_stream_track.cc",
    "media_stream_track.h",
    "media_stream_track_audio_stats.cc",
    "media_stream_track_audio_stats.h",
    "media_stream_track_content_hint.h",
    "media_stream_track_event.cc",
    "media_stream_track_event.h",
    "media_stream_track_impl.cc",
    "media_stream_track_impl.h",
    "media_stream_track_video_stats.cc",
    "media_stream_track_video_stats.h",
    "media_stream_utils.cc",
    "media_stream_utils.h",
    "media_stream_video_capturer_source.cc",
    "media_stream_video_capturer_source.h",
    "media_stream_video_renderer.h",
    "media_stream_video_renderer_sink.cc",
    "media_stream_video_renderer_sink.h",
    "media_stream_video_sink.cc",
    "media_stream_video_source.cc",
    "media_stream_video_track.cc",
    "media_stream_video_track.h",
    "navigator_media_stream.cc",
    "navigator_media_stream.h",
    "overconstrained_error.cc",
    "overconstrained_error.h",
    "processed_local_audio_source.cc",
    "processed_local_audio_source.h",
    "remote_media_stream_track_adapter.cc",
    "remote_media_stream_track_adapter.h",
    "restriction_target.cc",
    "restriction_target.h",
    "screen_capture_media_stream_track.cc",
    "screen_capture_media_stream_track.h",
    "sub_capture_target.cc",
    "sub_capture_target.h",
    "track_audio_renderer.cc",
    "track_audio_renderer.h",
    "transferred_media_stream_track.cc",
    "transferred_media_stream_track.h",
    "user_media_client.cc",
    "user_media_client.h",
    "user_media_processor.cc",
    "user_media_processor.h",
    "user_media_request.cc",
    "user_media_request.h",
    "video_renderer_algorithm_wrapper.cc",
    "video_renderer_algorithm_wrapper.h",
    "video_track_adapter.cc",
    "video_track_adapter.h",
    "video_track_adapter_settings.cc",
    "video_track_adapter_settings.h",
    "web_media_player_ms.cc",
    "web_media_player_ms_compositor.cc",
    "web_media_player_ms_compositor.h",
    "web_media_stream_device_observer.cc",
    "web_media_stream_utils.cc",
    "webaudio_media_stream_audio_sink.cc",
    "webaudio_media_stream_audio_sink.h",
  ]
  deps = [
    "//build:chromecast_buildflags",
    "//build:chromeos_buildflags",
    "//media/capture/mojom:image_capture_blink",
    "//media/webrtc",
    "//services/viz/public/cpp/gpu:gpu",
    "//third_party/blink/public/common",
    "//third_party/blink/renderer/modules/imagecapture:imagecapture",
    "//third_party/blink/renderer/modules/screen_details:screen_details",
    "//third_party/libyuv:libyuv",
  ]
  allow_circular_includes_from =
      [ "//third_party/blink/renderer/modules/imagecapture:imagecapture" ]

  public_deps = [ "//media/capture:capture_lib" ]
}

source_set("test_support") {
  testonly = true

  sources = [
    "mock_constraint_factory.cc",
    "mock_constraint_factory.h",
    "mock_encoded_video_frame.h",
    "mock_media_stream_audio_sink.cc",
    "mock_media_stream_audio_sink.h",
    "mock_media_stream_registry.cc",
    "mock_media_stream_registry.h",
    "mock_media_stream_track.cc",
    "mock_media_stream_track.h",
    "mock_media_stream_video_sink.cc",
    "mock_media_stream_video_sink.h",
    "mock_media_stream_video_source.cc",
    "mock_media_stream_video_source.h",
    "mock_video_capturer_source.h",
    "test/fake_image_capturer.cc",
    "test/fake_image_capturer.h",
    "test/transfer_test_utils.cc",
    "test/transfer_test_utils.h",
    "testing_platform_support_with_mock_audio_capture_source.cc",
    "testing_platform_support_with_mock_audio_capture_source.h",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//media/capture/mojom:image_capture_blink",
    "//skia",
    "//testing/gmock",
    "//third_party/blink/public:test_headers",
    "//third_party/blink/public/mojom:mojom_platform_blink_headers",
    "//third_party/blink/renderer/modules:modules",
    "//third_party/webrtc_overrides:webrtc_component",
  ]

  public_deps = [ "//third_party/blink/renderer/platform:test_support" ]

  configs += [ "//third_party/blink/renderer:inside_blink" ]
}