1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69

media / fuchsia / video / BUILD.gn [blame]

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

assert(is_fuchsia)

source_set("video") {
  visibility = [
    ":unittests",
    "//content/renderer/*",
    "//media/gpu/*",
    "//media/mojo/clients/*",
    "//third_party/blink/renderer/modules/webcodecs/*",
  ]
  public = [
    "fuchsia_decoder_factory.h",
    "fuchsia_video_decoder.h",
    "fuchsia_video_encode_accelerator.h",
  ]
  sources = [
    "fuchsia_decoder_factory.cc",
    "fuchsia_video_decoder.cc",
    "fuchsia_video_encode_accelerator.cc",
  ]
  public_deps = [
    "//base",
    "//media",
    "//media/fuchsia/common",
    "//media/mojo/mojom",
    "//mojo/public/cpp/bindings",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.media:fuchsia.media_hlcpp",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mediacodec:fuchsia.mediacodec_hlcpp",
    "//ui/gfx",
  ]
  deps = [
    "//components/viz/common",
    "//gpu/command_buffer/client",
    "//gpu/command_buffer/common",
    "//gpu/ipc/common",
    "//third_party/blink/public:blink_headers",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mediacodec:fuchsia.mediacodec_hlcpp",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp",
    "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
    "//third_party/libyuv:libyuv",
    "//ui/ozone",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [ "fuchsia_video_decoder_unittest.cc" ]
  deps = [
    ":video",
    "//base/test:test_support",
    "//components/viz/common",
    "//components/viz/test:test_support",
    "//gpu:test_support",
    "//gpu/command_buffer/client",
    "//gpu/config",
    "//media:test_support",
    "//media/mojo/mojom",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/blink/public/common",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mediacodec:fuchsia.mediacodec_hlcpp",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp",
    "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  ]
}