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

Side by Side Diff: third_party/cacheinvalidation/cacheinvalidation.gyp

Issue 1747018: Added cacheinvalidation.gyp to build/all.gyp. (Closed)
Patch Set: Fixed compile errors 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 | « build/all.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # TODO(akalin): Make it so that warnings are errors on Windows.
6 # TODO(akalin): Clean up warnings on Windows.
7
5 { 8 {
6 'variables': { 9 'variables': {
7 # The root directory for the proto files. 10 # The root directory for the proto files.
8 'proto_dir_root': 'files/src', 11 'proto_dir_root': 'files/src',
9 # The relative path of the cacheinvalidation proto files from 12 # The relative path of the cacheinvalidation proto files from
10 # proto_dir_root. 13 # proto_dir_root.
11 # 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
12 # we don't need this variable. 15 # we don't need this variable.
13 'proto_dir_relpath': 'google/cacheinvalidation', 16 'proto_dir_relpath': 'google/cacheinvalidation',
14 # Where files generated from proto files are put. 17 # Where files generated from proto files are put.
(...skipping 17 matching lines...) Expand all
32 'inputs': [ 35 'inputs': [
33 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 36 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
34 ], 37 ],
35 'outputs': [ 38 'outputs': [
36 '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.h', 39 '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.h',
37 '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.cc', 40 '<(protoc_out_dir)/<(proto_dir_relpath)/<(RULE_INPUT_ROOT).pb.cc',
38 ], 41 ],
39 'action': [ 42 'action': [
40 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', 43 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
41 '--proto_path=<(proto_dir_root)', 44 '--proto_path=<(proto_dir_root)',
42 '<(RULE_INPUT_PATH)', 45 # This path needs to be prefixed by proto_path, so we can't
46 # use RULE_INPUT_PATH (which is an absolute path).
47 '<(proto_dir_root)/<(proto_dir_relpath)/<(RULE_INPUT_NAME)',
43 '--cpp_out=<(protoc_out_dir)', 48 '--cpp_out=<(protoc_out_dir)',
44 ], 49 ],
45 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', 50 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
46 }, 51 },
47 ], 52 ],
48 'dependencies': [ 53 'dependencies': [
49 '../../third_party/protobuf2/protobuf.gyp:protoc#host', 54 '../../third_party/protobuf2/protobuf.gyp:protoc#host',
50 ], 55 ],
51 }, 56 },
52 # The library created from the generated c++ cacheinvalidation proto 57 # The library created from the generated c++ cacheinvalidation proto
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 'files/src/google/cacheinvalidation/session-manager.h', 105 'files/src/google/cacheinvalidation/session-manager.h',
101 'files/src/google/cacheinvalidation/throttle.cc', 106 'files/src/google/cacheinvalidation/throttle.cc',
102 'files/src/google/cacheinvalidation/throttle.h', 107 'files/src/google/cacheinvalidation/throttle.h',
103 ], 108 ],
104 'include_dirs': [ 109 'include_dirs': [
105 './overrides', 110 './overrides',
106 './files/src', 111 './files/src',
107 ], 112 ],
108 'dependencies': [ 113 'dependencies': [
109 '../../base/base.gyp:base', 114 '../../base/base.gyp:base',
115 'cacheinvalidation_proto',
110 'cacheinvalidation_proto_cc', 116 'cacheinvalidation_proto_cc',
111 ], 117 ],
112 'direct_dependent_settings': { 118 'direct_dependent_settings': {
113 'include_dirs': [ 119 'include_dirs': [
114 './overrides', 120 './overrides',
115 './files/src', 121 './files/src',
116 ], 122 ],
117 }, 123 },
118 'export_dependent_settings': [ 124 'export_dependent_settings': [
125 'cacheinvalidation_proto',
119 'cacheinvalidation_proto_cc', 126 'cacheinvalidation_proto_cc',
120 ], 127 ],
121 }, 128 },
122 # Unittests for the cache invalidation library. 129 # Unittests for the cache invalidation library.
123 # TODO(akalin): Add these to build/all.gyp.
124 { 130 {
125 'target_name': 'cacheinvalidation_unittests', 131 'target_name': 'cacheinvalidation_unittests',
126 'type': 'executable', 132 'type': 'executable',
127 'sources': [ 133 'sources': [
128 'files/src/google/cacheinvalidation/system-resources-for-test.h', 134 'files/src/google/cacheinvalidation/system-resources-for-test.h',
129 'files/src/google/cacheinvalidation/invalidation-client-impl_test.cc', 135 'files/src/google/cacheinvalidation/invalidation-client-impl_test.cc',
130 'files/src/google/cacheinvalidation/throttle_test.cc', 136 'files/src/google/cacheinvalidation/throttle_test.cc',
131 ], 137 ],
132 'dependencies': [ 138 'dependencies': [
133 '../../base/base.gyp:base', 139 '../../base/base.gyp:base',
134 '../../testing/gtest.gyp:gtest', 140 '../../testing/gtest.gyp:gtest',
135 '../../testing/gtest.gyp:gtestmain', 141 '../../testing/gtest.gyp:gtestmain',
136 'cacheinvalidation', 142 'cacheinvalidation',
137 ], 143 ],
138 }, 144 },
139 ], 145 ],
140 } 146 }
141 147
142 # Local Variables: 148 # Local Variables:
143 # tab-width:2 149 # tab-width:2
144 # indent-tabs-mode:nil 150 # indent-tabs-mode:nil
145 # End: 151 # End:
146 # vim: set expandtab tabstop=2 shiftwidth=2: 152 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698