| # 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") |
| |
| go_library("power_manager_lib") { |
| name = "power_manager" |
| |
| deps = [ |
| "//garnet/public/fidl/fuchsia.sys($go_toolchain)", |
| "//garnet/public/fidl/fuchsia.power($go_toolchain)", |
| "//garnet/public/lib/syslog/go/src/syslog", |
| "//garnet/public/lib/component/go/src/app", |
| ] |
| } |
| |
| go_test("power_manager_test") { |
| gopackage = "power_manager" |
| deps = [ ":power_manager_lib" ] |
| } |
| |
| package("power_manager_gotests") { |
| testonly = true |
| |
| deps = [ |
| ":power_manager_test", |
| ] |
| tests = [ |
| { |
| name = "power_manager_test" |
| }, |
| ] |
| } |