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

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

Issue 544423002: Convert GN visibility variables to lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 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
« no previous file with comments | « third_party/dom_distiller_js/BUILD.gn ('k') | third_party/protobuf/proto_library.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 if (is_win) { 5 if (is_win) {
6 config_h_dir = "vsprojects" 6 config_h_dir = "vsprojects"
7 } else { 7 } else {
8 config_h_dir = "." 8 config_h_dir = "."
9 } 9 }
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 # Required for component builds. See http://crbug.com/172800. 99 # Required for component builds. See http://crbug.com/172800.
100 defines = [ "LIBPROTOBUF_EXPORTS" ] 100 defines = [ "LIBPROTOBUF_EXPORTS" ]
101 } 101 }
102 102
103 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't 103 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't
104 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls 104 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls
105 # into that category. Do not use in Chrome code. 105 # into that category. Do not use in Chrome code.
106 106
107 source_set("protobuf_full") { 107 source_set("protobuf_full") {
108 visibility = ":*" # Prevent people from depending on this outside our file. 108 # Prevent people from depending on this outside our file.
109 visibility = [ ":*" ]
109 110
110 sources = protobuf_lite_sources 111 sources = protobuf_lite_sources
111 sources += [ 112 sources += [
112 "src/google/protobuf/descriptor.h", 113 "src/google/protobuf/descriptor.h",
113 "src/google/protobuf/descriptor.pb.h", 114 "src/google/protobuf/descriptor.pb.h",
114 "src/google/protobuf/descriptor_database.h", 115 "src/google/protobuf/descriptor_database.h",
115 "src/google/protobuf/dynamic_message.h", 116 "src/google/protobuf/dynamic_message.h",
116 "src/google/protobuf/generated_enum_reflection.h", 117 "src/google/protobuf/generated_enum_reflection.h",
117 "src/google/protobuf/generated_message_reflection.h", 118 "src/google/protobuf/generated_message_reflection.h",
118 "src/google/protobuf/message.h", 119 "src/google/protobuf/message.h",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 configs -= [ "//build/config/win:lean_and_mean" ] 243 configs -= [ "//build/config/win:lean_and_mean" ]
243 } 244 }
244 245
245 cflags = protobuf_lite_cflags 246 cflags = protobuf_lite_cflags
246 247
247 deps = [ 248 deps = [
248 ":protobuf_full", 249 ":protobuf_full",
249 ] 250 ]
250 } 251 }
251 } 252 }
OLDNEW
« no previous file with comments | « third_party/dom_distiller_js/BUILD.gn ('k') | third_party/protobuf/proto_library.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698