| # Copyright 2017 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/go/go_library.gni") |
| import("//build/go/go_test.gni") |
| import("//build/go/toolchain.gni") |
| import("//build/package.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| go_library("battery_manager_lib") { |
| name = "battery_manager" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.power($go_toolchain)", |
| "//sdk/fidl/fuchsia.sys($go_toolchain)", |
| "//src/lib/component", |
| "//src/lib/syslog/go", |
| ] |
| } |
| |
| go_test("battery_manager_test") { |
| gopackages = [ "battery_manager" ] |
| deps = [ ":battery_manager_lib" ] |
| |
| # TODO(46536): Fix the leaks and remove this. |
| non_go_deps = [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ] |
| } |
| |
| test_package("battery-manager-gotests") { |
| deps = [ ":battery_manager_test" ] |
| tests = [ |
| { |
| name = "battery_manager_test" |
| environments = basic_envs |
| }, |
| ] |
| } |