BUILD.gn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. visibility = []
  6. # Integration helpers for fuchsia.* FIDL APIs used by Fuchsia Components.
  7. source_set("fuchsia_component_support") {
  8. # Only for use by Fuchsia Components.
  9. visibility += [
  10. ":unit_tests",
  11. "//chromecast/internal/*",
  12. "//fuchsia_web/runners/*",
  13. "//fuchsia_web/webengine/*",
  14. "//fuchsia_web/webinstance_host/*",
  15. ]
  16. public = [
  17. "config_reader.h",
  18. "feedback_registration.h",
  19. "inspect.h",
  20. ]
  21. sources = [
  22. "config_reader.cc",
  23. "feedback_registration.cc",
  24. "inspect.cc",
  25. ]
  26. public_deps = [
  27. "//base",
  28. "//third_party/abseil-cpp:absl",
  29. ]
  30. deps = [
  31. "//build:branding_buildflags",
  32. "//components/version_info",
  33. "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.feedback",
  34. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  35. "//third_party/fuchsia-sdk/sdk/pkg/sys_inspect_cpp",
  36. ]
  37. }
  38. source_set("unit_tests") {
  39. testonly = true
  40. visibility += [ "//components:components_unittests__exec" ]
  41. sources = [
  42. "config_reader_unittest.cc",
  43. "inspect_unittest.cc",
  44. ]
  45. deps = [
  46. ":fuchsia_component_support",
  47. "//base",
  48. "//base/test:test_support",
  49. "//components/version_info",
  50. "//testing/gtest",
  51. "//third_party/fuchsia-sdk/sdk/pkg/fdio",
  52. "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
  53. "//third_party/fuchsia-sdk/sdk/pkg/sys_inspect_cpp",
  54. ]
  55. }