BUILD.gn 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. if (is_mac) {
  5. static_library("power_metrics") {
  6. sources = [
  7. "energy_impact_mac.h",
  8. "energy_impact_mac.mm",
  9. "m1_sensors_internal_types_mac.h",
  10. "m1_sensors_mac.h",
  11. "m1_sensors_mac.mm",
  12. "mach_time_mac.h",
  13. "mach_time_mac.mm",
  14. "resource_coalition_internal_types_mac.h",
  15. "resource_coalition_mac.h",
  16. "resource_coalition_mac.mm",
  17. "smc_internal_types_mac.h",
  18. "smc_mac.h",
  19. "smc_mac.mm",
  20. ]
  21. deps = [ "//base" ]
  22. }
  23. source_set("unit_tests") {
  24. testonly = true
  25. sources = [
  26. "energy_impact_mac_unittest.mm",
  27. "resource_coalition_mac_unittest.mm",
  28. ]
  29. data = [ "test/data/" ]
  30. deps = [
  31. ":power_metrics",
  32. "//base",
  33. "//testing/gtest",
  34. ]
  35. }
  36. }