BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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("//build/buildflag_header.gni")
  5. import("//testing/test.gni")
  6. source_set("metadata_headers") {
  7. visibility = [ ":*" ]
  8. sources = [
  9. "base_type_conversion.h",
  10. "metadata_cache.h",
  11. "metadata_header_macros.h",
  12. "metadata_impl_macros.h",
  13. "metadata_macros_internal.h",
  14. "metadata_types.h",
  15. "property_metadata.h",
  16. ]
  17. public_deps = [
  18. "//base:base",
  19. "//skia:skia",
  20. "//ui/base",
  21. "//ui/gfx",
  22. "//url",
  23. ]
  24. }
  25. component("metadata") {
  26. sources = [
  27. "base_type_conversion.cc",
  28. "metadata_cache.cc",
  29. "metadata_types.cc",
  30. ]
  31. defines = [ "IS_UI_BASE_METADATA_IMPL" ]
  32. deps = [
  33. "//skia:skia",
  34. "//ui/gfx:color_utils",
  35. ]
  36. public_deps = [ ":metadata_headers" ]
  37. }
  38. source_set("metadata_tests") {
  39. testonly = true
  40. sources = [
  41. "base_type_conversion_unittest.cc",
  42. "metadata_unittest.cc",
  43. ]
  44. deps = [
  45. ":metadata",
  46. "//base/test:test_support",
  47. "//skia:skia",
  48. "//testing/gtest",
  49. "//ui/gfx:color_utils",
  50. "//ui/gfx:test_support",
  51. ]
  52. }