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 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 Loading... |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |