BUILD.gn 996 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 2017 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. static_library("heap_profiling") {
  5. sources = [
  6. "allocation.cc",
  7. "allocation.h",
  8. "connection_manager.cc",
  9. "connection_manager.h",
  10. "heap_profiling_service.cc",
  11. "heap_profiling_service.h",
  12. "json_exporter.cc",
  13. "json_exporter.h",
  14. ]
  15. public_deps = [
  16. "//base",
  17. "//components/services/heap_profiling/public/mojom",
  18. "//mojo/public/cpp/bindings",
  19. "//services/resource_coordinator/public/mojom",
  20. ]
  21. deps = [
  22. "//components/services/heap_profiling/public/cpp",
  23. "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
  24. ]
  25. }
  26. source_set("unit_tests") {
  27. testonly = true
  28. sources = [ "json_exporter_unittest.cc" ]
  29. deps = [
  30. ":heap_profiling",
  31. "//base",
  32. "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
  33. "//testing/gtest",
  34. ]
  35. }