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

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

Issue 1622012: Python sync server impl, for test (Closed)
Patch Set: Fixed gyp bug ( :) ) Created 10 years, 7 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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:
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698