BUILD.gn 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//mojo/public/tools/bindings/mojom.gni")
  5. # Only allow use by the WebEngine implementation.
  6. visibility = [ "//fuchsia_web/webengine:web_engine_core" ]
  7. mojom("mojom") {
  8. sources = [ "web_engine_media_resource_provider.mojom" ]
  9. export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
  10. export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
  11. export_header_blink = "third_party/blink/public/platform/web_common.h"
  12. shared_cpp_typemaps = {
  13. types = [
  14. {
  15. mojom = "mojom.AudioConsumerRequest"
  16. cpp = "::fidl::InterfaceRequest<::fuchsia::media::AudioConsumer>"
  17. move_only = true
  18. },
  19. ]
  20. traits_headers = [ "web_engine_media_resource_provider_mojom_traits.h" ]
  21. traits_public_deps = [
  22. "//mojo/public/cpp/base/fuchsia:traits",
  23. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.media",
  24. ]
  25. }
  26. cpp_typemaps = [ shared_cpp_typemaps ]
  27. blink_cpp_typemaps = [ shared_cpp_typemaps ]
  28. }