OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 config("protobuf_config") { | 5 config("protobuf_config") { |
6 include_dirs = [ "src" ] | 6 include_dirs = [ "src" ] |
7 defines = [ | 7 defines = [ |
8 "GOOGLE_PROTOBUF_NO_RTTI", | 8 "GOOGLE_PROTOBUF_NO_RTTI", |
9 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", | 9 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", |
10 ] | 10 ] |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 215 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
216 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls | 216 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls |
217 # into that category. Do not use in Chrome code. | 217 # into that category. Do not use in Chrome code. |
218 static_library("protobuf_full") { | 218 static_library("protobuf_full") { |
219 # Prevent people from depending on this outside our file. | 219 # Prevent people from depending on this outside our file. |
220 visibility = [ | 220 visibility = [ |
221 ":*", | 221 ":*", |
222 | 222 |
223 # requires descriptors & reflection; testonly. | 223 # requires descriptors & reflection; testonly. |
224 "//third_party/libprotobuf-mutator:*", | 224 "//third_party/libprotobuf-mutator:*", |
| 225 |
| 226 # The traffic_annotation tool is not part of Chrome itself, and needs to |
| 227 # parse human-readable protobufs. |
| 228 "//tools/traffic_annotation/*", |
225 ] | 229 ] |
226 | 230 |
227 sources = protobuf_lite_sources + protobuf_globals_sources + [ | 231 sources = protobuf_lite_sources + protobuf_globals_sources + [ |
228 "src/google/protobuf/any.cc", | 232 "src/google/protobuf/any.cc", |
229 "src/google/protobuf/any.h", | 233 "src/google/protobuf/any.h", |
230 "src/google/protobuf/any.pb.cc", | 234 "src/google/protobuf/any.pb.cc", |
231 "src/google/protobuf/any.pb.h", | 235 "src/google/protobuf/any.pb.h", |
232 "src/google/protobuf/api.pb.cc", | 236 "src/google/protobuf/api.pb.cc", |
233 "src/google/protobuf/api.pb.h", | 237 "src/google/protobuf/api.pb.h", |
234 "src/google/protobuf/compiler/importer.cc", | 238 "src/google/protobuf/compiler/importer.cc", |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 ":copy_google_protobuf_internal", | 691 ":copy_google_protobuf_internal", |
688 ":copy_six", | 692 ":copy_six", |
689 ] | 693 ] |
690 | 694 |
691 # Targets that depend on this should depend on the copied data files. | 695 # Targets that depend on this should depend on the copied data files. |
692 data = get_target_outputs(":copy_google") | 696 data = get_target_outputs(":copy_google") |
693 data += get_target_outputs(":copy_six") | 697 data += get_target_outputs(":copy_six") |
694 data += get_target_outputs(":copy_google_protobuf") | 698 data += get_target_outputs(":copy_google_protobuf") |
695 data += get_target_outputs(":copy_google_protobuf_internal") | 699 data += get_target_outputs(":copy_google_protobuf_internal") |
696 } | 700 } |
OLD | NEW |