Skip to content

Commit b69f653

Browse files
Restore generator headers in cmake install until the next breaking C++ release (#20749)
* Restore generator headers in cmake install until the next breaking C++ release Fixes #20647 PiperOrigin-RevId: 738086869 * Regenerate stale files
1 parent f4b0a79 commit b69f653

File tree

11 files changed

+116
-1
lines changed

11 files changed

+116
-1
lines changed

cmake/installed_include_golden.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ google/protobuf/arenaz_sampler.h
1212
google/protobuf/compiler/code_generator.h
1313
google/protobuf/compiler/code_generator_lite.h
1414
google/protobuf/compiler/command_line_interface.h
15+
google/protobuf/compiler/cpp/generator.h
1516
google/protobuf/compiler/cpp/helpers.h
1617
google/protobuf/compiler/cpp/names.h
1718
google/protobuf/compiler/cpp/options.h
19+
google/protobuf/compiler/csharp/csharp_generator.h
1820
google/protobuf/compiler/csharp/names.h
1921
google/protobuf/compiler/importer.h
2022
google/protobuf/compiler/java/context.h
@@ -25,7 +27,9 @@ google/protobuf/compiler/java/java_features.pb.h
2527
google/protobuf/compiler/java/name_resolver.h
2628
google/protobuf/compiler/java/names.h
2729
google/protobuf/compiler/java/options.h
30+
google/protobuf/compiler/kotlin/generator.h
2831
google/protobuf/compiler/notices.h
32+
google/protobuf/compiler/objectivec/generator.h
2933
google/protobuf/compiler/objectivec/line_consumer.h
3034
google/protobuf/compiler/objectivec/names.h
3135
google/protobuf/compiler/objectivec/nsobject_methods.h
@@ -35,7 +39,10 @@ google/protobuf/compiler/php/php_generator.h
3539
google/protobuf/compiler/plugin.h
3640
google/protobuf/compiler/plugin.pb.h
3741
google/protobuf/compiler/plugin.proto
42+
google/protobuf/compiler/python/generator.h
43+
google/protobuf/compiler/python/pyi_generator.h
3844
google/protobuf/compiler/retention.h
45+
google/protobuf/compiler/ruby/ruby_generator.h
3946
google/protobuf/compiler/scc.h
4047
google/protobuf/compiler/subprocess.h
4148
google/protobuf/compiler/versions.h
0 Bytes
Binary file not shown.

pkg/BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,15 @@ cc_dist_library(
224224
"//src/google/protobuf/compiler/java:names",
225225
"//src/google/protobuf/compiler/objectivec:names",
226226
"//src/google/protobuf/compiler/php:names",
227-
# TODO Make this private once gRPC migrates off it.
227+
# TODO Make these private in the next breaking C++ release.
228+
"//src/google/protobuf/compiler/cpp:generator_headers",
229+
"//src/google/protobuf/compiler/csharp:generator_headers",
230+
"//src/google/protobuf/compiler/java:generator_headers",
231+
"//src/google/protobuf/compiler/kotlin:generator_headers",
232+
"//src/google/protobuf/compiler/objectivec:generator_headers",
228233
"//src/google/protobuf/compiler/php",
234+
"//src/google/protobuf/compiler/python:generator_headers",
235+
"//src/google/protobuf/compiler/ruby:generator_headers",
229236
],
230237
)
231238

src/file_lists.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,11 @@ set(libprotoc_public_hdrs
316316
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/code_generator.h
317317
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/code_generator_lite.h
318318
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/command_line_interface.h
319+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/cpp/generator.h
319320
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/cpp/helpers.h
320321
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/cpp/names.h
321322
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/cpp/options.h
323+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/csharp/csharp_generator.h
322324
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/csharp/names.h
323325
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/java/context.h
324326
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/java/doc_comment.h
@@ -328,15 +330,20 @@ set(libprotoc_public_hdrs
328330
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/java/name_resolver.h
329331
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/java/names.h
330332
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/java/options.h
333+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/kotlin/generator.h
331334
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/notices.h
335+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/objectivec/generator.h
332336
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/objectivec/line_consumer.h
333337
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/objectivec/names.h
334338
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/objectivec/nsobject_methods.h
335339
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/php/names.h
336340
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/php/php_generator.h
337341
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/plugin.h
338342
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/plugin.pb.h
343+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/python/generator.h
344+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/python/pyi_generator.h
339345
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/retention.h
346+
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/ruby/ruby_generator.h
340347
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/scc.h
341348
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/subprocess.h
342349
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/versions.h

src/google/protobuf/compiler/cpp/BUILD.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ cc_library(
2222
],
2323
)
2424

25+
cc_library(
26+
name = "generator_headers",
27+
hdrs = ["generator.h"],
28+
copts = COPTS,
29+
strip_include_prefix = "/src",
30+
visibility = ["//pkg:__pkg__"],
31+
deps = [
32+
"//src/google/protobuf",
33+
"//src/google/protobuf/compiler:code_generator",
34+
"@abseil-cpp//absl/status",
35+
"@abseil-cpp//absl/strings",
36+
],
37+
)
38+
2539
cc_library(
2640
name = "names_internal",
2741
srcs = [

src/google/protobuf/compiler/csharp/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ cc_library(
2020
],
2121
)
2222

23+
cc_library(
24+
name = "generator_headers",
25+
hdrs = ["csharp_generator.h"],
26+
copts = COPTS,
27+
strip_include_prefix = "/src",
28+
visibility = ["//pkg:__pkg__"],
29+
deps = [
30+
"//src/google/protobuf",
31+
"//src/google/protobuf/compiler:code_generator",
32+
],
33+
)
34+
2335
cc_library(
2436
name = "csharp",
2537
srcs = [

src/google/protobuf/compiler/java/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ cc_library(
2424
],
2525
)
2626

27+
cc_library(
28+
name = "generator_headers",
29+
hdrs = ["generator.h"],
30+
copts = COPTS,
31+
strip_include_prefix = "/src",
32+
visibility = ["//pkg:__pkg__"],
33+
deps = [
34+
"//src/google/protobuf",
35+
"//src/google/protobuf/compiler:code_generator",
36+
],
37+
)
38+
2739
cc_library(
2840
name = "helpers",
2941
srcs = [

src/google/protobuf/compiler/kotlin/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
load("//build_defs:cpp_opts.bzl", "COPTS")
22

3+
cc_library(
4+
name = "generator_headers",
5+
hdrs = ["generator.h"],
6+
copts = COPTS,
7+
strip_include_prefix = "/src",
8+
visibility = ["//pkg:__pkg__"],
9+
deps = [
10+
"//src/google/protobuf",
11+
"//src/google/protobuf/compiler:code_generator",
12+
],
13+
)
14+
315
cc_library(
416
name = "kotlin",
517
srcs = ["generator.cc"],

src/google/protobuf/compiler/objectivec/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ cc_library(
1717
],
1818
)
1919

20+
cc_library(
21+
name = "generator_headers",
22+
hdrs = ["generator.h"],
23+
copts = COPTS,
24+
strip_include_prefix = "/src",
25+
visibility = ["//pkg:__pkg__"],
26+
deps = [
27+
"//src/google/protobuf",
28+
"//src/google/protobuf/compiler:code_generator",
29+
],
30+
)
31+
2032
cc_library(
2133
name = "names_internal",
2234
srcs = [

src/google/protobuf/compiler/python/BUILD.bazel

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
66
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
77
load("//build_defs:cpp_opts.bzl", "COPTS")
88

9+
cc_library(
10+
name = "generator_headers",
11+
hdrs = [
12+
"generator.h",
13+
"pyi_generator.h",
14+
],
15+
copts = COPTS,
16+
strip_include_prefix = "/src",
17+
visibility = ["//pkg:__pkg__"],
18+
deps = [
19+
"//src/google/protobuf",
20+
"//src/google/protobuf/compiler:code_generator",
21+
"@abseil-cpp//absl/container:flat_hash_map",
22+
"@abseil-cpp//absl/container:flat_hash_set",
23+
"@abseil-cpp//absl/memory",
24+
"@abseil-cpp//absl/strings",
25+
"@abseil-cpp//absl/synchronization",
26+
],
27+
)
28+
929
cc_library(
1030
name = "python",
1131
srcs = [

src/google/protobuf/compiler/ruby/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
66
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
77
load("//build_defs:cpp_opts.bzl", "COPTS")
88

9+
cc_library(
10+
name = "generator_headers",
11+
hdrs = ["ruby_generator.h"],
12+
copts = COPTS,
13+
strip_include_prefix = "/src",
14+
visibility = ["//pkg:__pkg__"],
15+
deps = [
16+
"//src/google/protobuf",
17+
"//src/google/protobuf/compiler:code_generator",
18+
],
19+
)
20+
921
cc_library(
1022
name = "ruby",
1123
srcs = ["ruby_generator.cc"],

0 commit comments

Comments
 (0)