Add missing enum case in TypeKind calculation.
[google-protobuf.git] / upb_generator / common / BUILD
blobae8c297e86848c7bf9fdd235533af16760882a97
1 # Copyright (c) 2009-2024, Google LLC
2 # All rights reserved.
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.
13 cc_library(
14     name = "names",
15     srcs = ["names.cc"],
16     hdrs = ["names.h"],
17     visibility = ["//upb_generator:__subpackages__"],
18     deps = [
19         "@com_google_absl//absl/strings",
20         "@com_google_absl//absl/strings:string_view",
21     ],
24 cc_library(
25     name = "cpp_to_upb_def",
26     srcs = ["cpp_to_upb_def.cc"],
27     hdrs = ["cpp_to_upb_def.h"],
28     visibility = [
29         "//src/google/protobuf/compiler/hpb:__subpackages__",
30         "//third_party/kotlin/protobuf/generator/native:__subpackages__",
31     ],
32     deps = [
33         "//:protobuf",
34         "//src/google/protobuf",
35         "//src/google/protobuf:descriptor_upb_c_proto",
36         "//upb:base",
37         "//upb:mem",
38         "//upb:mini_table",
39         "//upb:reflection",
40         "@com_google_absl//absl/container:flat_hash_set",
41         "@com_google_absl//absl/log:absl_check",
42     ],