1package { 2 default_applicable_licenses: ["external_grpc-grpc_third_party_upb_license"], 3} 4 5license { 6 name: "external_grpc-grpc_third_party_upb_license", 7 visibility: [":__subpackages__"], 8 license_kinds: [ 9 "SPDX-license-identifier-BSD-3-Clause", 10 ], 11 license_text: [ 12 "LICENSE", 13 ], 14} 15 16cc_library_headers { 17 name: "libgrpc_third_party_upb_headers", 18 defaults: ["grpc_deps_defaults"], 19 export_include_dirs: [ 20 ".", 21 ], 22 apex_available: [ 23 "//apex_available:anyapex", 24 "//apex_available:platform", 25 ], 26 27} 28 29cc_library_static { 30 name: "libgrpc_third_party_upb", 31 defaults: ["grpc_deps_defaults"], 32 srcs: [ 33 "upb/base/status.c", 34 "upb/hash/common.c", 35 "upb/json/decode.c", 36 "upb/json/encode.c", 37 "upb/lex/atoi.c", 38 "upb/lex/round_trip.c", 39 "upb/lex/strtod.c", 40 "upb/lex/unicode.c", 41 "upb/mem/alloc.c", 42 "upb/mem/arena.c", 43 "upb/message/internal/extension.c", 44 "upb/message/internal/message.c", 45 "upb/message/accessors.c", 46 "upb/message/array.c", 47 "upb/message/compare.c", 48 "upb/message/compat.c", 49 "upb/message/copy.c", 50 "upb/message/map.c", 51 "upb/message/map_sorter.c", 52 "upb/message/message.c", 53 "upb/message/promote.c", 54 "upb/mini_descriptor/internal/base92.c", 55 "upb/mini_descriptor/internal/encode.c", 56 "upb/mini_descriptor/build_enum.c", 57 "upb/mini_descriptor/decode.c", 58 "upb/mini_descriptor/link.c", 59 "upb/mini_table/internal/message.c", 60 "upb/mini_table/compat.c", 61 "upb/mini_table/extension_registry.c", 62 "upb/mini_table/message.c", 63 "upb/reflection/internal/def_builder.c", 64 "upb/reflection/internal/strdup2.c", 65 "upb/reflection/def_pool.c", 66 "upb/reflection/def_type.c", 67 "upb/reflection/desc_state.c", 68 "upb/reflection/enum_def.c", 69 "upb/reflection/enum_reserved_range.c", 70 "upb/reflection/enum_value_def.c", 71 "upb/reflection/extension_range.c", 72 "upb/reflection/field_def.c", 73 "upb/reflection/file_def.c", 74 "upb/reflection/message.c", 75 "upb/reflection/message_def.c", 76 "upb/reflection/message_reserved_range.c", 77 "upb/reflection/method_def.c", 78 "upb/reflection/oneof_def.c", 79 "upb/reflection/service_def.c", 80 "upb/text/encode.c", 81 "upb/wire/decode.c", 82 "upb/wire/encode.c", 83 "upb/wire/eps_copy_input_stream.c", 84 "upb/wire/reader.c", 85 ], 86 cflags: [ 87 "-Wno-unused-parameter", 88 ], 89 // Pin this project to C17 until we have upstream's NULL/false confusion fixes. 90 c_std: "gnu17", 91 static_libs: [ 92 "libgrpc_third_party_utf8_range", 93 "libgrpc_upb_protos", 94 ], 95 export_include_dirs: [ 96 ".", 97 ], 98 apex_available: [ 99 "//apex_available:anyapex", 100 "//apex_available:platform", 101 ], 102 103} 104