Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize protobuf compile functions #300

Merged
merged 2 commits into from
Sep 29, 2023
Merged

Modularize protobuf compile functions #300

merged 2 commits into from
Sep 29, 2023

Conversation

ffoulkes
Copy link
Contributor

@ffoulkes ffoulkes commented Sep 27, 2023

  • Move generate_proto_files() and generate_grpc_files() function definitions to ProtobufCompile.cmake.

This is basically a physical refactoring -- moving an option and two function definitions to an include file. The changes were:

  • Add a comment block documenting the input and output variables.
  • Rename PROTOBUF_PROTOC_EXECUTABLE to HOST_PROTOC.
  • Rename GRPC_CPP_PLUGIN to HOST_GRPC_CPP_PLUGIN.
  • Go from four-space indentation to two-space indentation.

The renaming stems from the need to make it clear that we use the host protobuf compiler in the cross-compilation environment (which has both host (x86) and target (arm) Stratum dependencies).

- Move generate_proto_files() and generate_grpc_files()
  function definitions to ProtobufCompile.cmake.

Signed-off-by: Derek G Foster <[email protected]>
Signed-off-by: Derek G Foster <[email protected]>
Copy link
Collaborator

@nupuruttarwar nupuruttarwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@satish153 satish153 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ffoulkes ffoulkes merged commit 592ba81 into main Sep 29, 2023
4 checks passed
@ffoulkes ffoulkes deleted the proto-compile branch September 29, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants