Skip to content

Add grpc_rs for exporting internal APIs#50

Open
overvenus wants to merge 2 commits intotikv:rs-releasefrom
overvenus:public-stats
Open

Add grpc_rs for exporting internal APIs#50
overvenus wants to merge 2 commits intotikv:rs-releasefrom
overvenus:public-stats

Conversation

@overvenus
Copy link
Copy Markdown
Member

As title.

Signed-off-by: Neil Shen <overvenus@gmail.com>
By following command

  tools/buildgen/generate_projects.sh \
    --templates templates/CMakeLists.txt.template

Signed-off-by: Neil Shen <overvenus@gmail.com>
"include/grpcpp/impl/codegen/sync.h",
]

grpc_cc_library(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why need a new library?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So that code can be placed outside of src/core and let grpc and grpc_unsecure depends on it using its build system.
Anyway, what's your suggestion?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not put the source in the source list just like CMakeLists.txt does?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

CMakeLists.txt is generated from BUILD, upstream may overwrite CMakeLists.txt if they add or remove a file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@BusyJay PTAL, thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm a bit confused. Now is CMakeLists.txt auto-generated? Note we always need to modify CMakeLists.txt as the generated one from upstream doesn't always compile.

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.

2 participants