Files
nearby/fastpair/proto/BUILD
T
Nick Bourdakos a08a42077c PR #2404: Add license header to all source files
Imported from GitHub PR https://github.com/google/nearby/pull/2404

Copybara import of the project:

--
a6fbb3c396321c0b9012b787323f5f2ff652fd8f by Nick Bourdakos <bourdakos1@gmail.com>:

Add license header to all source files

Merging this change closes #2404

PiperOrigin-RevId: 623540004
2024-04-10 10:40:38 -07:00

98 lines
2.4 KiB
Python

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
licenses(["notice"])
proto_library(
name = "fastpair_proto",
srcs = [
"cache.proto",
"data.proto",
"enum.proto",
"fast_pair_string.proto",
"fastpair_rpcs.proto",
],
visibility = [
"//fastpair:__subpackages__",
],
)
cc_proto_library(
name = "fastpair_cc_proto",
visibility = [
"//fastpair:__subpackages__",
],
deps = [":fastpair_proto"],
)
cc_library(
name = "proto_to_json",
srcs = [
"proto_to_json.cc",
],
hdrs = [
"proto_to_json.h",
],
compatible_with = ["//buildenv/target:non_prod"],
visibility = ["//visibility:public"],
deps = [
":fastpair_cc_proto",
"//fastpair/common",
"//internal/platform:types",
"@com_google_absl//absl/strings",
"@nlohmann_json//:json",
],
)
cc_library(
name = "proto_builder",
srcs = [
"proto_builder.cc",
],
hdrs = [
"proto_builder.h",
],
compatible_with = ["//buildenv/target:non_prod"],
visibility = ["//visibility:public"],
deps = [
":fastpair_cc_proto",
"//fastpair/common",
"//fastpair/repository",
"//internal/platform:types",
"@com_google_absl//absl/time",
],
)
cc_test(
name = "proto_builder_test",
srcs = [
"proto_builder_test.cc",
],
copts = [
"-Ithird_party",
],
deps = [
":fastpair_cc_proto",
":proto_builder",
"//fastpair/common",
"//internal/platform/implementation/g3", # build_cleaner: keep
"@com_github_protobuf_matchers//protobuf-matchers",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
],
)