diff options
author | chron@google.com <chron@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 01:36:54 +0000 |
---|---|---|
committer | chron@google.com <chron@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 01:36:54 +0000 |
commit | adcf48d837091816175e4f22224fd615781fa899 (patch) | |
tree | 65b74eca87fb5cabff022bc596968f7cdf0fcd45 /chrome/chrome.gyp | |
parent | fa08ac4a4f068b054a2048d53c5b2c4b4431eb5b (diff) | |
download | chromium_src-adcf48d837091816175e4f22224fd615781fa899.zip chromium_src-adcf48d837091816175e4f22224fd615781fa899.tar.gz chromium_src-adcf48d837091816175e4f22224fd615781fa899.tar.bz2 |
Merge protocol buffer changes from server back into client.
Use new style protocol in addition to old style protocol when talking to the server in preparation for new data type synchronization.
original patch from issue 487011
TEST=manually tested old client new client new server mixes
BUG=30032
Review URL: http://codereview.chromium.org/549029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rwxr-xr-x | chrome/chrome.gyp | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 3e280a9..286c16e 100755 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -608,23 +608,34 @@ # Protobuf compiler / generate rule for sync.proto 'target_name': 'sync_proto', 'type': 'none', - 'actions': [ + 'sources': [ + 'browser/sync/protocol/sync.proto', + 'browser/sync/protocol/bookmark_specifics.proto', + ], + 'rules': [ { - 'action_name': 'compiling sync.proto', + 'rule_name': 'genproto', + 'extension': 'proto', 'inputs': [ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', - 'browser/sync/protocol/sync.proto', ], + '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/sync/protocol', + }, 'outputs': [ - '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc', - '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h', + '<(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=browser/sync/protocol', - 'browser/sync/protocol/sync.proto', - '--cpp_out=<(protoc_out_dir)/chrome/browser/sync/protocol', + '--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': [ @@ -747,6 +758,8 @@ 'sources': [ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc', '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h', + '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.cc', + '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.h', 'browser/sync/engine/all_status.cc', 'browser/sync/engine/all_status.h', 'browser/sync/engine/apply_updates_command.cc', |