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

Expose grpc++_binder through grpc++ #27891

Merged

Conversation

sifmelcara
Copy link
Member

As discussed in the meeting, this is probably a better way to expose the code.

This should not affect binary size as long as user does not include binder headers and they are static linking.

A config option is provided so user can pass --define=grpc_no_binder=true to bazel to disable the dependency.

A copybara import was created to dry run this change, and it looks fine

@sifmelcara sifmelcara added the release notes: no Indicates if PR should not be in release notes label Nov 1, 2021
@sifmelcara
Copy link
Member Author

@LittleCVR

A config is added so we can disable it if needed
@sifmelcara sifmelcara force-pushed the add-binder-to-grpcpp-bazel-2021-11-01 branch from 3e133e1 to f3e72c1 Compare November 3, 2021 06:05
@sifmelcara
Copy link
Member Author

Rebase and resolved merge conflict. Now this exposes through grpc++, just like grpc++_xds_client and grpc++_xds_server

Will double check copybara import and size impact. Will merge if they look fine

@sifmelcara
Copy link
Member Author

Retrigger CI. xds test failed for some reason

Not everyone who build shared library is using bazel so we need to
provide this option to disable binder transport code.
@sifmelcara sifmelcara force-pushed the add-binder-to-grpcpp-bazel-2021-11-01 branch from 6d66959 to 7c8bb7b Compare November 3, 2021 10:50
@sifmelcara
Copy link
Member Author

Add a new commit that allows users to disable binder transport by defining GRPC_NO_BINDER. This is mainly for grpc shared library build in chromium (they don't use bazel and have no access to bazel config option)

@sifmelcara
Copy link
Member Author

Can confirm that the shared library does not have any size increase after GRPC_NO_BINDER is set

@sifmelcara sifmelcara merged commit d92baa9 into grpc:master Nov 3, 2021
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Specifies if the PR has been imported to the internal repository release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants