blob: 3dd3141c6aaa775f070a2d4ed25f0852ad0713c8 [file] [log] [blame]
# Copyright 2022 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")
if (is_host) {
go_library("packages") {
testonly = true
deps = [
"../avb",
"../ffx",
"../util",
"../zbi",
"//src/lib/versioning/version-history/go:version-history",
"//src/sys/pkg/bin/pm/build",
"//src/sys/pkg/bin/pm/pkg",
"//src/sys/pkg/lib/far/go:far",
"//src/sys/pkg/lib/merkle",
"//src/sys/pkg/lib/repo",
"//third_party/golibs:github.com/theupdateframework/go-tuf",
"//tools/lib/logger",
"//tools/lib/osmisc",
]
sources = [
"package.go",
"package_builder.go",
"package_builder_test.go",
"package_test.go",
"repo.go",
"repo_test.go",
"server.go",
"system_image_package.go",
"update_images.go",
"update_package.go",
]
}
go_test("host-target-testing-packages-test") {
library = ":packages"
data_deps = [
"//src/developer/ffx:test_data",
"//src/developer/ffx/lib/pkg:empty-repo-keys",
"//src/developer/ffx/plugins/repository:ffx_repository_tool_test_data",
]
}
}