1# Copyright 2023 The ChromiumOS Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5load("@rules_proto//proto:defs.bzl", "proto_library") 6load("@io_bazel_rules_go//go:def.bzl", "go_library") 7load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 8 9proto_library( 10 name = "artifact_proto", 11 srcs = [ 12 "dut_metadata_artifact.proto", 13 "manifest.proto", 14 "test_plan.proto", 15 "test_result.proto", 16 "tko.proto", 17 ], 18 visibility = ["//visibility:public"], 19 deps = [ 20 "//chromiumos:_go_proto", 21 "//chromiumos/test/api:api_proto", 22 "//chromiumos/test/api/v1:test_api_v1_proto", 23 "//chromiumos/test/lab/api:api_proto", 24 "@com_google_protobuf//:duration_proto", 25 "@com_google_protobuf//:timestamp_proto", 26 ], 27) 28 29go_proto_library( 30 name = "artifact_go_proto", 31 importpath = "go.chromium.org/chromiumos/config/go/test/artifact", 32 proto = ":artifact_proto", 33 visibility = ["//visibility:public"], 34 deps = [ 35 "//chromiumos:go", 36 "//chromiumos/test/api", 37 "//chromiumos/test/api/v1:api", 38 "//chromiumos/test/lab/api", 39 ], 40) 41 42go_library( 43 name = "artifact", 44 embed = [":artifact_go_proto"], 45 importpath = "go.chromium.org/chromiumos/config/go/test/artifact", 46 visibility = ["//visibility:public"], 47) 48