1 # Copyright (c) 2009-2024, Google LLC
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file or at
6 # https://developers.google.com/open-source/licenses/bsd
8 package(default_applicable_licenses = ["//:license"])
10 # Note: this library should not depend on upb reflection or C++ proto
11 # reflection. It is intended to be a lightweight target that can be used by
12 # other code generators without pulling in reflection of either library.
17 visibility = ["//upb_generator:__subpackages__"],
19 "@com_google_absl//absl/strings",
20 "@com_google_absl//absl/strings:string_view",
25 name = "cpp_to_upb_def",
26 srcs = ["cpp_to_upb_def.cc"],
27 hdrs = ["cpp_to_upb_def.h"],
29 "//src/google/protobuf/compiler/hpb:__subpackages__",
30 "//third_party/kotlin/protobuf/generator/native:__subpackages__",
34 "//src/google/protobuf",
35 "//src/google/protobuf:descriptor_upb_c_proto",
40 "@com_google_absl//absl/container:flat_hash_set",
41 "@com_google_absl//absl/log:absl_check",