BUILD.gn 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Copyright 2022 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. import("//build/config/fuchsia/generate_runner_scripts.gni")
  6. # Nothing else should depend on these targets except the final component.
  7. visibility = [ ":*" ]
  8. group("shell") {
  9. testonly = true
  10. visibility += [
  11. "//chrome/test:*",
  12. "//content/test:*",
  13. "//fuchsia_web:gn_all",
  14. ]
  15. deps = [
  16. ":cast_streaming_shell",
  17. ":web_engine_shell",
  18. ]
  19. }
  20. source_set("remote_debugging_port") {
  21. sources = [
  22. "remote_debugging_port.cc",
  23. "remote_debugging_port.h",
  24. ]
  25. deps = [ "//base" ]
  26. }
  27. fuchsia_component("web_engine_shell_component") {
  28. testonly = true
  29. manifest = "web_engine_shell.cmx"
  30. data_deps = [ ":web_engine_shell_exec" ]
  31. }
  32. fuchsia_package("web_engine_shell_pkg") {
  33. testonly = true
  34. # TODO(fxbug.dev/100944): Add appropriate visibility when fixed.
  35. package_name = "web_engine_shell"
  36. deps = [ ":web_engine_shell_component" ]
  37. }
  38. fuchsia_package_installer("web_engine_shell") {
  39. testonly = true
  40. package = ":web_engine_shell_pkg"
  41. package_name = "web_engine_shell"
  42. package_deps = [
  43. [
  44. "//fuchsia_web/webengine:web_engine",
  45. "web_engine",
  46. ],
  47. [
  48. "//fuchsia_web/webengine:web_engine_with_webui",
  49. "web_engine_with_webui",
  50. ],
  51. ]
  52. }
  53. executable("web_engine_shell_exec") {
  54. testonly = true
  55. sources = [ "web_engine_shell.cc" ]
  56. data = [ "data" ]
  57. deps = [
  58. ":remote_debugging_port",
  59. "//base",
  60. "//fuchsia_web/common",
  61. "//fuchsia_web/webinstance_host/",
  62. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.policy",
  63. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.web",
  64. "//third_party/fuchsia-sdk/sdk/pkg/fdio",
  65. "//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp",
  66. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  67. "//url",
  68. ]
  69. }
  70. fuchsia_component("cast_streaming_shell_component") {
  71. testonly = true
  72. manifest = "cast_streaming_shell.cmx"
  73. data_deps = [ ":cast_streaming_shell_exe" ]
  74. }
  75. fuchsia_package("cast_streaming_shell_pkg") {
  76. testonly = true
  77. package_name = "cast_streaming_shell"
  78. deps = [ ":cast_streaming_shell_component" ]
  79. }
  80. fuchsia_package_installer("cast_streaming_shell") {
  81. testonly = true
  82. package = ":cast_streaming_shell_pkg"
  83. package_name = "cast_streaming_shell"
  84. package_deps = [ [
  85. "//fuchsia_web/webengine:web_engine",
  86. "web_engine",
  87. ] ]
  88. }
  89. executable("cast_streaming_shell_exe") {
  90. testonly = true
  91. sources = [ "cast_streaming_shell.cc" ]
  92. data = [
  93. "cast_streaming_shell_data",
  94. rebase_path("//media/test/data/vp8-I-frame-640x240"),
  95. ]
  96. deps = [
  97. ":remote_debugging_port",
  98. "//base",
  99. "//components/cast/message_port:message_port",
  100. "//components/cast_streaming/browser:test_sender",
  101. "//components/openscreen_platform:openscreen_platform_net",
  102. "//fuchsia_web/cast_streaming",
  103. "//fuchsia_web/common/test:test_support",
  104. "//fuchsia_web/webengine:switches",
  105. "//fuchsia_web/webinstance_host",
  106. "//media",
  107. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.policy",
  108. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.web",
  109. "//third_party/fuchsia-sdk/sdk/pkg/fdio",
  110. "//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp",
  111. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  112. "//url",
  113. ]
  114. }