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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 if (component_mode == "shared_library") { | 27 if (component_mode == "shared_library") { |
28 config("protobuf_use_dlls") { | 28 config("protobuf_use_dlls") { |
29 defines = [ "PROTOBUF_USE_DLLS" ] | 29 defines = [ "PROTOBUF_USE_DLLS" ] |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
33 # This condif should be applied to targets using generated code from the proto | 33 # This condif should be applied to targets using generated code from the proto |
34 # compiler. It sets up the include directories properly. | 34 # compiler. It sets up the include directories properly. |
35 config("using_proto") { | 35 config("using_proto") { |
36 include_dirs = [ | 36 include_dirs = [ "$root_gen_dir/protoc_out" ] |
37 "$root_gen_dir/protoc_out", | |
38 ] | |
39 } | 37 } |
40 | 38 |
41 protobuf_lite_sources = [ | 39 protobuf_lite_sources = [ |
42 "src/google/protobuf/extension_set.cc", | 40 "src/google/protobuf/extension_set.cc", |
43 "src/google/protobuf/extension_set.h", | 41 "src/google/protobuf/extension_set.h", |
44 "src/google/protobuf/generated_message_util.cc", | 42 "src/google/protobuf/generated_message_util.cc", |
45 "src/google/protobuf/generated_message_util.h", | 43 "src/google/protobuf/generated_message_util.h", |
46 "src/google/protobuf/io/coded_stream.cc", | 44 "src/google/protobuf/io/coded_stream.cc", |
47 "src/google/protobuf/io/coded_stream.h", | 45 "src/google/protobuf/io/coded_stream.h", |
48 "src/google/protobuf/io/coded_stream_inl.h", | 46 "src/google/protobuf/io/coded_stream_inl.h", |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 "src/google/protobuf/io/gzip_stream.h", | 130 "src/google/protobuf/io/gzip_stream.h", |
133 "src/google/protobuf/io/printer.h", | 131 "src/google/protobuf/io/printer.h", |
134 "src/google/protobuf/io/tokenizer.h", | 132 "src/google/protobuf/io/tokenizer.h", |
135 "src/google/protobuf/io/zero_copy_stream_impl.h", | 133 "src/google/protobuf/io/zero_copy_stream_impl.h", |
136 "src/google/protobuf/compiler/code_generator.h", | 134 "src/google/protobuf/compiler/code_generator.h", |
137 "src/google/protobuf/compiler/command_line_interface.h", | 135 "src/google/protobuf/compiler/command_line_interface.h", |
138 "src/google/protobuf/compiler/importer.h", | 136 "src/google/protobuf/compiler/importer.h", |
139 "src/google/protobuf/compiler/java/java_doc_comment.cc", | 137 "src/google/protobuf/compiler/java/java_doc_comment.cc", |
140 "src/google/protobuf/compiler/java/java_doc_comment.h", | 138 "src/google/protobuf/compiler/java/java_doc_comment.h", |
141 "src/google/protobuf/compiler/parser.h", | 139 "src/google/protobuf/compiler/parser.h", |
142 | |
143 "src/google/protobuf/stubs/strutil.cc", | 140 "src/google/protobuf/stubs/strutil.cc", |
144 "src/google/protobuf/stubs/strutil.h", | 141 "src/google/protobuf/stubs/strutil.h", |
145 "src/google/protobuf/stubs/substitute.cc", | 142 "src/google/protobuf/stubs/substitute.cc", |
146 "src/google/protobuf/stubs/substitute.h", | 143 "src/google/protobuf/stubs/substitute.h", |
147 "src/google/protobuf/stubs/stl_util.h", | 144 "src/google/protobuf/stubs/stl_util.h", |
148 "src/google/protobuf/stubs/stringprintf.cc", | 145 "src/google/protobuf/stubs/stringprintf.cc", |
149 "src/google/protobuf/stubs/stringprintf.h", | 146 "src/google/protobuf/stubs/stringprintf.h", |
150 "src/google/protobuf/stubs/structurally_valid.cc", | 147 "src/google/protobuf/stubs/structurally_valid.cc", |
151 "src/google/protobuf/stubs/template_util.h", | 148 "src/google/protobuf/stubs/template_util.h", |
152 "src/google/protobuf/stubs/type_traits.h", | 149 "src/google/protobuf/stubs/type_traits.h", |
153 | |
154 "src/google/protobuf/descriptor.cc", | 150 "src/google/protobuf/descriptor.cc", |
155 "src/google/protobuf/descriptor.pb.cc", | 151 "src/google/protobuf/descriptor.pb.cc", |
156 "src/google/protobuf/descriptor_database.cc", | 152 "src/google/protobuf/descriptor_database.cc", |
157 "src/google/protobuf/dynamic_message.cc", | 153 "src/google/protobuf/dynamic_message.cc", |
158 "src/google/protobuf/extension_set_heavy.cc", | 154 "src/google/protobuf/extension_set_heavy.cc", |
159 "src/google/protobuf/generated_message_reflection.cc", | 155 "src/google/protobuf/generated_message_reflection.cc", |
160 "src/google/protobuf/message.cc", | 156 "src/google/protobuf/message.cc", |
161 "src/google/protobuf/reflection_ops.cc", | 157 "src/google/protobuf/reflection_ops.cc", |
162 "src/google/protobuf/service.cc", | 158 "src/google/protobuf/service.cc", |
163 "src/google/protobuf/text_format.cc", | 159 "src/google/protobuf/text_format.cc", |
164 "src/google/protobuf/wire_format.cc", | 160 "src/google/protobuf/wire_format.cc", |
| 161 |
165 # This file pulls in zlib, but it's not actually used by protoc, so | 162 # This file pulls in zlib, but it's not actually used by protoc, so |
166 # instead of compiling zlib for the host, let's just exclude this. | 163 # instead of compiling zlib for the host, let's just exclude this. |
167 # "src/src/google/protobuf/io/gzip_stream.cc", | 164 # "src/src/google/protobuf/io/gzip_stream.cc", |
168 "src/google/protobuf/io/printer.cc", | 165 "src/google/protobuf/io/printer.cc", |
169 "src/google/protobuf/io/tokenizer.cc", | 166 "src/google/protobuf/io/tokenizer.cc", |
170 "src/google/protobuf/io/zero_copy_stream_impl.cc", | 167 "src/google/protobuf/io/zero_copy_stream_impl.cc", |
171 "src/google/protobuf/compiler/importer.cc", | 168 "src/google/protobuf/compiler/importer.cc", |
172 "src/google/protobuf/compiler/parser.cc", | 169 "src/google/protobuf/compiler/parser.cc", |
173 ] | 170 ] |
174 | 171 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 249 } |
253 | 250 |
254 cflags = protobuf_lite_cflags | 251 cflags = protobuf_lite_cflags |
255 | 252 |
256 deps = [ | 253 deps = [ |
257 ":protobuf_full", | 254 ":protobuf_full", |
258 ] | 255 ] |
259 deps += [ "//build/config/sanitizers:deps" ] | 256 deps += [ "//build/config/sanitizers:deps" ] |
260 } | 257 } |
261 } | 258 } |
OLD | NEW |