Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Side by Side Diff: components/tracing/proto_zero_plugin/BUILD.gn

Issue 2147613002: Skeleton for proto_zero_plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cross compilation Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698