Automated rollback of commit a30b25578a.

PiperOrigin-RevId: 643407401
pull/17146/head
Mike Kruskal 5 months ago committed by Copybara-Service
parent 071d5351eb
commit 40ffd46cec
  1. 16
      editions/BUILD
  2. 6
      java/core/BUILD.bazel
  3. 6
      src/google/protobuf/BUILD.bazel
  4. 2
      src/google/protobuf/compiler/cpp/helpers.cc
  5. 1
      src/google/protobuf/compiler/java/BUILD.bazel
  6. 2
      src/google/protobuf/compiler/java/generator.h
  7. 2
      src/google/protobuf/compiler/java/internal_helpers.h
  8. 2
      src/google/protobuf/compiler/java/kotlin_generator.h

@ -87,18 +87,6 @@ cc_library(
],
)
cc_proto_library(
name = "cpp_features_cc_proto",
testonly = True,
deps = ["//src/google/protobuf:cpp_features_proto"],
)
cc_proto_library(
name = "java_features_cc_proto",
testonly = True,
deps = ["//java/core:java_features_proto"],
)
cc_test(
name = "defaults_test",
srcs = ["defaults_test.cc"],
@ -109,11 +97,11 @@ cc_test(
":test_defaults_future",
],
deps = [
":cpp_features_cc_proto",
":defaults_test_embedded",
":java_features_cc_proto",
"//:protobuf",
"//java/core:java_features_cc_proto",
"//src/google/protobuf",
"//src/google/protobuf:cpp_features_cc_proto",
"//src/google/protobuf:port",
"//src/google/protobuf:protobuf_lite",
"//src/google/protobuf:test_textproto",

@ -196,6 +196,12 @@ proto_library(
deps = ["//:descriptor_proto"],
)
cc_proto_library(
name = "java_features_cc_proto",
visibility = ["//editions:__pkg__"],
deps = [":java_features_proto"],
)
filegroup(
name = "java_features_proto_srcs",
srcs = ["src/main/resources/google/protobuf/java_features.proto"],

@ -231,6 +231,12 @@ proto_library(
deps = [":descriptor_proto"],
)
cc_proto_library(
name = "cpp_features_cc_proto",
visibility = ["//editions:__pkg__"],
deps = [":cpp_features_proto"],
)
################################################################################
# C++ Runtime Library
################################################################################

@ -1664,6 +1664,8 @@ bool GetBootstrapBasename(const Options& options, absl::string_view basename,
"third_party/protobuf/descriptor"},
{"third_party/protobuf/cpp_features",
"third_party/protobuf/cpp_features"},
{"third_party/java/protobuf/java_features",
"third_party/java/protobuf/java_features_bootstrap"},
{"third_party/protobuf/compiler/plugin",
"third_party/protobuf/compiler/plugin"},
{"net/proto2/compiler/proto/profile",

@ -86,6 +86,7 @@ cc_library(
srcs = ["java_features.pb.cc"],
hdrs = ["java_features.pb.h"],
strip_include_prefix = "/src",
visibility = ["//editions:__pkg__"],
deps = [
"//src/google/protobuf",
"//src/google/protobuf:arena",

@ -18,8 +18,8 @@
#include <string>
#include <vector>
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/port.h"

@ -12,8 +12,8 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_INTERNAL_HELPERS_H__
#define GOOGLE_PROTOBUF_COMPILER_JAVA_INTERNAL_HELPERS_H__
#include "google/protobuf/compiler/java/generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/java/generator.h"
#include "google/protobuf/compiler/java/names.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/descriptor.pb.h"

@ -12,8 +12,8 @@
#include <string>
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/descriptor.pb.h"
// Must be included last.

Loading…
Cancel
Save