BUILD.gn 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 2019 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. source_set("lib") {
  5. sources = [
  6. "annotator.cc",
  7. "annotator.h",
  8. "image_annotation_metrics.cc",
  9. "image_annotation_metrics.h",
  10. "image_annotation_utils.cc",
  11. "image_annotation_utils.h",
  12. ]
  13. visibility = [ "/*" ]
  14. deps = [
  15. "//base",
  16. "//components/google/core/common",
  17. "//mojo/public/cpp/bindings",
  18. "//net",
  19. "//services/data_decoder/public/mojom",
  20. "//services/image_annotation/public/mojom",
  21. "//services/network/public/cpp",
  22. "//url",
  23. ]
  24. }
  25. source_set("service") {
  26. sources = [
  27. "image_annotation_service.cc",
  28. "image_annotation_service.h",
  29. ]
  30. public_deps = [
  31. ":lib",
  32. "//base",
  33. "//services/data_decoder/public/mojom",
  34. "//services/image_annotation/public/mojom",
  35. "//services/network/public/cpp",
  36. "//url",
  37. ]
  38. }
  39. source_set("tests") {
  40. testonly = true
  41. sources = [ "annotator_unittest.cc" ]
  42. deps = [
  43. ":lib",
  44. "//base",
  45. "//base/test:test_support",
  46. "//mojo/public/cpp/bindings",
  47. "//net",
  48. "//services/data_decoder/public/cpp",
  49. "//services/data_decoder/public/cpp:test_support",
  50. "//services/data_decoder/public/mojom",
  51. "//services/image_annotation/public/cpp",
  52. "//services/image_annotation/public/mojom",
  53. "//services/network:test_support",
  54. "//services/network/public/cpp",
  55. "//services/service_manager/public/cpp",
  56. "//services/service_manager/public/cpp/test:test_support",
  57. "//services/service_manager/public/mojom",
  58. "//testing/gmock",
  59. "//testing/gtest",
  60. "//url",
  61. ]
  62. }