BUILD.gn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. assert(is_fuchsia)
  5. visibility = [ ":*" ]
  6. source_set("webinstance_host") {
  7. assert_no_deps = [
  8. "//content/public/common",
  9. "//media",
  10. "//third_party/blink/common",
  11. ]
  12. # Only WebInstance clients should use the host.
  13. visibility += [
  14. # WebEngine clients that instantiate WebInstances directly.
  15. "//fuchsia_web/runners/*",
  16. "//fuchsia_web/shell:*",
  17. "//fuchsia_web/webengine:context_provider",
  18. ]
  19. sources = [
  20. "fuchsia_web_debug_proxy.cc",
  21. "fuchsia_web_debug_proxy.h",
  22. "web_instance_host.cc",
  23. ]
  24. public = [ "web_instance_host.h" ]
  25. deps = [
  26. "//base",
  27. "//base:base_static",
  28. "//components/fuchsia_component_support",
  29. "//fuchsia_web/common",
  30. "//fuchsia_web/webengine:switches",
  31. "//gpu/command_buffer/service",
  32. "//gpu/config",
  33. "//services/network/public/cpp",
  34. "//third_party/fuchsia-sdk/sdk/pkg/async",
  35. "//third_party/fuchsia-sdk/sdk/pkg/fdio",
  36. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  37. "//third_party/fuchsia-sdk/sdk/pkg/zx",
  38. "//third_party/widevine/cdm:headers",
  39. "//ui/ozone",
  40. ]
  41. public_deps = [
  42. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.io",
  43. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sys",
  44. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.web",
  45. "//third_party/fuchsia-sdk/sdk/pkg/fidl",
  46. ]
  47. }
  48. source_set("webinstance_host_integration_test") {
  49. testonly = true
  50. visibility += [ "//fuchsia_web/webengine/*" ]
  51. sources = [ "web_instance_host_integration_test.cc" ]
  52. deps = [
  53. ":webinstance_host",
  54. "//base",
  55. "//fuchsia_web/common/test:test_support",
  56. "//fuchsia_web/webengine:browsertest_core",
  57. "//net:test_support",
  58. "//testing/gtest",
  59. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  60. ]
  61. }