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

Add a Protoc C++ custom tool. #153

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Add a Protoc C++ custom tool. #153

merged 1 commit into from
Nov 9, 2023

Conversation

dvander
Copy link
Member

@dvander dvander commented Nov 9, 2023

Example:

prog = cxx.Program('prog')
protos = builder.tools.Protoc(sources = ['myproto.proto'])
prog.custom += [protos]

Example:

    prog = cxx.Program('prog')
    protos = builder.tools.Protoc(sources = ['myproto.proto'])
    prog.custom += [protos]

To make this work, protoc is now always executed in the top level of the
build directory. This is kind of gross as we have to make sure all paths
are relative to the root, rather than cwd. The alternative is running
protoc once for each language, which would be fine, but the current
thing is working.
@dvander dvander merged commit 2d4620d into master Nov 9, 2023
5 checks passed
@dvander dvander deleted the protoc branch November 9, 2023 06:56
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.

None yet

1 participant