summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 18:19:52 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 18:19:52 +0000
commitf30e11dce0e8a28c3791cc093d3edd6888d406c5 (patch)
treeccb01e4e5b9d53c93c8633543c563915004e3b4f /chrome/browser
parent7ee76d72d43f923d49ea43ec9c9fc30ebc0511d1 (diff)
downloadchromium_src-f30e11dce0e8a28c3791cc093d3edd6888d406c5.zip
chromium_src-f30e11dce0e8a28c3791cc093d3edd6888d406c5.tar.gz
chromium_src-f30e11dce0e8a28c3791cc093d3edd6888d406c5.tar.bz2
Update sync protos to use the new shared protoc gyp rules
Just a refactoring. Review URL: http://codereview.chromium.org/7677034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/sync/protocol/sync_proto.gyp80
1 files changed, 4 insertions, 76 deletions
diff --git a/chrome/browser/sync/protocol/sync_proto.gyp b/chrome/browser/sync/protocol/sync_proto.gyp
index dc550fe..ad60328 100644
--- a/chrome/browser/sync/protocol/sync_proto.gyp
+++ b/chrome/browser/sync/protocol/sync_proto.gyp
@@ -5,14 +5,11 @@
{
'variables': {
'chromium_code': 1,
- 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
},
'targets': [
{
- # Protobuf compiler / generate rule for sync.proto. This is used by
- # test code in net, which is why it's isolated into its own .gyp file.
'target_name': 'sync_proto',
- 'type': 'none',
+ 'type': 'static_library',
'sources': [
'sync.proto',
'encryption.proto',
@@ -29,79 +26,10 @@
'theme_specifics.proto',
'typed_url_specifics.proto',
],
- 'rules': [
- {
- 'rule_name': 'genproto',
- 'extension': 'proto',
- 'inputs': [
- '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/pyproto/sync_pb/<(RULE_INPUT_ROOT)_pb2.py',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).pb.cc',
- ],
- 'action': [
- '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
- '--proto_path=.',
- './<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
- '--cpp_out=<(protoc_out_dir)/chrome/browser/sync/protocol',
- '--python_out=<(PRODUCT_DIR)/pyproto/sync_pb',
- ],
- 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
- },
- ],
- 'dependencies': [
- '../../../../third_party/protobuf/protobuf.gyp:protoc#host',
- ],
- },
- {
- 'target_name': 'sync_proto_cpp',
- 'type': 'static_library',
- '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/encryption.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/encryption.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.cc',
- '<(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/extension_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_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/search_engine_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/search_engine_specifics.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.h',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.cc',
- '<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.h',
- ],
- 'export_dependent_settings': [
- '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
- 'sync_proto',
- ],
- 'dependencies': [
- '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
- 'sync_proto',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '<(protoc_out_dir)',
- ],
+ 'variables': {
+ 'proto_out_dir': 'chrome/browser/sync/protocol',
},
- # This target exports a hard dependency because it includes generated
- # header files.
- 'hard_dependency': 1,
+ 'includes': ['../../../../build/protoc.gypi'],
},
],
}