123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Copyright 2021 The Chromium Authors. All rights reserved.
- # Use of this source code is governed by a BSD-style license that can be
- # found in the LICENSE file.
- if (is_mac) {
- static_library("power_metrics") {
- sources = [
- "energy_impact_mac.h",
- "energy_impact_mac.mm",
- "m1_sensors_internal_types_mac.h",
- "m1_sensors_mac.h",
- "m1_sensors_mac.mm",
- "mach_time_mac.h",
- "mach_time_mac.mm",
- "resource_coalition_internal_types_mac.h",
- "resource_coalition_mac.h",
- "resource_coalition_mac.mm",
- "smc_internal_types_mac.h",
- "smc_mac.h",
- "smc_mac.mm",
- ]
- deps = [ "//base" ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "energy_impact_mac_unittest.mm",
- "resource_coalition_mac_unittest.mm",
- ]
- data = [ "test/data/" ]
- deps = [
- ":power_metrics",
- "//base",
- "//testing/gtest",
- ]
- }
- }
|