blob: 1d74baa8f1e047c4d3aa5391971013e62517eaef [file] [log] [blame]
# Copyright 2019 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_binary.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
go_binary("artifactory") {
library = ":main"
}
group("tests") {
testonly = true
deps = [
":artifactory_lib_tests($host_toolchain)",
":artifactory_main_tests($host_toolchain)",
]
}
go_library("main") {
source_dir = "cmd"
sources = [
"main.go",
"up.go",
"up_test.go",
]
deps = [
":lib",
"//third_party/golibs:github.com/google/subcommands",
"//tools/build",
"//tools/lib/color",
"//tools/lib/iomisc",
"//tools/lib/jsonutil",
"//tools/lib/logger",
]
}
go_library("lib") {
sources = [
"assembly_input_archives.go",
"assembly_input_archives_test.go",
"assembly_manifests.go",
"assembly_manifests_test.go",
"binaries.go",
"binaries_test.go",
"blobs.go",
"blobs_test.go",
"images.go",
"images_test.go",
"licenses.go",
"licenses_test.go",
"modules.go",
"modules_test.go",
"product_bundle2.go",
"product_bundle2_test.go",
"product_size_checker_output.go",
"product_size_checker_output_test.go",
"sdk_archives.go",
"sdk_archives_test.go",
"tools.go",
"tools_test.go",
"upload.go",
]
deps = [
"//tools/build",
"//tools/lib/logger",
"//tools/lib/osmisc",
]
}
go_test("artifactory_lib_tests") {
library = ":lib"
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
go_test("artifactory_main_tests") {
library = ":main"
}