OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 # Protobuf compiler / generate rule for sync.proto. This is used by | |
12 # test code in net, which is why it's isolated into its own .gyp file. | |
13 'target_name': 'sync_proto', | |
14 'type': 'none', | |
15 'sources': [ | |
16 'sync.proto', | |
17 'autofill_specifics.proto', | |
18 'bookmark_specifics.proto', | |
19 'preference_specifics.proto', | |
20 'theme_specifics.proto', | |
21 'typed_url_specifics.proto', | |
22 ], | |
23 'rules': [ | |
24 { | |
25 'rule_name': 'genproto', | |
26 'extension': 'proto', | |
27 'inputs': [ | |
28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | |
29 ], | |
30 'outputs': [ | |
31 '<(PRODUCT_DIR)/pyproto/sync_pb/<(RULE_INPUT_ROOT)_pb2.py', | |
32 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/chrome/browser/sync/protocol/
<(RULE_INPUT_ROOT).pb.h', | |
33 '<(SHARED_INTERMEDIATE_DIR)/protoc_out/chrome/browser/sync/protocol/
<(RULE_INPUT_ROOT).pb.cc', | |
34 ], | |
35 'action': [ | |
36 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | |
37 '--proto_path=.', | |
38 './<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', | |
39 '--cpp_out=<(SHARED_INTERMEDIATE_DIR)/protoc_out/chrome/browser/sync
/protocol', | |
40 '--python_out=<(PRODUCT_DIR)/pyproto/sync_pb', | |
41 ], | |
42 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | |
43 }, | |
44 ], | |
45 'dependencies': [ | |
46 '../../../../third_party/protobuf2/protobuf.gyp:protoc#host', | |
47 ], | |
48 }, | |
49 { | |
50 'target_name': 'sync_proto_cpp', | |
51 'type': 'none', | |
52 'export_dependent_settings': [ | |
53 '../../../../third_party/protobuf2/protobuf.gyp:protobuf_lite', | |
54 'sync_proto', | |
55 ], | |
56 'dependencies': [ | |
57 '../../../../third_party/protobuf2/protobuf.gyp:protobuf_lite', | |
58 'sync_proto', | |
59 ], | |
60 'direct_dependent_settings': { | |
61 'include_dirs': [ | |
62 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | |
63 ], | |
64 }, | |
65 }, | |
66 ], | |
67 } | |
68 | |
69 # Local Variables: | |
70 # tab-width:2 | |
71 # indent-tabs-mode:nil | |
72 # End: | |
73 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |