1################################################################################ 2# Protocol Buffers Compiler - Generation of accessors for individual fields. 3################################################################################ 4 5load("@rules_cc//cc:defs.bzl", "cc_library") 6load("//build_defs:cpp_opts.bzl", "COPTS") 7 8cc_library( 9 name = "accessors", 10 srcs = [ 11 "accessor_case.cc", 12 "accessors.cc", 13 "default_value.cc", 14 "map.cc", 15 "repeated_field.cc", 16 "singular_cord.cc", 17 "singular_message.cc", 18 "singular_scalar.cc", 19 "singular_string.cc", 20 "unsupported_field.cc", 21 "with_presence.cc", 22 ], 23 hdrs = [ 24 "accessor_case.h", 25 "accessors.h", 26 "default_value.h", 27 "generator.h", 28 "with_presence.h", 29 ], 30 copts = COPTS, 31 strip_include_prefix = "/src", 32 visibility = [ 33 "//pkg:__pkg__", 34 "//src/google/protobuf/compiler:__subpackages__", 35 ], 36 deps = [ 37 "//src/google/protobuf", 38 "//src/google/protobuf:port", 39 "//src/google/protobuf/compiler/cpp:names_internal", 40 "//src/google/protobuf/compiler/rust:context", 41 "//src/google/protobuf/compiler/rust:naming", 42 "//src/google/protobuf/compiler/rust:rust_field_type", 43 "//src/google/protobuf/compiler/rust:upb_helpers", 44 "//src/google/protobuf/io:tokenizer", 45 "@com_google_absl//absl/log:absl_check", 46 "@com_google_absl//absl/log:absl_log", 47 "@com_google_absl//absl/strings", 48 "@com_google_absl//absl/strings:str_format", 49 ], 50) 51