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

Side by Side Diff: chrome/browser/sync/protocol/sync_proto.gyp

Issue 7677034: Update sync protos to use the new shared protoc gyp rules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
9 }, 8 },
10 'targets': [ 9 'targets': [
11 { 10 {
12 # Protobuf compiler / generate rule for sync.proto. This is used by
13 # test code in net, which is why it's isolated into its own .gyp file.
14 'target_name': 'sync_proto', 11 'target_name': 'sync_proto',
15 'type': 'none', 12 'type': 'static_library',
16 'sources': [ 13 'sources': [
17 'sync.proto', 14 'sync.proto',
18 'encryption.proto', 15 'encryption.proto',
19 'app_specifics.proto', 16 'app_specifics.proto',
20 'autofill_specifics.proto', 17 'autofill_specifics.proto',
21 'bookmark_specifics.proto', 18 'bookmark_specifics.proto',
22 'extension_specifics.proto', 19 'extension_specifics.proto',
23 'nigori_specifics.proto', 20 'nigori_specifics.proto',
24 'password_specifics.proto', 21 'password_specifics.proto',
25 'preference_specifics.proto', 22 'preference_specifics.proto',
26 'search_engine_specifics.proto', 23 'search_engine_specifics.proto',
27 'session_specifics.proto', 24 'session_specifics.proto',
28 'test.proto', 25 'test.proto',
29 'theme_specifics.proto', 26 'theme_specifics.proto',
30 'typed_url_specifics.proto', 27 'typed_url_specifics.proto',
31 ], 28 ],
32 'rules': [ 29 'variables': {
33 { 30 'proto_out_dir': 'chrome/browser/sync/protocol',
34 'rule_name': 'genproto',
35 'extension': 'proto',
36 'inputs': [
37 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
38 ],
39 'outputs': [
40 '<(PRODUCT_DIR)/pyproto/sync_pb/<(RULE_INPUT_ROOT)_pb2.py',
41 '<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).p b.h',
42 '<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).p b.cc',
43 ],
44 'action': [
45 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
46 '--proto_path=.',
47 './<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
48 '--cpp_out=<(protoc_out_dir)/chrome/browser/sync/protocol',
49 '--python_out=<(PRODUCT_DIR)/pyproto/sync_pb',
50 ],
51 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
52 },
53 ],
54 'dependencies': [
55 '../../../../third_party/protobuf/protobuf.gyp:protoc#host',
56 ],
57 },
58 {
59 'target_name': 'sync_proto_cpp',
60 'type': 'static_library',
61 'sources': [
62 '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc',
63 '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h',
64 '<(protoc_out_dir)/chrome/browser/sync/protocol/encryption.pb.cc',
65 '<(protoc_out_dir)/chrome/browser/sync/protocol/encryption.pb.h',
66 '<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.cc',
67 '<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.h',
68 '<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.cc ',
69 '<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.h' ,
70 '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.cc ',
71 '<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.h' ,
72 '<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.c c',
73 '<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.h ',
74 '<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_specifics.pb.cc',
75 '<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_specifics.pb.h',
76 '<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.cc ',
77 '<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.h' ,
78 '<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb. cc',
79 '<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb. h',
80 '<(protoc_out_dir)/chrome/browser/sync/protocol/search_engine_specifics. pb.cc',
81 '<(protoc_out_dir)/chrome/browser/sync/protocol/search_engine_specifics. pb.h',
82 '<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.cc' ,
83 '<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.h',
84 '<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.cc',
85 '<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.h',
86 '<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.c c',
87 '<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.h ',
88 ],
89 'export_dependent_settings': [
90 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
91 'sync_proto',
92 ],
93 'dependencies': [
94 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
95 'sync_proto',
96 ],
97 'direct_dependent_settings': {
98 'include_dirs': [
99 '<(protoc_out_dir)',
100 ],
101 }, 31 },
102 # This target exports a hard dependency because it includes generated 32 'includes': ['../../../../build/protoc.gypi'],
103 # header files.
104 'hard_dependency': 1,
akalin 2011/08/18 22:28:17 pretty sure we still need a hard dep here
Evan Martin 2011/08/18 22:36:18 The protoc include puts a hard_dependency in. (Ev
105 }, 33 },
106 ], 34 ],
107 } 35 }
OLDNEW
« no previous file with comments | « build/protoc.gypi ('k') | chrome/chrome.gyp » ('j') | chrome/chrome.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698