Background context: bit.ly/TracingV2
The purpose of this is to prove that is possible to generate faster C++ stubs from proto files. At the end of this we should have some proto protos (pun, ha!) and we can use them to experiment end-to-end (serialize from Chrome, import from TraceViewer)
Skeleton of ProtoZero plugin has been landed.
Next steps:
Second CL:
- Put full implementation of plugin (with commented runtime calls)
- README.chromium
Third CL:
- Adjustments to Primiano's proto zero runtime
- Uncommenting runtime calls
- Tests for generated stubs
Fourth CL:
- Fix design pitfall in proto_library.gni by adding path evaluation from dependency label.
It's terrible to put such boilerplate in every proto_library target which use custom generator plugin in order to satisfy cross compilation and Windows.
plugin_host_label = generator_plugin_label + "($host_toolchain)"
generator_plugin =
rebase_path(get_label_info(plugin_host_label, "root_out_dir") + "/" +
get_label_info(plugin_host_label, "name"),
root_build_dir)
if (is_win) {
generator_plugin += ".exe"
}
deps = [
plugin_host_label,
]
Comment 1 by primiano@chromium.org
, May 3 2016