OLD | NEW |
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 # TODO(akalin): Make it so that warnings are errors on Windows. | 5 # TODO(akalin): Make it so that warnings are errors on Windows. |
6 # TODO(akalin): Clean up warnings on Windows. | 6 # TODO(akalin): Clean up warnings on Windows. |
7 | 7 |
8 { | 8 { |
9 'variables': { | 9 'variables': { |
10 # The root directory for the proto files. | 10 # The root directory for the proto files. |
11 'proto_dir_root': 'files/src', | 11 'proto_dir_root': 'files/src', |
12 # The relative path of the cacheinvalidation proto files from | 12 # The relative path of the cacheinvalidation proto files from |
13 # proto_dir_root. | 13 # proto_dir_root. |
14 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so | 14 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so |
15 # we don't need this variable. | 15 # we don't need this variable. |
16 'proto_dir_relpath': 'google/cacheinvalidation', | 16 'proto_dir_relpath': 'google/cacheinvalidation', |
17 # Where files generated from proto files are put. | 17 # Where files generated from proto files are put. |
18 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 18 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
19 }, | 19 }, |
20 'targets': [ | 20 'targets': [ |
21 # The rule/action to generate files from the cacheinvalidation proto | 21 # The rule/action to generate files from the cacheinvalidation proto |
22 # files. | 22 # files. |
23 { | 23 { |
24 'target_name': 'cacheinvalidation_proto', | 24 'target_name': 'cacheinvalidation_proto', |
25 'type': 'none', | 25 'type': 'none', |
26 'sources': [ | 26 'sources': [ |
| 27 '<(proto_dir_root)/google/cacheinvalidation/internal.proto', |
27 '<(proto_dir_root)/google/cacheinvalidation/ticl_persistence.proto', | 28 '<(proto_dir_root)/google/cacheinvalidation/ticl_persistence.proto', |
28 '<(proto_dir_root)/google/cacheinvalidation/types.proto', | 29 '<(proto_dir_root)/google/cacheinvalidation/types.proto', |
29 ], | 30 ], |
30 # TODO(akalin): This block was copied from the sync_proto target | 31 # TODO(akalin): This block was copied from the sync_proto target |
31 # from chrome.gyp. Decomp the shared blocks out somehow. | 32 # from chrome.gyp. Decomp the shared blocks out somehow. |
32 'rules': [ | 33 'rules': [ |
33 { | 34 { |
34 'rule_name': 'genproto', | 35 'rule_name': 'genproto', |
35 'extension': 'proto', | 36 'extension': 'proto', |
36 'inputs': [ | 37 'inputs': [ |
(...skipping 20 matching lines...) Expand all Loading... |
57 # This target exports a hard dependency because it generates header | 58 # This target exports a hard dependency because it generates header |
58 # files. | 59 # files. |
59 'hard_dependency': 1, | 60 'hard_dependency': 1, |
60 }, | 61 }, |
61 # The main cache invalidation library. External clients should depend | 62 # The main cache invalidation library. External clients should depend |
62 # only on this. | 63 # only on this. |
63 { | 64 { |
64 'target_name': 'cacheinvalidation', | 65 'target_name': 'cacheinvalidation', |
65 'type': '<(library)', | 66 'type': '<(library)', |
66 'sources': [ | 67 'sources': [ |
| 68 '<(protoc_out_dir)/<(proto_dir_relpath)/internal.pb.h', |
| 69 '<(protoc_out_dir)/<(proto_dir_relpath)/internal.pb.cc', |
67 '<(protoc_out_dir)/<(proto_dir_relpath)/ticl_persistence.pb.h', | 70 '<(protoc_out_dir)/<(proto_dir_relpath)/ticl_persistence.pb.h', |
68 '<(protoc_out_dir)/<(proto_dir_relpath)/ticl_persistence.pb.cc', | 71 '<(protoc_out_dir)/<(proto_dir_relpath)/ticl_persistence.pb.cc', |
69 '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.h', | 72 '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.h', |
70 '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.cc', | 73 '<(protoc_out_dir)/<(proto_dir_relpath)/types.pb.cc', |
71 'overrides/google/cacheinvalidation/callback.h', | 74 'overrides/google/cacheinvalidation/callback.h', |
72 'overrides/google/cacheinvalidation/compiler-specific.h', | 75 'overrides/google/cacheinvalidation/compiler-specific.h', |
73 'overrides/google/cacheinvalidation/gmock.h', | 76 'overrides/google/cacheinvalidation/gmock.h', |
74 'overrides/google/cacheinvalidation/googletest.h', | 77 'overrides/google/cacheinvalidation/googletest.h', |
75 'overrides/google/cacheinvalidation/hash_map.h', | 78 'overrides/google/cacheinvalidation/hash_map.h', |
76 'overrides/google/cacheinvalidation/logging.h', | 79 'overrides/google/cacheinvalidation/logging.h', |
77 'overrides/google/cacheinvalidation/md5.h', | 80 'overrides/google/cacheinvalidation/md5.h', |
78 'overrides/google/cacheinvalidation/mutex.h', | 81 'overrides/google/cacheinvalidation/mutex.h', |
79 'overrides/google/cacheinvalidation/random.h', | 82 'overrides/google/cacheinvalidation/random.h', |
80 'overrides/google/cacheinvalidation/scoped_ptr.h', | 83 'overrides/google/cacheinvalidation/scoped_ptr.h', |
81 'overrides/google/cacheinvalidation/stl-namespace.h' | 84 'overrides/google/cacheinvalidation/stl-namespace.h' |
82 'overrides/google/cacheinvalidation/string_util.h' | 85 'overrides/google/cacheinvalidation/string_util.h' |
83 'overrides/google/cacheinvalidation/time.h', | 86 'overrides/google/cacheinvalidation/time.h', |
84 'files/src/google/cacheinvalidation/invalidation-client-impl.cc', | 87 'files/src/google/cacheinvalidation/invalidation-client-impl.cc', |
85 'files/src/google/cacheinvalidation/invalidation-client-impl.h', | 88 'files/src/google/cacheinvalidation/invalidation-client-impl.h', |
86 'files/src/google/cacheinvalidation/invalidation-client.cc', | 89 'files/src/google/cacheinvalidation/invalidation-client.cc', |
87 'files/src/google/cacheinvalidation/invalidation-client.h', | 90 'files/src/google/cacheinvalidation/invalidation-client.h', |
| 91 'files/src/google/cacheinvalidation/invalidation-types.h', |
88 'files/src/google/cacheinvalidation/log-macro.h', | 92 'files/src/google/cacheinvalidation/log-macro.h', |
89 'files/src/google/cacheinvalidation/network-manager.cc', | 93 'files/src/google/cacheinvalidation/network-manager.cc', |
90 'files/src/google/cacheinvalidation/network-manager.h', | 94 'files/src/google/cacheinvalidation/network-manager.h', |
91 'files/src/google/cacheinvalidation/persistence-manager.cc', | 95 'files/src/google/cacheinvalidation/persistence-manager.cc', |
92 'files/src/google/cacheinvalidation/persistence-manager.h', | 96 'files/src/google/cacheinvalidation/persistence-manager.h', |
93 'files/src/google/cacheinvalidation/persistence-utils.cc', | 97 'files/src/google/cacheinvalidation/persistence-utils.cc', |
94 'files/src/google/cacheinvalidation/persistence-utils.h', | 98 'files/src/google/cacheinvalidation/persistence-utils.h', |
| 99 'files/src/google/cacheinvalidation/proto-converter.cc', |
| 100 'files/src/google/cacheinvalidation/proto-converter.h', |
95 'files/src/google/cacheinvalidation/registration-update-manager.cc', | 101 'files/src/google/cacheinvalidation/registration-update-manager.cc', |
96 'files/src/google/cacheinvalidation/registration-update-manager.h', | 102 'files/src/google/cacheinvalidation/registration-update-manager.h', |
97 'files/src/google/cacheinvalidation/session-manager.cc', | 103 'files/src/google/cacheinvalidation/session-manager.cc', |
98 'files/src/google/cacheinvalidation/session-manager.h', | 104 'files/src/google/cacheinvalidation/session-manager.h', |
99 'files/src/google/cacheinvalidation/throttle.cc', | 105 'files/src/google/cacheinvalidation/throttle.cc', |
100 'files/src/google/cacheinvalidation/throttle.h', | 106 'files/src/google/cacheinvalidation/throttle.h', |
101 'files/src/google/cacheinvalidation/version-manager.cc', | 107 'files/src/google/cacheinvalidation/version-manager.cc', |
102 'files/src/google/cacheinvalidation/version-manager.h', | 108 'files/src/google/cacheinvalidation/version-manager.h', |
103 ], | 109 ], |
104 'include_dirs': [ | 110 'include_dirs': [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ], | 152 ], |
147 }, | 153 }, |
148 ], | 154 ], |
149 } | 155 } |
150 | 156 |
151 # Local Variables: | 157 # Local Variables: |
152 # tab-width:2 | 158 # tab-width:2 |
153 # indent-tabs-mode:nil | 159 # indent-tabs-mode:nil |
154 # End: | 160 # End: |
155 # vim: set expandtab tabstop=2 shiftwidth=2: | 161 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |