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

Unified Diff: components/tracing.gyp

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 side-by-side diff with in-line comments
Download patch
Index: components/tracing.gyp
diff --git a/components/tracing.gyp b/components/tracing.gyp
index 1e6a2303295e6dfeb94a2c3e3d929ea0668647d3..e4b0dbcd2b56101b40c64871a00dbd22f1742cc7 100644
--- a/components/tracing.gyp
+++ b/components/tracing.gyp
@@ -57,5 +57,41 @@
}],
]
},
+ {
+ 'target_name': 'proto_zero_plugin',
+ 'type': 'executable',
+ 'toolsets': ['host'],
+ 'sources': [
+ 'tracing/proto_zero_plugin/proto_zero_generator.cc',
+ 'tracing/proto_zero_plugin/proto_zero_generator.h',
+ 'tracing/proto_zero_plugin/proto_zero_plugin.cc',
+ ],
+ 'include_dirs': [
+ '..',
+ '../third_party/protobuf/src',
+ ],
+ 'dependencies': [
+ '../third_party/protobuf/protobuf.gyp:protoc_lib',
+ ],
+ },
+ {
+ 'target_name': 'mock_messages',
Primiano Tucci (use gerrit) 2016/07/13 16:52:31 call this target "proto_zero_test_message" this ta
+ 'type': 'static_library',
+ 'variables': {
+ 'proto_in_dir': 'tracing/proto_zero_plugin',
+ 'proto_out_dir': 'components/tracing/proto_zero_plugin',
+ 'generator_plugin': 'proto_zero_plugin',
+ 'generator_plugin_suffix': '.zeropb',
Primiano Tucci (use gerrit) 2016/07/13 16:52:31 i'd make this .pbzero for consistency with ProtoZe
+ 'generate_cc': 0,
+ 'generate_python': 0,
+ },
+ 'sources': [
+ 'tracing/proto_zero_plugin/mock_messages.proto',
+ ],
+ 'dependencies': [
+ 'proto_zero_plugin',
+ ],
+ 'includes': ['../build/protoc.gypi'],
+ },
],
}

Powered by Google App Engine
This is Rietveld 408576698