BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 2014 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. component("shared_mojom_traits") {
  6. output_name = "latency_shared_mojom_traits"
  7. defines = [ "IS_LATENCY_SHARED_MOJOM_TRAITS_IMPL" ]
  8. sources = [
  9. "latency_info_mojom_traits.cc",
  10. "latency_info_mojom_traits.h",
  11. ]
  12. public_deps = [
  13. ":mojom_shared",
  14. "//ipc:param_traits",
  15. "//ui/latency",
  16. ]
  17. }
  18. mojom("mojom") {
  19. generate_java = true
  20. sources = [ "latency_info.mojom" ]
  21. public_deps = [ "//mojo/public/mojom/base" ]
  22. cpp_typemaps = [
  23. {
  24. types = [
  25. {
  26. mojom = "ui.mojom.LatencyComponentType"
  27. cpp = "::ui::LatencyComponentType"
  28. },
  29. {
  30. mojom = "ui.mojom.LatencyInfo"
  31. cpp = "::ui::LatencyInfo"
  32. },
  33. ]
  34. traits_headers = [ "latency_info_mojom_traits.h" ]
  35. traits_public_deps = [
  36. ":shared_mojom_traits",
  37. "//ui/latency",
  38. ]
  39. },
  40. ]
  41. blink_cpp_typemaps = cpp_typemaps
  42. }
  43. mojom("test_interfaces") {
  44. testonly = true
  45. sources = [ "traits_test_service.mojom" ]
  46. public_deps = [ ":mojom" ]
  47. }