Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/protobuf/BUILD.gn

Issue 2759423004: Protobuf: Move thread-local global data to globals.cc (Closed)
Patch Set: Update patch file Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 cflags = protobuf_lite_cflags 197 cflags = protobuf_lite_cflags
198 198
199 if (is_component_build && is_linux && !is_chromeos) { 199 if (is_component_build && is_linux && !is_chromeos) {
200 deps += [ ":protobuf_globals" ] 200 deps += [ ":protobuf_globals" ]
201 } else { 201 } else {
202 sources += [ "src/google/protobuf/globals.cc" ] 202 sources += [ "src/google/protobuf/globals.cc" ]
203 } 203 }
204 204
205 # Required for component builds. See http://crbug.com/172800. 205 # Required for component builds. See http://crbug.com/172800.
206 if (is_component_build && (!is_linux || is_chromeos)) { 206 if (is_component_build) {
207 public_configs += [ ":protobuf_use_dlls" ] 207 public_configs += [ ":protobuf_use_dlls" ]
Peter Kasting 2017/03/22 05:16:40 Dunno that I understand the change to start doing
Tom (Use chromium acct) 2017/03/22 05:40:49 cr_thread_cache() has a different definition depen
208 defines = [ "LIBPROTOBUF_EXPORTS" ] 208 if (!is_linux || is_chromeos) {
209 defines = [ "LIBPROTOBUF_EXPORTS" ]
210 }
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 ":*",
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 ":copy_google_protobuf_internal", 688 ":copy_google_protobuf_internal",
687 ":copy_six", 689 ":copy_six",
688 ] 690 ]
689 691
690 # Targets that depend on this should depend on the copied data files. 692 # Targets that depend on this should depend on the copied data files.
691 data = get_target_outputs(":copy_google") 693 data = get_target_outputs(":copy_google")
692 data += get_target_outputs(":copy_six") 694 data += get_target_outputs(":copy_six")
693 data += get_target_outputs(":copy_google_protobuf") 695 data += get_target_outputs(":copy_google_protobuf")
694 data += get_target_outputs(":copy_google_protobuf_internal") 696 data += get_target_outputs(":copy_google_protobuf_internal")
695 } 697 }
OLDNEW
« no previous file with comments | « no previous file | third_party/protobuf/README.chromium » ('j') | third_party/protobuf/README.chromium » ('J')

Powered by Google App Engine
This is Rietveld 408576698