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 = "api_proto", 11 srcs = [ 12 "container_metadata.proto", 13 "dlc.proto", 14 "factory.proto", 15 "firmware_config.proto", 16 "metadata_service.proto", 17 "portage.proto", 18 "software_attribute.proto", 19 "software_bundle.proto", 20 "subtools.proto", 21 "system_image.proto", 22 "test.proto", 23 ], 24 visibility = ["//visibility:public"], 25 deps = [ 26 "//chromiumos:_go_proto", 27 "//chromiumos/config/api:api_proto", 28 ], 29) 30 31go_proto_library( 32 name = "api_go_proto", 33 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 34 importpath = "go.chromium.org/chromiumos/config/go/build/api", 35 proto = ":api_proto", 36 visibility = ["//visibility:public"], 37 deps = [ 38 "//chromiumos:go", 39 "//chromiumos/config/api", 40 ], 41) 42 43go_library( 44 name = "api", 45 embed = [":api_go_proto"], 46 importpath = "go.chromium.org/chromiumos/config/go/build/api", 47 visibility = ["//visibility:public"], 48) 49