diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 18:36:18 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 18:36:18 +0000 |
commit | ce45c3e6da5a0412cb84c37d662f177a42a442cb (patch) | |
tree | c0a2ae93b464d142189a483c73a345f0fd25846c /chrome/chrome.gyp | |
parent | a10d4b1bd7764e9c052527616e2e1c96674badaf (diff) | |
download | chromium_src-ce45c3e6da5a0412cb84c37d662f177a42a442cb.zip chromium_src-ce45c3e6da5a0412cb84c37d662f177a42a442cb.tar.gz chromium_src-ce45c3e6da5a0412cb84c37d662f177a42a442cb.tar.bz2 |
Protocol extension for syncing passwords.
BUG=34176
TEST=none
Review URL: http://codereview.chromium.org/1794009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index a622be2..136f13f 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -693,6 +693,59 @@ 'common_constants', 'notifier', 'sync', + 'sync_proto', + ], + }, + { + # Protobuf compiler / generate rule for sync.proto + 'target_name': 'sync_proto', + 'type': 'none', + 'sources': [ + 'browser/sync/protocol/sync.proto', + 'browser/sync/protocol/autofill_specifics.proto', + 'browser/sync/protocol/bookmark_specifics.proto', + 'browser/sync/protocol/password_specifics.proto', + 'browser/sync/protocol/preference_specifics.proto', + 'browser/sync/protocol/theme_specifics.proto', + 'browser/sync/protocol/typed_url_specifics.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/sync/protocol', + }, + '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_lite', + '../third_party/protobuf2/protobuf.gyp:protoc#host', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(protoc_out_dir)', + ] + }, + 'export_dependent_settings': [ + '../third_party/protobuf2/protobuf.gyp:protobuf_lite', ], }, { @@ -810,6 +863,8 @@ '<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.h', '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.cc', '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.h', + '<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.cc', + '<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.h', '<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb.cc', '<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb.h', '<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.cc', |