| 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 23 matching lines...) Expand all Loading... |
| 34 "src", | 34 "src", |
| 35 "$root_gen_dir/protoc_out", | 35 "$root_gen_dir/protoc_out", |
| 36 ] | 36 ] |
| 37 } | 37 } |
| 38 | 38 |
| 39 protobuf_globals_sources = [ | 39 protobuf_globals_sources = [ |
| 40 "src/google/protobuf/globals.cc", | 40 "src/google/protobuf/globals.cc", |
| 41 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | 41 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", |
| 42 ] | 42 ] |
| 43 | 43 |
| 44 text_format_sources = [ |
| 45 "src/google/protobuf/any.cc", |
| 46 "src/google/protobuf/any.h", |
| 47 "src/google/protobuf/any.pb.cc", |
| 48 "src/google/protobuf/any.pb.h", |
| 49 "src/google/protobuf/dynamic_message.cc", |
| 50 "src/google/protobuf/dynamic_message.h", |
| 51 "src/google/protobuf/extension_set_heavy.cc", |
| 52 "src/google/protobuf/io/printer.cc", |
| 53 "src/google/protobuf/io/printer.h", |
| 54 "src/google/protobuf/io/strtod.cc", |
| 55 "src/google/protobuf/io/strtod.h", |
| 56 "src/google/protobuf/io/tokenizer.cc", |
| 57 "src/google/protobuf/io/tokenizer.h", |
| 58 "src/google/protobuf/io/zero_copy_stream_impl.cc", |
| 59 "src/google/protobuf/io/zero_copy_stream_impl.h", |
| 60 "src/google/protobuf/descriptor.cc", |
| 61 "src/google/protobuf/descriptor.h", |
| 62 "src/google/protobuf/descriptor.pb.cc", |
| 63 "src/google/protobuf/descriptor.pb.h", |
| 64 "src/google/protobuf/descriptor_database.cc", |
| 65 "src/google/protobuf/descriptor_database.h", |
| 66 "src/google/protobuf/generated_message_reflection.cc", |
| 67 "src/google/protobuf/generated_message_reflection.h", |
| 68 "src/google/protobuf/map_field.cc", |
| 69 "src/google/protobuf/map_field.h", |
| 70 "src/google/protobuf/map_field_inl.h", |
| 71 "src/google/protobuf/message.cc", |
| 72 "src/google/protobuf/message.h", |
| 73 "src/google/protobuf/reflection_ops.cc", |
| 74 "src/google/protobuf/reflection_ops.h", |
| 75 "src/google/protobuf/stubs/substitute.cc", |
| 76 "src/google/protobuf/stubs/substitute.h", |
| 77 "src/google/protobuf/text_format.cc", |
| 78 "src/google/protobuf/text_format.h", |
| 79 "src/google/protobuf/unknown_field_set.cc", |
| 80 "src/google/protobuf/unknown_field_set.h", |
| 81 "src/google/protobuf/wire_format.cc", |
| 82 "src/google/protobuf/wire_format.h", |
| 83 ] |
| 84 |
| 44 protobuf_lite_sources = [ | 85 protobuf_lite_sources = [ |
| 45 "src/google/protobuf/arena.cc", | 86 "src/google/protobuf/arena.cc", |
| 46 "src/google/protobuf/arena.h", | 87 "src/google/protobuf/arena.h", |
| 47 "src/google/protobuf/arenastring.cc", | 88 "src/google/protobuf/arenastring.cc", |
| 48 "src/google/protobuf/arenastring.h", | 89 "src/google/protobuf/arenastring.h", |
| 49 "src/google/protobuf/extension_set.cc", | 90 "src/google/protobuf/extension_set.cc", |
| 50 "src/google/protobuf/extension_set.h", | 91 "src/google/protobuf/extension_set.h", |
| 51 "src/google/protobuf/generated_message_util.cc", | 92 "src/google/protobuf/generated_message_util.cc", |
| 52 "src/google/protobuf/generated_message_util.h", | 93 "src/google/protobuf/generated_message_util.h", |
| 53 "src/google/protobuf/io/coded_stream.cc", | 94 "src/google/protobuf/io/coded_stream.cc", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 "src/google/protobuf/stubs/strutil.h", | 158 "src/google/protobuf/stubs/strutil.h", |
| 118 "src/google/protobuf/stubs/template_util.h", | 159 "src/google/protobuf/stubs/template_util.h", |
| 119 "src/google/protobuf/stubs/type_traits.h", | 160 "src/google/protobuf/stubs/type_traits.h", |
| 120 "src/google/protobuf/stubs/time.cc", | 161 "src/google/protobuf/stubs/time.cc", |
| 121 "src/google/protobuf/stubs/time.h", | 162 "src/google/protobuf/stubs/time.h", |
| 122 "src/google/protobuf/wire_format_lite.cc", | 163 "src/google/protobuf/wire_format_lite.cc", |
| 123 "src/google/protobuf/wire_format_lite.h", | 164 "src/google/protobuf/wire_format_lite.h", |
| 124 "src/google/protobuf/wire_format_lite_inl.h", | 165 "src/google/protobuf/wire_format_lite_inl.h", |
| 125 ] | 166 ] |
| 126 | 167 |
| 168 if (is_debug || dchecks_always_on) { |
| 169 protobuf_lite_sources += text_format_sources |
| 170 text_format_sources = [] |
| 171 } |
| 172 |
| 127 protobuf_lite_cflags = [] | 173 protobuf_lite_cflags = [] |
| 128 if (is_win) { | 174 if (is_win) { |
| 129 protobuf_lite_cflags = [ | 175 protobuf_lite_cflags = [ |
| 130 "/wd4018", # signed/unsigned mismatch in comparison | 176 "/wd4018", # signed/unsigned mismatch in comparison |
| 131 "/wd4065", # switch statement contains 'default' but no 'case' labels | 177 "/wd4065", # switch statement contains 'default' but no 'case' labels |
| 132 "/wd4146", # unary minus operator applied to unsigned type | 178 "/wd4146", # unary minus operator applied to unsigned type |
| 133 "/wd4244", # implicit conversion, possible loss of data | 179 "/wd4244", # implicit conversion, possible loss of data |
| 134 "/wd4267", # size_t to int truncation | 180 "/wd4267", # size_t to int truncation |
| 135 "/wd4291", # no matching operator delete for a placement new. | 181 "/wd4291", # no matching operator delete for a placement new. |
| 136 "/wd4305", # double to float truncation | 182 "/wd4305", # double to float truncation |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 # Prevent people from depending on this outside our file. | 265 # Prevent people from depending on this outside our file. |
| 220 visibility = [ | 266 visibility = [ |
| 221 ":*", | 267 ":*", |
| 222 | 268 |
| 223 # requires descriptors & reflection; testonly. | 269 # requires descriptors & reflection; testonly. |
| 224 "//third_party/libprotobuf-mutator:*", | 270 "//third_party/libprotobuf-mutator:*", |
| 225 | 271 |
| 226 # The traffic_annotation tool is not part of Chrome itself, and needs to | 272 # The traffic_annotation tool is not part of Chrome itself, and needs to |
| 227 # parse human-readable protobufs. | 273 # parse human-readable protobufs. |
| 228 "//tools/traffic_annotation/*", | 274 "//tools/traffic_annotation/*", |
| 275 |
| 276 # The traffic_annotation in Chrome is only linked when DCHECKS are on. It |
| 277 # needs to parse human-readable protobufs to check their syntax. |
| 278 "//chrome/browser/net/traffic_annotation/*", |
| 229 ] | 279 ] |
| 230 | 280 |
| 231 sources = protobuf_lite_sources + protobuf_globals_sources + [ | 281 sources = protobuf_lite_sources + protobuf_globals_sources + |
| 232 "src/google/protobuf/any.cc", | 282 text_format_sources + [ |
| 233 "src/google/protobuf/any.h", | |
| 234 "src/google/protobuf/any.pb.cc", | |
| 235 "src/google/protobuf/any.pb.h", | |
| 236 "src/google/protobuf/api.pb.cc", | 283 "src/google/protobuf/api.pb.cc", |
| 237 "src/google/protobuf/api.pb.h", | 284 "src/google/protobuf/api.pb.h", |
| 238 "src/google/protobuf/compiler/importer.cc", | 285 "src/google/protobuf/compiler/importer.cc", |
| 239 "src/google/protobuf/compiler/importer.h", | 286 "src/google/protobuf/compiler/importer.h", |
| 240 "src/google/protobuf/compiler/parser.cc", | 287 "src/google/protobuf/compiler/parser.cc", |
| 241 "src/google/protobuf/compiler/parser.h", | 288 "src/google/protobuf/compiler/parser.h", |
| 242 "src/google/protobuf/descriptor.cc", | |
| 243 "src/google/protobuf/descriptor.h", | |
| 244 "src/google/protobuf/descriptor.pb.cc", | |
| 245 "src/google/protobuf/descriptor.pb.h", | |
| 246 "src/google/protobuf/descriptor_database.cc", | |
| 247 "src/google/protobuf/descriptor_database.h", | |
| 248 "src/google/protobuf/duration.pb.cc", | 289 "src/google/protobuf/duration.pb.cc", |
| 249 "src/google/protobuf/duration.pb.h", | 290 "src/google/protobuf/duration.pb.h", |
| 250 "src/google/protobuf/dynamic_message.cc", | |
| 251 "src/google/protobuf/dynamic_message.h", | |
| 252 "src/google/protobuf/empty.pb.cc", | 291 "src/google/protobuf/empty.pb.cc", |
| 253 "src/google/protobuf/empty.pb.h", | 292 "src/google/protobuf/empty.pb.h", |
| 254 "src/google/protobuf/extension_set_heavy.cc", | |
| 255 "src/google/protobuf/field_mask.pb.cc", | 293 "src/google/protobuf/field_mask.pb.cc", |
| 256 "src/google/protobuf/field_mask.pb.h", | 294 "src/google/protobuf/field_mask.pb.h", |
| 257 "src/google/protobuf/generated_enum_reflection.h", | 295 "src/google/protobuf/generated_enum_reflection.h", |
| 258 "src/google/protobuf/generated_enum_util.h", | 296 "src/google/protobuf/generated_enum_util.h", |
| 259 "src/google/protobuf/generated_message_reflection.cc", | |
| 260 "src/google/protobuf/generated_message_reflection.h", | |
| 261 | 297 |
| 262 # gzip_stream.cc pulls in zlib, but it's not actually used by protoc, just | 298 # gzip_stream.cc pulls in zlib, but it's not actually used by protoc, just |
| 263 # by test code, so instead of compiling zlib for the host, let's just | 299 # by test code, so instead of compiling zlib for the host, let's just |
| 264 # exclude this. | 300 # exclude this. |
| 265 # "src/google/protobuf/io/gzip_stream.cc", | 301 # "src/google/protobuf/io/gzip_stream.cc", |
| 266 # "src/google/protobuf/io/gzip_stream.h", | 302 # "src/google/protobuf/io/gzip_stream.h", |
| 267 | 303 |
| 268 "src/google/protobuf/io/printer.cc", | |
| 269 "src/google/protobuf/io/printer.h", | |
| 270 "src/google/protobuf/io/strtod.cc", | |
| 271 "src/google/protobuf/io/strtod.h", | |
| 272 "src/google/protobuf/io/tokenizer.cc", | |
| 273 "src/google/protobuf/io/tokenizer.h", | |
| 274 "src/google/protobuf/io/zero_copy_stream_impl.cc", | |
| 275 "src/google/protobuf/io/zero_copy_stream_impl.h", | |
| 276 "src/google/protobuf/map_entry.h", | 304 "src/google/protobuf/map_entry.h", |
| 277 "src/google/protobuf/map_field.cc", | |
| 278 "src/google/protobuf/map_field.h", | |
| 279 "src/google/protobuf/map_field_inl.h", | |
| 280 "src/google/protobuf/message.cc", | |
| 281 "src/google/protobuf/message.h", | |
| 282 "src/google/protobuf/metadata.h", | 305 "src/google/protobuf/metadata.h", |
| 283 "src/google/protobuf/reflection.h", | 306 "src/google/protobuf/reflection.h", |
| 284 "src/google/protobuf/reflection_internal.h", | 307 "src/google/protobuf/reflection_internal.h", |
| 285 "src/google/protobuf/reflection_ops.cc", | |
| 286 "src/google/protobuf/reflection_ops.h", | |
| 287 "src/google/protobuf/service.cc", | 308 "src/google/protobuf/service.cc", |
| 288 "src/google/protobuf/service.h", | 309 "src/google/protobuf/service.h", |
| 289 "src/google/protobuf/source_context.pb.cc", | 310 "src/google/protobuf/source_context.pb.cc", |
| 290 "src/google/protobuf/source_context.pb.h", | 311 "src/google/protobuf/source_context.pb.h", |
| 291 "src/google/protobuf/struct.pb.cc", | 312 "src/google/protobuf/struct.pb.cc", |
| 292 "src/google/protobuf/struct.pb.h", | 313 "src/google/protobuf/struct.pb.h", |
| 293 "src/google/protobuf/stubs/mathlimits.cc", | 314 "src/google/protobuf/stubs/mathlimits.cc", |
| 294 "src/google/protobuf/stubs/mathlimits.h", | 315 "src/google/protobuf/stubs/mathlimits.h", |
| 295 "src/google/protobuf/stubs/mathutil.h", | 316 "src/google/protobuf/stubs/mathutil.h", |
| 296 "src/google/protobuf/stubs/singleton.h", | 317 "src/google/protobuf/stubs/singleton.h", |
| 297 "src/google/protobuf/stubs/substitute.cc", | |
| 298 "src/google/protobuf/stubs/substitute.h", | |
| 299 "src/google/protobuf/text_format.cc", | |
| 300 "src/google/protobuf/text_format.h", | |
| 301 "src/google/protobuf/timestamp.pb.cc", | 318 "src/google/protobuf/timestamp.pb.cc", |
| 302 "src/google/protobuf/timestamp.pb.h", | 319 "src/google/protobuf/timestamp.pb.h", |
| 303 "src/google/protobuf/type.pb.cc", | 320 "src/google/protobuf/type.pb.cc", |
| 304 "src/google/protobuf/type.pb.h", | 321 "src/google/protobuf/type.pb.h", |
| 305 "src/google/protobuf/unknown_field_set.cc", | |
| 306 "src/google/protobuf/unknown_field_set.h", | |
| 307 "src/google/protobuf/util/field_comparator.cc", | 322 "src/google/protobuf/util/field_comparator.cc", |
| 308 "src/google/protobuf/util/field_comparator.h", | 323 "src/google/protobuf/util/field_comparator.h", |
| 309 "src/google/protobuf/util/field_mask_util.cc", | 324 "src/google/protobuf/util/field_mask_util.cc", |
| 310 "src/google/protobuf/util/field_mask_util.h", | 325 "src/google/protobuf/util/field_mask_util.h", |
| 311 "src/google/protobuf/util/internal/constants.h", | 326 "src/google/protobuf/util/internal/constants.h", |
| 312 "src/google/protobuf/util/internal/datapiece.cc", | 327 "src/google/protobuf/util/internal/datapiece.cc", |
| 313 "src/google/protobuf/util/internal/datapiece.h", | 328 "src/google/protobuf/util/internal/datapiece.h", |
| 314 "src/google/protobuf/util/internal/default_value_objectwriter.cc", | 329 "src/google/protobuf/util/internal/default_value_objectwriter.cc", |
| 315 "src/google/protobuf/util/internal/default_value_objectwriter.h", | 330 "src/google/protobuf/util/internal/default_value_objectwriter.h", |
| 316 "src/google/protobuf/util/internal/error_listener.cc", | 331 "src/google/protobuf/util/internal/error_listener.cc", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 343 "src/google/protobuf/util/internal/utility.h", | 358 "src/google/protobuf/util/internal/utility.h", |
| 344 "src/google/protobuf/util/json_util.cc", | 359 "src/google/protobuf/util/json_util.cc", |
| 345 "src/google/protobuf/util/json_util.h", | 360 "src/google/protobuf/util/json_util.h", |
| 346 "src/google/protobuf/util/message_differencer.cc", | 361 "src/google/protobuf/util/message_differencer.cc", |
| 347 "src/google/protobuf/util/message_differencer.h", | 362 "src/google/protobuf/util/message_differencer.h", |
| 348 "src/google/protobuf/util/time_util.cc", | 363 "src/google/protobuf/util/time_util.cc", |
| 349 "src/google/protobuf/util/time_util.h", | 364 "src/google/protobuf/util/time_util.h", |
| 350 "src/google/protobuf/util/type_resolver.h", | 365 "src/google/protobuf/util/type_resolver.h", |
| 351 "src/google/protobuf/util/type_resolver_util.cc", | 366 "src/google/protobuf/util/type_resolver_util.cc", |
| 352 "src/google/protobuf/util/type_resolver_util.h", | 367 "src/google/protobuf/util/type_resolver_util.h", |
| 353 "src/google/protobuf/wire_format.cc", | |
| 354 "src/google/protobuf/wire_format.h", | |
| 355 "src/google/protobuf/wrappers.pb.cc", | 368 "src/google/protobuf/wrappers.pb.cc", |
| 356 "src/google/protobuf/wrappers.pb.h", | 369 "src/google/protobuf/wrappers.pb.h", |
| 357 ] | 370 ] |
| 358 | 371 |
| 359 deps = [ | 372 deps = [ |
| 360 "//build/config/sanitizers:deps", | 373 "//build/config/sanitizers:deps", |
| 361 ] | 374 ] |
| 362 | 375 |
| 363 configs -= [ "//build/config/compiler:chromium_code" ] | 376 configs -= [ "//build/config/compiler:chromium_code" ] |
| 364 configs += [ | 377 configs += [ |
| 365 "//build/config/compiler:no_chromium_code", | 378 "//build/config/compiler:no_chromium_code", |
| 366 | 379 |
| 367 # Must be after no_chromium_code for warning flags to be ordered | 380 # Must be after no_chromium_code for warning flags to be ordered |
| 368 # correctly. | 381 # correctly. |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 ":copy_google_protobuf_internal", | 704 ":copy_google_protobuf_internal", |
| 692 ":copy_six", | 705 ":copy_six", |
| 693 ] | 706 ] |
| 694 | 707 |
| 695 # Targets that depend on this should depend on the copied data files. | 708 # Targets that depend on this should depend on the copied data files. |
| 696 data = get_target_outputs(":copy_google") | 709 data = get_target_outputs(":copy_google") |
| 697 data += get_target_outputs(":copy_six") | 710 data += get_target_outputs(":copy_six") |
| 698 data += get_target_outputs(":copy_google_protobuf") | 711 data += get_target_outputs(":copy_google_protobuf") |
| 699 data += get_target_outputs(":copy_google_protobuf_internal") | 712 data += get_target_outputs(":copy_google_protobuf_internal") |
| 700 } | 713 } |
| OLD | NEW |