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

Unified Diff: chrome/chrome_browser.gypi

Issue 2068004: Commiting http://codereview.chromium.org/2017007/show on behalf of rkc@chromi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
« no previous file with comments | « chrome/browser/views/bug_report_view.cc ('k') | third_party/protobuf2/protobuf.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome_browser.gypi
===================================================================
--- chrome/chrome_browser.gypi (revision 47222)
+++ chrome/chrome_browser.gypi (working copy)
@@ -21,6 +21,7 @@
'browser/sync/protocol/sync_proto.gyp:sync_proto_cpp',
'syncapi',
'theme_resources',
+ 'userfeedback_proto',
'../app/app.gyp:app_resources',
'../app/app.gyp:app_strings',
'../media/media.gyp:media',
@@ -298,6 +299,14 @@
'browser/browsing_instance.h',
'browser/bug_report_util.cc',
'browser/bug_report_util.h',
+ # TODO(rkc): Find a better way to include these files
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/annotations.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/common.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/config.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/dom.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/extension.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/math.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/userfeedback/proto/web.pb.cc',
'browser/cancelable_request.cc',
'browser/cancelable_request.h',
'browser/cert_store.cc',
@@ -3172,6 +3181,7 @@
],
'dependencies': [
'../third_party/protobuf2/protobuf.gyp:protobuf_lite',
+ #'../third_party/protobuf2/protobuf.gyp:protobuf',
'../third_party/protobuf2/protobuf.gyp:protoc#host',
'../third_party/chromeos_login_manager/chromeos_login_manager/chromeos_login_manager.gyp:session',
'../third_party/chromeos_login_manager/chromeos_login_manager/chromeos_login_manager.gyp:emit_login_prompt_ready',
@@ -3420,6 +3430,61 @@
},
]
},
+ {
+ # Protobuf compiler / generate rule for feedback
+ 'target_name': 'userfeedback_proto',
+ 'type': 'none',
+ 'sources': [
+ 'browser/userfeedback/proto/annotations.proto',
+ 'browser/userfeedback/proto/common.proto',
+ 'browser/userfeedback/proto/config.proto',
+ 'browser/userfeedback/proto/dom.proto',
+ 'browser/userfeedback/proto/extension.proto',
+ 'browser/userfeedback/proto/math.proto',
+ 'browser/userfeedback/proto/web.proto',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'genproto',
+ 'extension': 'proto',
+ 'inputs': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
+ ],
+ 'variables': {
+ # The protoc compiler requires a proto_path argument with the
+ # directory containing the .proto file.
+ # There's no generator variable that corresponds to this, so fake it.
+ 'rule_input_relpath': 'browser/userfeedback/proto',
+ },
+ 'outputs': [
+ '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h',
+ '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc',
+ ],
+ 'action': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
+ '--proto_path=./<(rule_input_relpath)',
+ './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
+ '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)',
+ ],
+ 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
+ },
+ ],
+ 'dependencies': [
+ '../third_party/protobuf2/protobuf.gyp:protobuf',
+ '../third_party/protobuf2/protobuf.gyp:protoc#host',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(protoc_out_dir)',
+ ]
+ },
+ 'export_dependent_settings': [
+ '../third_party/protobuf2/protobuf.gyp:protobuf',
+ ],
+ 'dependencies': [
+ '../third_party/protobuf2/protobuf.gyp:protobuf',
mal 2010/05/14 22:28:31 Delete these two lines: they're redefining 'depend
+ ],
+ },
],
}
« no previous file with comments | « chrome/browser/views/bug_report_view.cc ('k') | third_party/protobuf2/protobuf.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698