| # Copyright 2018 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("lib") { |
| name = "system_updater" |
| |
| deps = [ |
| "//garnet/public/fidl/fuchsia.amber($go_toolchain)", |
| "//garnet/public/fidl/fuchsia.sys($go_toolchain)", |
| "//garnet/public/lib/component/go/src/app", |
| "//garnet/public/lib/syslog/go/src/syslog", |
| "//garnet/go/src/amber:metrics_lib", |
| ] |
| } |
| |
| go_test("system_updater_test") { |
| gopackage = "system_updater" |
| deps = [ |
| ":lib", |
| ] |
| } |
| |
| package("system_updater_tests") { |
| testonly = true |
| |
| deps = [ |
| ":system_updater_test", |
| ] |
| |
| resources = [ |
| { |
| path = rebase_path("test_images") |
| dest = "images" |
| }, |
| { |
| path = rebase_path("test_packages") |
| dest = "packages" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "system_updater_test" |
| }, |
| ] |
| } |