-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a StaticLibrary() helper to Protoc.
This also fixes a bug where protoc couldn't be invoked multiple times on the same inputs, because dependency files weren't shared outputs. It's a little gross to use shared outputs here, but the alternative is putting every .d file in its own subdir, which is even grosser. Usage: cxx = builder.DetectCxx() protoc = builder.DetectProtoc() out = protoc.StaticLibrary('protos', builder, cxx, ['blah.proto']) other_binary = builder.Library('mylibrary') other_binary.compiler.sourcedeps += out.headers other_binary.compiler.linkflags += [out.lib.binary] ...
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 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