Chromium Code Reviews| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", | 66 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", |
| 67 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", | 67 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", |
| 68 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", | 68 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", |
| 69 "src/google/protobuf/stubs/atomicops_internals_macosx.h", | 69 "src/google/protobuf/stubs/atomicops_internals_macosx.h", |
| 70 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", | 70 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", |
| 71 "src/google/protobuf/stubs/atomicops_internals_pnacl.h", | 71 "src/google/protobuf/stubs/atomicops_internals_pnacl.h", |
| 72 "src/google/protobuf/stubs/atomicops_internals_power.h", | 72 "src/google/protobuf/stubs/atomicops_internals_power.h", |
| 73 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", | 73 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", |
| 74 "src/google/protobuf/stubs/atomicops_internals_solaris.h", | 74 "src/google/protobuf/stubs/atomicops_internals_solaris.h", |
| 75 "src/google/protobuf/stubs/atomicops_internals_tsan.h", | 75 "src/google/protobuf/stubs/atomicops_internals_tsan.h", |
| 76 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | |
| 77 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", | 76 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", |
| 78 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", | 77 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", |
| 79 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", | 78 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", |
| 80 "src/google/protobuf/stubs/atomic_sequence_num.h", | 79 "src/google/protobuf/stubs/atomic_sequence_num.h", |
| 81 "src/google/protobuf/stubs/bytestream.cc", | 80 "src/google/protobuf/stubs/bytestream.cc", |
| 82 "src/google/protobuf/stubs/bytestream.h", | 81 "src/google/protobuf/stubs/bytestream.h", |
| 83 "src/google/protobuf/stubs/callback.h", | 82 "src/google/protobuf/stubs/callback.h", |
| 84 "src/google/protobuf/stubs/casts.h", | 83 "src/google/protobuf/stubs/casts.h", |
| 85 "src/google/protobuf/stubs/common.cc", | 84 "src/google/protobuf/stubs/common.cc", |
| 86 "src/google/protobuf/stubs/common.h", | 85 "src/google/protobuf/stubs/common.h", |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 | 191 |
| 193 deps = [ | 192 deps = [ |
| 194 "//build/config/sanitizers:deps", | 193 "//build/config/sanitizers:deps", |
| 195 ] | 194 ] |
| 196 | 195 |
| 197 cflags = protobuf_lite_cflags | 196 cflags = protobuf_lite_cflags |
| 198 | 197 |
| 199 if (is_component_build && is_linux && !is_chromeos) { | 198 if (is_component_build && is_linux && !is_chromeos) { |
| 200 deps += [ ":protobuf_globals" ] | 199 deps += [ ":protobuf_globals" ] |
| 201 } else { | 200 } else { |
| 202 sources += [ "src/google/protobuf/globals.cc" ] | 201 sources += [ |
| 202 "src/google/protobuf/globals.cc", | |
|
Tom (Use chromium acct)
2017/03/21 18:06:21
it would probably be better to define protobuf_glo
Peter Kasting
2017/03/21 22:39:12
Yes. This way we won't list these in multiple dif
Eric Seckler
2017/03/22 11:36:16
Done.
| |
| 203 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | |
| 204 ] | |
| 203 } | 205 } |
| 204 | 206 |
| 205 # Required for component builds. See http://crbug.com/172800. | 207 # Required for component builds. See http://crbug.com/172800. |
| 206 if (is_component_build && (!is_linux || is_chromeos)) { | 208 if (is_component_build && (!is_linux || is_chromeos)) { |
| 207 public_configs += [ ":protobuf_use_dlls" ] | 209 public_configs += [ ":protobuf_use_dlls" ] |
| 208 defines = [ "LIBPROTOBUF_EXPORTS" ] | 210 defines = [ "LIBPROTOBUF_EXPORTS" ] |
| 209 } | 211 } |
| 210 } | 212 } |
| 211 | 213 |
| 212 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 214 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
| 213 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls | 215 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls |
| 214 # into that category. Do not use in Chrome code. | 216 # into that category. Do not use in Chrome code. |
| 215 static_library("protobuf_full") { | 217 static_library("protobuf_full") { |
| 216 # Prevent people from depending on this outside our file. | 218 # Prevent people from depending on this outside our file. |
| 217 visibility = [ | 219 visibility = [ |
| 218 ":*", | 220 ":*", |
| 219 | 221 |
| 220 # requires descriptors & reflection; testonly. | 222 # requires descriptors & reflection; testonly. |
| 221 "//third_party/libprotobuf-mutator:*", | 223 "//third_party/libprotobuf-mutator:*", |
| 222 ] | 224 ] |
| 223 | 225 |
| 224 sources = protobuf_lite_sources | 226 sources = protobuf_lite_sources |
| 225 sources += [ | 227 sources += [ |
|
Tom (Use chromium acct)
2017/03/21 18:06:21
while we're here, can you change this to be:
sourc
Eric Seckler
2017/03/22 11:36:16
Done.
| |
| 226 "src/google/protobuf/any.cc", | 228 "src/google/protobuf/any.cc", |
| 227 "src/google/protobuf/any.h", | 229 "src/google/protobuf/any.h", |
| 228 "src/google/protobuf/any.pb.cc", | 230 "src/google/protobuf/any.pb.cc", |
| 229 "src/google/protobuf/any.pb.h", | 231 "src/google/protobuf/any.pb.h", |
| 230 "src/google/protobuf/api.pb.cc", | 232 "src/google/protobuf/api.pb.cc", |
| 231 "src/google/protobuf/api.pb.h", | 233 "src/google/protobuf/api.pb.h", |
| 232 "src/google/protobuf/compiler/importer.cc", | 234 "src/google/protobuf/compiler/importer.cc", |
| 233 "src/google/protobuf/compiler/importer.h", | 235 "src/google/protobuf/compiler/importer.h", |
| 234 "src/google/protobuf/compiler/parser.cc", | 236 "src/google/protobuf/compiler/parser.cc", |
| 235 "src/google/protobuf/compiler/parser.h", | 237 "src/google/protobuf/compiler/parser.h", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 "src/google/protobuf/reflection.h", | 280 "src/google/protobuf/reflection.h", |
| 279 "src/google/protobuf/reflection_internal.h", | 281 "src/google/protobuf/reflection_internal.h", |
| 280 "src/google/protobuf/reflection_ops.cc", | 282 "src/google/protobuf/reflection_ops.cc", |
| 281 "src/google/protobuf/reflection_ops.h", | 283 "src/google/protobuf/reflection_ops.h", |
| 282 "src/google/protobuf/service.cc", | 284 "src/google/protobuf/service.cc", |
| 283 "src/google/protobuf/service.h", | 285 "src/google/protobuf/service.h", |
| 284 "src/google/protobuf/source_context.pb.cc", | 286 "src/google/protobuf/source_context.pb.cc", |
| 285 "src/google/protobuf/source_context.pb.h", | 287 "src/google/protobuf/source_context.pb.h", |
| 286 "src/google/protobuf/struct.pb.cc", | 288 "src/google/protobuf/struct.pb.cc", |
| 287 "src/google/protobuf/struct.pb.h", | 289 "src/google/protobuf/struct.pb.h", |
| 290 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | |
| 288 "src/google/protobuf/stubs/mathlimits.cc", | 291 "src/google/protobuf/stubs/mathlimits.cc", |
| 289 "src/google/protobuf/stubs/mathlimits.h", | 292 "src/google/protobuf/stubs/mathlimits.h", |
| 290 "src/google/protobuf/stubs/mathutil.h", | 293 "src/google/protobuf/stubs/mathutil.h", |
| 291 "src/google/protobuf/stubs/singleton.h", | 294 "src/google/protobuf/stubs/singleton.h", |
| 292 "src/google/protobuf/stubs/substitute.cc", | 295 "src/google/protobuf/stubs/substitute.cc", |
| 293 "src/google/protobuf/stubs/substitute.h", | 296 "src/google/protobuf/stubs/substitute.h", |
| 294 "src/google/protobuf/text_format.cc", | 297 "src/google/protobuf/text_format.cc", |
| 295 "src/google/protobuf/text_format.h", | 298 "src/google/protobuf/text_format.h", |
| 296 "src/google/protobuf/timestamp.pb.cc", | 299 "src/google/protobuf/timestamp.pb.cc", |
| 297 "src/google/protobuf/timestamp.pb.h", | 300 "src/google/protobuf/timestamp.pb.h", |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 686 ":copy_google_protobuf_internal", | 689 ":copy_google_protobuf_internal", |
| 687 ":copy_six", | 690 ":copy_six", |
| 688 ] | 691 ] |
| 689 | 692 |
| 690 # Targets that depend on this should depend on the copied data files. | 693 # Targets that depend on this should depend on the copied data files. |
| 691 data = get_target_outputs(":copy_google") | 694 data = get_target_outputs(":copy_google") |
| 692 data += get_target_outputs(":copy_six") | 695 data += get_target_outputs(":copy_six") |
| 693 data += get_target_outputs(":copy_google_protobuf") | 696 data += get_target_outputs(":copy_google_protobuf") |
| 694 data += get_target_outputs(":copy_google_protobuf_internal") | 697 data += get_target_outputs(":copy_google_protobuf_internal") |
| 695 } | 698 } |
| OLD | NEW |