Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This library should build cleanly with the extra warnings turned on | 7 # This library should build cleanly with the extra warnings turned on |
| 8 # for Chromium. | 8 # for Chromium. |
| 9 'chromium_code': 1, | 9 'chromium_code': 1, |
| 10 # The relative path of the cacheinvalidation proto files from 'src'. | |
| 11 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so | |
| 12 # we don't need this variable. | |
| 13 'proto_dir_relpath': 'google/cacheinvalidation', | |
| 14 # Where files generated from proto files are put. | |
| 15 'proto_in_dir': 'src/<(proto_dir_relpath)', | |
| 16 'proto_out_dir': '<(proto_dir_relpath)', | |
| 17 }, | 10 }, |
| 18 'targets': [ | 11 'targets': [ |
| 19 # The C++ files generated from the cache invalidation protocol buffers. | 12 # The C++ files generated from the cache invalidation protocol buffers. |
| 20 { | 13 { |
| 21 'target_name': 'cacheinvalidation_proto_cpp', | 14 'target_name': 'cacheinvalidation_proto_cpp', |
| 22 'type': 'static_library', | 15 'type': 'static_library', |
| 16 'variables': { | |
| 17 # The relative path of the cacheinvalidation proto files from this | |
| 18 # gyp-file. | |
| 19 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so | |
| 20 # we don't need this variable. | |
| 21 'proto_dir_relpath': 'google/cacheinvalidation', | |
| 22 # Where files generated from proto files are put. | |
| 23 'proto_in_dir': 'src/<(proto_dir_relpath)', | |
| 24 'proto_out_dir': '<(proto_dir_relpath)', | |
| 25 }, | |
| 23 'sources': [ | 26 'sources': [ |
| 24 '<(proto_in_dir)/client.proto', | 27 '<(proto_in_dir)/client.proto', |
| 25 '<(proto_in_dir)/client_gateway.proto', | 28 '<(proto_in_dir)/client_gateway.proto', |
| 26 '<(proto_in_dir)/client_protocol.proto', | 29 '<(proto_in_dir)/client_protocol.proto', |
| 27 '<(proto_in_dir)/client_test_internal.proto', | 30 '<(proto_in_dir)/client_test_internal.proto', |
| 28 '<(proto_in_dir)/types.proto', | 31 '<(proto_in_dir)/types.proto', |
| 29 ], | 32 ], |
| 30 'includes': [ '../../build/protoc.gypi' ], | 33 'includes': [ '../../build/protoc.gypi' ], |
| 31 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
| 32 'include_dirs': [ | 35 'include_dirs': [ |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 ], | 142 ], |
| 140 'dependencies': [ | 143 'dependencies': [ |
| 141 '../../base/base.gyp:base', | 144 '../../base/base.gyp:base', |
| 142 '../../base/base.gyp:run_all_unittests', | 145 '../../base/base.gyp:run_all_unittests', |
| 143 '../../testing/gmock.gyp:gmock', | 146 '../../testing/gmock.gyp:gmock', |
| 144 '../../testing/gtest.gyp:gtest', | 147 '../../testing/gtest.gyp:gtest', |
| 145 'cacheinvalidation', | 148 'cacheinvalidation', |
| 146 'cacheinvalidation_proto_cpp', | 149 'cacheinvalidation_proto_cpp', |
| 147 ], | 150 ], |
| 148 }, | 151 }, |
| 152 # The Java files generated from the cache invalidation protocol buffers. | |
|
akalin
2012/10/26 00:11:47
move this to right below the _cpp version
nyquist
2012/10/30 00:30:32
Done.
| |
| 153 { | |
| 154 'target_name': 'cacheinvalidation_proto_src_java', | |
|
akalin
2012/10/26 00:11:47
remove _src to match _cpp version?
nyquist
2012/10/26 00:32:31
This only generates the source files. Downstream w
| |
| 155 'type': 'none', | |
| 156 'variables': { | |
| 157 # The relative path of the Java cacheinvalidation proto files from | |
| 158 # this gyp-file. | |
| 159 'proto_in_dir': 'src', | |
| 160 # The paths to all the classes in the out directory. | |
| 161 'output_java_files': [ | |
| 162 '>(java_out_dir)/com/google/protos/ipc/invalidation/AndroidChannel.jav a', | |
| 163 '>(java_out_dir)/com/google/protos/ipc/invalidation/AndroidState.java' , | |
| 164 '>(java_out_dir)/com/google/protos/ipc/invalidation/ChannelCommon.java ', | |
| 165 '>(java_out_dir)/com/google/protos/ipc/invalidation/Channel.java', | |
| 166 '>(java_out_dir)/com/google/protos/ipc/invalidation/Client.java', | |
| 167 '>(java_out_dir)/com/google/protos/ipc/invalidation/ClientProtocol.jav a', | |
| 168 '>(java_out_dir)/com/google/protos/ipc/invalidation/Types.java', | |
| 169 ], | |
| 170 }, | |
| 171 'sources': [ | |
| 172 '<(proto_in_dir)/proto/android_channel.proto', | |
| 173 '<(proto_in_dir)/proto/android_state.proto', | |
| 174 '<(proto_in_dir)/proto/channel_common.proto', | |
| 175 '<(proto_in_dir)/proto/channel.proto', | |
| 176 '<(proto_in_dir)/proto/client.proto', | |
| 177 '<(proto_in_dir)/proto/client_protocol.proto', | |
| 178 '<(proto_in_dir)/proto/types.proto', | |
|
Ryan Sleevi
2012/10/29 08:36:36
don't repeat <(proto_in_dir)/proto
1) Your GYP fi
nyquist
2012/10/30 00:30:32
1)
The proto directory needed to be set, and the c
| |
| 179 ], | |
| 180 'includes': [ '../../build/protoc_java.gypi' ], | |
| 181 }, | |
| 149 ], | 182 ], |
| 150 'conditions': [ | 183 'conditions': [ |
| 151 ['test_isolation_mode != "noop"', { | 184 ['test_isolation_mode != "noop"', { |
| 152 'targets': [ | 185 'targets': [ |
| 153 { | 186 { |
| 154 'target_name': 'cacheinvalidation_unittests_run', | 187 'target_name': 'cacheinvalidation_unittests_run', |
| 155 'type': 'none', | 188 'type': 'none', |
| 156 'dependencies': [ | 189 'dependencies': [ |
| 157 'cacheinvalidation_unittests', | 190 'cacheinvalidation_unittests', |
| 158 ], | 191 ], |
| 159 'includes': [ | 192 'includes': [ |
| 160 '../../build/isolate.gypi', | 193 '../../build/isolate.gypi', |
| 161 'cacheinvalidation_unittests.isolate', | 194 'cacheinvalidation_unittests.isolate', |
| 162 ], | 195 ], |
| 163 'sources': [ | 196 'sources': [ |
| 164 'cacheinvalidation_unittests.isolate', | 197 'cacheinvalidation_unittests.isolate', |
| 165 ], | 198 ], |
| 166 }, | 199 }, |
| 167 ], | 200 ], |
| 168 }], | 201 }], |
| 169 ], | 202 ], |
| 170 } | 203 } |
| OLD | NEW |