1# Copyright 2024 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") 16load("@io_bazel_rules_go//proto:def.bzl", "go_grpc_library", "go_proto_library") 17load("@rules_python//sphinxdocs:sphinx_docs_library.bzl", "sphinx_docs_library") 18load("//pw_build:compatibility.bzl", "incompatible_with_mcu") 19 20package(default_visibility = ["//visibility:public"]) 21 22proto_library( 23 name = "protos", 24 srcs = ["pw_target_runner_protos/target_runner.proto"], 25) 26 27go_grpc_library( 28 name = "go_protos", 29 importpath = "pigweed/proto/pw_target_runner/target_runner_pb", 30 proto = ":protos", 31 target_compatible_with = incompatible_with_mcu(), 32) 33 34proto_library( 35 name = "exec_server_config_protos", 36 srcs = ["pw_target_runner_server_protos/exec_server_config.proto"], 37) 38 39go_proto_library( 40 name = "go_exec_server_config_protos", 41 importpath = "pigweed/proto/pw_target_runner/exec_server_config_pb", 42 proto = ":exec_server_config_protos", 43 target_compatible_with = incompatible_with_mcu(), 44) 45 46sphinx_docs_library( 47 name = "docs", 48 srcs = [ 49 "docs.rst", 50 "//pw_target_runner/go:docs", 51 ], 52 prefix = "pw_target_runner/", 53 target_compatible_with = incompatible_with_mcu(), 54) 55