At some point we will re-introduce these with the corresponding CI tests to ensure they stay green. PiperOrigin-RevId: 675691367pull/18363/head
parent
6b22fd125c
commit
7620bbf3c6
6 changed files with 0 additions and 426 deletions
@ -1,139 +0,0 @@ |
|||||||
# Copyright (c) 2009-2021, Google LLC |
|
||||||
# All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
load( |
|
||||||
"//hpb/bazel:hpb_proto_library.bzl", |
|
||||||
"hpb_proto_library_copts", |
|
||||||
) |
|
||||||
load( |
|
||||||
"//upb/bazel:build_defs.bzl", |
|
||||||
"UPB_DEFAULT_CPPOPTS", |
|
||||||
) |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
licenses(["notice"]) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "hpb", |
|
||||||
srcs = [ |
|
||||||
"hpb.cc", |
|
||||||
], |
|
||||||
hdrs = [ |
|
||||||
"hpb.h", |
|
||||||
], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
defines = ["HPB_BACKEND_UPB"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
"//hpb:arena", |
|
||||||
"//hpb:extension", |
|
||||||
"//hpb:ptr", |
|
||||||
"//hpb/backend/upb", |
|
||||||
"//hpb/backend/upb:interop", |
|
||||||
"//hpb/internal", |
|
||||||
"//hpb/internal:message_lock", |
|
||||||
"//hpb/internal:template_help", |
|
||||||
"//upb:base", |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
"//upb:message_copy", |
|
||||||
"//upb:message_promote", |
|
||||||
"//upb:mini_table", |
|
||||||
"//upb:wire", |
|
||||||
"//upb:wire_reader", |
|
||||||
"@com_google_absl//absl/status", |
|
||||||
"@com_google_absl//absl/status:statusor", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
"@com_google_absl//absl/strings:str_format", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "repeated_field", |
|
||||||
hdrs = [ |
|
||||||
"repeated_field.h", |
|
||||||
"repeated_field_iterator.h", |
|
||||||
], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
":hpb", |
|
||||||
"//hpb/backend/upb:interop", |
|
||||||
"//hpb/internal:template_help", |
|
||||||
"//upb:base", |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
"//upb:message_copy", |
|
||||||
"@com_google_absl//absl/base:core_headers", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
# Common support code for C++ generated code. |
|
||||||
cc_library( |
|
||||||
name = "generated_hpb_support", |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//hpb/bazel:__pkg__"], |
|
||||||
deps = [ |
|
||||||
":hpb", |
|
||||||
":repeated_field", |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
hpb_proto_library_copts( |
|
||||||
name = "hpb_proto_library_copts", |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//hpb/bazel:__pkg__"], |
|
||||||
) |
|
||||||
|
|
||||||
cc_test( |
|
||||||
name = "repeated_field_iterator_test", |
|
||||||
srcs = ["repeated_field_iterator_test.cc"], |
|
||||||
deps = [ |
|
||||||
":repeated_field", |
|
||||||
"//hpb", |
|
||||||
"//upb:message", |
|
||||||
"@com_google_absl//absl/strings:string_view", |
|
||||||
"@com_google_googletest//:gtest", |
|
||||||
"@com_google_googletest//:gtest_main", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "requires", |
|
||||||
hdrs = ["requires.h"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "ptr", |
|
||||||
hdrs = ["ptr.h"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "extension", |
|
||||||
srcs = ["extension.cc"], |
|
||||||
hdrs = ["extension.h"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
"//upb:mem", |
|
||||||
"//upb:mini_table", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "arena", |
|
||||||
hdrs = ["arena.h"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
"//upb:mem", |
|
||||||
], |
|
||||||
) |
|
@ -1,59 +0,0 @@ |
|||||||
# Copyright (c) 2024, Google LLC |
|
||||||
# All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
load( |
|
||||||
"//upb/bazel:build_defs.bzl", |
|
||||||
"UPB_DEFAULT_CPPOPTS", |
|
||||||
) |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "upb", |
|
||||||
hdrs = ["upb.h"], |
|
||||||
visibility = ["//upb:friends"], |
|
||||||
deps = [ |
|
||||||
":interop", |
|
||||||
"//hpb:ptr", |
|
||||||
"//hpb/internal", |
|
||||||
"//hpb/internal:template_help", |
|
||||||
"//upb:mini_table", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "interop", |
|
||||||
hdrs = ["interop.h"], |
|
||||||
visibility = [ |
|
||||||
"//hpb:__subpackages__", |
|
||||||
"//src/google/protobuf/compiler:__subpackages__", |
|
||||||
], |
|
||||||
deps = [ |
|
||||||
"//hpb:ptr", |
|
||||||
"//hpb/internal", |
|
||||||
"//upb:base", |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
"//upb:mini_table", |
|
||||||
"@com_google_absl//absl/strings:string_view", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_test( |
|
||||||
name = "interop_test", |
|
||||||
srcs = ["interop_test.cc"], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
deps = [ |
|
||||||
":interop", |
|
||||||
"//src/google/protobuf/compiler/hpb/tests:test_model_hpb_proto", |
|
||||||
"//src/google/protobuf/compiler/hpb/tests:test_model_upb_proto", |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
"@com_google_googletest//:gtest", |
|
||||||
"@com_google_googletest//:gtest_main", |
|
||||||
], |
|
||||||
) |
|
@ -1,23 +0,0 @@ |
|||||||
# Copyright (c) 2009-2021, Google LLC |
|
||||||
# All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
licenses(["notice"]) |
|
||||||
|
|
||||||
bzl_library( |
|
||||||
name = "hpb_proto_library_bzl", |
|
||||||
srcs = ["hpb_proto_library.bzl"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
"//bazel:upb_proto_library_bzl", |
|
||||||
"@bazel_skylib//lib:paths", |
|
||||||
"@bazel_tools//tools/cpp:toolchain_utils.bzl", |
|
||||||
], |
|
||||||
) |
|
@ -1,72 +0,0 @@ |
|||||||
# Copyright (c) 2024, Google LLC |
|
||||||
# All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
load( |
|
||||||
"//upb/bazel:build_defs.bzl", |
|
||||||
"UPB_DEFAULT_CPPOPTS", |
|
||||||
) |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "template_help", |
|
||||||
hdrs = ["template_help.h"], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//hpb:__subpackages__"], |
|
||||||
deps = [ |
|
||||||
"//hpb:ptr", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "internal", |
|
||||||
hdrs = ["internal.h"], |
|
||||||
visibility = [ |
|
||||||
"//hpb:__subpackages__", |
|
||||||
], |
|
||||||
deps = [ |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "message_lock", |
|
||||||
srcs = ["message_lock.cc"], |
|
||||||
hdrs = [ |
|
||||||
"message_lock.h", |
|
||||||
], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//upb:friends"], |
|
||||||
deps = [ |
|
||||||
"//upb:mem", |
|
||||||
"//upb:message", |
|
||||||
"//upb:message_copy", |
|
||||||
"//upb:message_promote", |
|
||||||
"//upb:mini_table", |
|
||||||
"//upb:wire", |
|
||||||
"@com_google_absl//absl/base:core_headers", |
|
||||||
"@com_google_absl//absl/status", |
|
||||||
"@com_google_absl//absl/status:statusor", |
|
||||||
"@com_google_absl//absl/synchronization", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_test( |
|
||||||
name = "message_lock_test", |
|
||||||
srcs = ["message_lock_test.cc"], |
|
||||||
deps = [ |
|
||||||
"//hpb", |
|
||||||
"//hpb/internal:message_lock", |
|
||||||
"//src/google/protobuf/compiler/hpb/tests:test_model_hpb_proto", |
|
||||||
"//upb:mem", |
|
||||||
"@com_google_absl//absl/hash", |
|
||||||
"@com_google_absl//absl/log:absl_check", |
|
||||||
"@com_google_googletest//:gtest", |
|
||||||
"@com_google_googletest//:gtest_main", |
|
||||||
], |
|
||||||
) |
|
@ -1,121 +0,0 @@ |
|||||||
# Copyright (c) 2009-2021, Google LLC |
|
||||||
# All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
load( |
|
||||||
"//upb/bazel:build_defs.bzl", |
|
||||||
"UPB_DEFAULT_CPPOPTS", |
|
||||||
) |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
licenses(["notice"]) |
|
||||||
|
|
||||||
cc_binary( |
|
||||||
name = "protoc-gen-upb-protos", |
|
||||||
srcs = [ |
|
||||||
"protoc-gen-upb-protos.cc", |
|
||||||
], |
|
||||||
copts = UPB_DEFAULT_CPPOPTS, |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
":gen_utils", |
|
||||||
":generator", |
|
||||||
":names", |
|
||||||
":output", |
|
||||||
"//:protobuf", |
|
||||||
"//src/google/protobuf", |
|
||||||
"//src/google/protobuf/compiler:code_generator", |
|
||||||
"//src/google/protobuf/compiler:plugin", |
|
||||||
"//upb_generator:file_layout", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "generator", |
|
||||||
srcs = [ |
|
||||||
"gen_accessors.cc", |
|
||||||
"gen_enums.cc", |
|
||||||
"gen_extensions.cc", |
|
||||||
"gen_messages.cc", |
|
||||||
"gen_repeated_fields.cc", |
|
||||||
], |
|
||||||
hdrs = [ |
|
||||||
"gen_accessors.h", |
|
||||||
"gen_enums.h", |
|
||||||
"gen_extensions.h", |
|
||||||
"gen_messages.h", |
|
||||||
"gen_repeated_fields.h", |
|
||||||
], |
|
||||||
visibility = ["//visibility:private"], |
|
||||||
deps = [ |
|
||||||
":gen_utils", |
|
||||||
":keywords", |
|
||||||
":names", |
|
||||||
":output", |
|
||||||
"//:protobuf", |
|
||||||
"//src/google/protobuf", |
|
||||||
"//upb_generator:common", |
|
||||||
"//upb_generator:file_layout", |
|
||||||
"//upb_generator/c:names", |
|
||||||
"//upb_generator/minitable:names", |
|
||||||
"@com_google_absl//absl/container:flat_hash_set", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "keywords", |
|
||||||
srcs = ["keywords.cc"], |
|
||||||
hdrs = ["keywords.h"], |
|
||||||
visibility = ["//visibility:private"], |
|
||||||
deps = [ |
|
||||||
"@com_google_absl//absl/container:flat_hash_set", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "output", |
|
||||||
srcs = ["output.cc"], |
|
||||||
hdrs = ["output.h"], |
|
||||||
visibility = ["//visibility:private"], |
|
||||||
deps = [ |
|
||||||
"//:protobuf", |
|
||||||
"//src/google/protobuf/io", |
|
||||||
"//upb_generator/c:names", |
|
||||||
"//upb_generator/minitable:names", |
|
||||||
"@com_google_absl//absl/log:absl_log", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "gen_utils", |
|
||||||
srcs = ["gen_utils.cc"], |
|
||||||
hdrs = ["gen_utils.h"], |
|
||||||
visibility = ["//visibility:public"], |
|
||||||
deps = [ |
|
||||||
"//:protobuf", |
|
||||||
"//src/google/protobuf", |
|
||||||
"//src/google/protobuf/compiler:code_generator", |
|
||||||
"@com_google_absl//absl/strings", |
|
||||||
], |
|
||||||
) |
|
||||||
|
|
||||||
cc_library( |
|
||||||
name = "names", |
|
||||||
srcs = ["names.cc"], |
|
||||||
hdrs = ["names.h"], |
|
||||||
visibility = ["//visibility:private"], |
|
||||||
deps = [ |
|
||||||
":keywords", |
|
||||||
":output", |
|
||||||
"//src/google/protobuf", |
|
||||||
"//src/google/protobuf/compiler:code_generator", |
|
||||||
"@com_google_absl//absl/strings:string_view", |
|
||||||
], |
|
||||||
) |
|
@ -1,12 +0,0 @@ |
|||||||
# Protocol Buffers - Google's data interchange format |
|
||||||
# Copyright 2023 Google LLC. All rights reserved. |
|
||||||
# |
|
||||||
# Use of this source code is governed by a BSD-style |
|
||||||
# license that can be found in the LICENSE file or at |
|
||||||
# https://developers.google.com/open-source/licenses/bsd |
|
||||||
|
|
||||||
# todo: re-add post migration |
|
||||||
|
|
||||||
package(default_applicable_licenses = ["//:license"]) |
|
||||||
|
|
||||||
# todo: re-add post migration |
|
Loading…
Reference in new issue