| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 public_configs += [ ":protobuf_use_dlls" ] | 170 public_configs += [ ":protobuf_use_dlls" ] |
| 171 defines = [ "LIBPROTOBUF_EXPORTS" ] | 171 defines = [ "LIBPROTOBUF_EXPORTS" ] |
| 172 } | 172 } |
| 173 } | 173 } |
| 174 | 174 |
| 175 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 175 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
| 176 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls | 176 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls |
| 177 # into that category. Do not use in Chrome code. | 177 # into that category. Do not use in Chrome code. |
| 178 static_library("protobuf_full") { | 178 static_library("protobuf_full") { |
| 179 # Prevent people from depending on this outside our file. | 179 # Prevent people from depending on this outside our file. |
| 180 visibility = [ ":*" ] | 180 visibility = [ |
| 181 ":*", |
| 182 |
| 183 # The traffic_annotation tool is not part of Chrome itself, and needs to |
| 184 # parse human-readable protobufs. |
| 185 "//tools/traffic_annotation/*", |
| 186 ] |
| 181 | 187 |
| 182 sources = protobuf_lite_sources | 188 sources = protobuf_lite_sources |
| 183 sources += [ | 189 sources += [ |
| 184 "src/google/protobuf/any.cc", | 190 "src/google/protobuf/any.cc", |
| 185 "src/google/protobuf/any.h", | 191 "src/google/protobuf/any.h", |
| 186 "src/google/protobuf/any.pb.cc", | 192 "src/google/protobuf/any.pb.cc", |
| 187 "src/google/protobuf/any.pb.h", | 193 "src/google/protobuf/any.pb.h", |
| 188 "src/google/protobuf/api.pb.cc", | 194 "src/google/protobuf/api.pb.cc", |
| 189 "src/google/protobuf/api.pb.h", | 195 "src/google/protobuf/api.pb.h", |
| 190 "src/google/protobuf/compiler/importer.cc", | 196 "src/google/protobuf/compiler/importer.cc", |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 ":copy_google_protobuf_internal", | 649 ":copy_google_protobuf_internal", |
| 644 ":copy_six", | 650 ":copy_six", |
| 645 ] | 651 ] |
| 646 | 652 |
| 647 # Targets that depend on this should depend on the copied data files. | 653 # Targets that depend on this should depend on the copied data files. |
| 648 data = get_target_outputs(":copy_google") | 654 data = get_target_outputs(":copy_google") |
| 649 data += get_target_outputs(":copy_six") | 655 data += get_target_outputs(":copy_six") |
| 650 data += get_target_outputs(":copy_google_protobuf") | 656 data += get_target_outputs(":copy_google_protobuf") |
| 651 data += get_target_outputs(":copy_google_protobuf_internal") | 657 data += get_target_outputs(":copy_google_protobuf_internal") |
| 652 } | 658 } |
| OLD | NEW |