-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cmake support to protocolbuffers/cpp plugins to v25 (#1577)
Also squash layers --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: app-token-plugins[bot] <116026991+app-token-plugins[bot]@users.noreply.github.com> Co-authored-by: mfridman <[email protected]> Co-authored-by: Saquib Mian <[email protected]> Co-authored-by: Philip K. Warren <[email protected]> Co-authored-by: Michael Fridman <[email protected]> Co-authored-by: Philip K. Warren <[email protected]>
- Loading branch information
1 parent
19c561a
commit 00c92ec
Showing
16 changed files
with
113 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
* | ||
!BUILD | ||
!cpp.cc | ||
!disable_cpp_editions.patch | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
plugins/protocolbuffers/cpp/v25.0/disable_cpp_editions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/google/protobuf/compiler/cpp/generator.h b/src/google/protobuf/compiler/cpp/generator.h | ||
index 64f334d5b..fd6e08e84 100644 | ||
--- a/src/google/protobuf/compiler/cpp/generator.h | ||
+++ b/src/google/protobuf/compiler/cpp/generator.h | ||
@@ -70,14 +70,7 @@ class PROTOC_EXPORT CppGenerator : public CodeGenerator { | ||
std::string* error) const override; | ||
|
||
uint64_t GetSupportedFeatures() const override { | ||
- return FEATURE_PROTO3_OPTIONAL | FEATURE_SUPPORTS_EDITIONS; | ||
- } | ||
- | ||
- Edition GetMinimumEdition() const override { return Edition::EDITION_PROTO2; } | ||
- Edition GetMaximumEdition() const override { return Edition::EDITION_2023; } | ||
- | ||
- std::vector<const FieldDescriptor*> GetFeatureExtensions() const override { | ||
- return {GetExtensionReflection(pb::cpp)}; | ||
+ return FEATURE_PROTO3_OPTIONAL; | ||
} | ||
|
||
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
* | ||
!BUILD | ||
!cpp.cc | ||
!disable_cpp_editions.patch | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
plugins/protocolbuffers/cpp/v25.1/disable_cpp_editions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/google/protobuf/compiler/cpp/generator.h b/src/google/protobuf/compiler/cpp/generator.h | ||
index 64f334d5b..fd6e08e84 100644 | ||
--- a/src/google/protobuf/compiler/cpp/generator.h | ||
+++ b/src/google/protobuf/compiler/cpp/generator.h | ||
@@ -70,14 +70,7 @@ class PROTOC_EXPORT CppGenerator : public CodeGenerator { | ||
std::string* error) const override; | ||
|
||
uint64_t GetSupportedFeatures() const override { | ||
- return FEATURE_PROTO3_OPTIONAL | FEATURE_SUPPORTS_EDITIONS; | ||
- } | ||
- | ||
- Edition GetMinimumEdition() const override { return Edition::EDITION_PROTO2; } | ||
- Edition GetMaximumEdition() const override { return Edition::EDITION_2023; } | ||
- | ||
- std::vector<const FieldDescriptor*> GetFeatureExtensions() const override { | ||
- return {GetExtensionReflection(pb::cpp)}; | ||
+ return FEATURE_PROTO3_OPTIONAL; | ||
} | ||
|
||
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
* | ||
!BUILD | ||
!cpp.cc | ||
!disable_cpp_editions.patch | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
plugins/protocolbuffers/cpp/v25.2/disable_cpp_editions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/google/protobuf/compiler/cpp/generator.h b/src/google/protobuf/compiler/cpp/generator.h | ||
index 64f334d5b..fd6e08e84 100644 | ||
--- a/src/google/protobuf/compiler/cpp/generator.h | ||
+++ b/src/google/protobuf/compiler/cpp/generator.h | ||
@@ -70,14 +70,7 @@ class PROTOC_EXPORT CppGenerator : public CodeGenerator { | ||
std::string* error) const override; | ||
|
||
uint64_t GetSupportedFeatures() const override { | ||
- return FEATURE_PROTO3_OPTIONAL | FEATURE_SUPPORTS_EDITIONS; | ||
- } | ||
- | ||
- Edition GetMinimumEdition() const override { return Edition::EDITION_PROTO2; } | ||
- Edition GetMaximumEdition() const override { return Edition::EDITION_2023; } | ||
- | ||
- std::vector<const FieldDescriptor*> GetFeatureExtensions() const override { | ||
- return {GetExtensionReflection(pb::cpp)}; | ||
+ return FEATURE_PROTO3_OPTIONAL; | ||
} | ||
|
||
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters