OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//third_party/protobuf/proto_library.gni") | |
6 | |
7 if (current_toolchain == host_toolchain) { | |
8 executable("proto_zero_plugin") { | |
9 sources = [ | |
10 "proto_zero_generator.cc", | |
11 "proto_zero_generator.h", | |
12 "proto_zero_plugin.cc", | |
13 ] | |
14 deps = [ | |
15 "//third_party/protobuf:protoc_lib", | |
16 ] | |
17 } | |
18 } | |
19 | |
20 # For unit tests. | |
21 proto_library("mock_messages") { | |
Primiano Tucci (use gerrit)
2016/07/13 16:52:31
ditto about proto_zero_examples
| |
22 visibility = [ "//components/tracing/*" ] | |
23 | |
24 sources = [ | |
25 "mock_messages.proto", | |
26 ] | |
27 | |
28 plugin_label = ":proto_zero_plugin($host_toolchain)" | |
29 generator_plugin = rebase_path( | |
30 get_label_info(plugin_label, "root_out_dir") + "/proto_zero_plugin", | |
Primiano Tucci (use gerrit)
2016/07/13 16:52:32
uh, this is interestingly long. Did you take this
| |
31 root_build_dir) | |
32 | |
33 proto_out_dir = "components/tracing/proto_zero_plugin" | |
34 generator_plugin_suffix = ".zeropb" | |
35 generate_cc = false | |
36 generate_python = false | |
37 | |
38 deps = [ | |
39 plugin_label, | |
40 ] | |
41 } | |
OLD | NEW |