| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 | 6 |
| 7 tracing_proto_sources = [ |
| 8 "event.proto", |
| 9 "events_chunk.proto", |
| 10 ] |
| 11 |
| 7 # Stubs generated using custom plugin. | 12 # Stubs generated using custom plugin. |
| 8 proto_library("protos") { | 13 proto_library("protos") { |
| 9 visibility = [ "//components/tracing/*" ] | 14 visibility = [ "//components/tracing/*" ] |
| 10 | 15 |
| 11 proto_in_dir = "." | 16 proto_in_dir = "." |
| 12 sources = [ | 17 sources = tracing_proto_sources |
| 13 "event.proto", | |
| 14 "events_chunk.proto", | |
| 15 ] | |
| 16 | 18 |
| 17 generator_plugin_label = | 19 generator_plugin_label = |
| 18 "//components/tracing/tools/proto_zero_plugin:proto_zero_plugin" | 20 "//components/tracing/tools/proto_zero_plugin:proto_zero_plugin" |
| 19 generator_plugin_suffix = ".pbzero" | 21 generator_plugin_suffix = ".pbzero" |
| 20 generator_plugin_options = "wrapper_namespace=pbzero" | 22 generator_plugin_options = "wrapper_namespace=pbzero" |
| 21 generate_cc = false | 23 generate_cc = false |
| 22 generate_python = false | 24 generate_python = false |
| 23 } | 25 } |
| 24 | 26 |
| 25 # Official protobuf C++ stubs to test conformance. | 27 # Official protobuf C++ stubs to test conformance. |
| 26 proto_library("golden_protos_for_tests") { | 28 proto_library("golden_protos_for_tests") { |
| 27 visibility = [ "//components/tracing/*" ] | 29 visibility = [ "//components/tracing/*" ] |
| 28 testonly = true | 30 testonly = true |
| 29 | 31 |
| 30 proto_in_dir = "." | 32 proto_in_dir = "." |
| 31 proto_out_dir = "components/tracing/test/golden_protos" | 33 proto_out_dir = "components/tracing/test/golden_protos" |
| 32 sources = [ | 34 sources = tracing_proto_sources |
| 33 "events_chunk.proto", | |
| 34 ] | |
| 35 | 35 |
| 36 generate_python = false | 36 generate_python = false |
| 37 } | 37 } |
| OLD | NEW |