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

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

Issue 595073002: Replace forward_dependent_configs with public_deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/opus/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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 source_set("protobuf_lite") { 87 source_set("protobuf_lite") {
88 sources = protobuf_lite_sources 88 sources = protobuf_lite_sources
89 89
90 configs -= [ "//build/config/compiler:chromium_code" ] 90 configs -= [ "//build/config/compiler:chromium_code" ]
91 configs += [ "//build/config/compiler:no_chromium_code" ] 91 configs += [ "//build/config/compiler:no_chromium_code" ]
92 if (is_win) { 92 if (is_win) {
93 configs -= [ "//build/config/win:lean_and_mean" ] 93 configs -= [ "//build/config/win:lean_and_mean" ]
94 } 94 }
95 direct_dependent_configs = [ ":protobuf_config" ] 95 public_configs = [ ":protobuf_config" ]
96 96
97 cflags = protobuf_lite_cflags 97 cflags = protobuf_lite_cflags
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.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 "src/google/protobuf/io/zero_copy_stream_impl.cc", 162 "src/google/protobuf/io/zero_copy_stream_impl.cc",
163 "src/google/protobuf/compiler/importer.cc", 163 "src/google/protobuf/compiler/importer.cc",
164 "src/google/protobuf/compiler/parser.cc", 164 "src/google/protobuf/compiler/parser.cc",
165 ] 165 ]
166 166
167 configs -= [ "//build/config/compiler:chromium_code" ] 167 configs -= [ "//build/config/compiler:chromium_code" ]
168 configs += [ "//build/config/compiler:no_chromium_code" ] 168 configs += [ "//build/config/compiler:no_chromium_code" ]
169 if (is_win) { 169 if (is_win) {
170 configs -= [ "//build/config/win:lean_and_mean" ] 170 configs -= [ "//build/config/win:lean_and_mean" ]
171 } 171 }
172 direct_dependent_configs = [ ":protobuf_config" ] 172 public_configs = [ ":protobuf_config" ]
173 173
174 cflags = protobuf_lite_cflags 174 cflags = protobuf_lite_cflags
175 } 175 }
176 176
177 # Only compile the compiler for the host architecture. 177 # Only compile the compiler for the host architecture.
178 if (current_toolchain == host_toolchain) { 178 if (current_toolchain == host_toolchain) {
179 executable("protoc") { 179 executable("protoc") {
180 sources = [ 180 sources = [
181 "src/google/protobuf/compiler/code_generator.cc", 181 "src/google/protobuf/compiler/code_generator.cc",
182 "src/google/protobuf/compiler/command_line_interface.cc", 182 "src/google/protobuf/compiler/command_line_interface.cc",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 configs -= [ "//build/config/win:lean_and_mean" ] 243 configs -= [ "//build/config/win:lean_and_mean" ]
244 } 244 }
245 245
246 cflags = protobuf_lite_cflags 246 cflags = protobuf_lite_cflags
247 247
248 deps = [ 248 deps = [
249 ":protobuf_full", 249 ":protobuf_full",
250 ] 250 ]
251 } 251 }
252 } 252 }
OLDNEW
« no previous file with comments | « third_party/opus/BUILD.gn ('k') | third_party/protobuf/proto_library.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698