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 12 matching lines...) Expand all Loading... |
23 cflags = [ "/wd4267" ] | 23 cflags = [ "/wd4267" ] |
24 } | 24 } |
25 } | 25 } |
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 config 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 = [ "$root_gen_dir/protoc_out" ] | 36 include_dirs = [ |
| 37 "src", |
| 38 "$root_gen_dir/protoc_out", |
| 39 ] |
37 } | 40 } |
38 | 41 |
39 protobuf_lite_sources = [ | 42 protobuf_lite_sources = [ |
40 "src/google/protobuf/extension_set.cc", | 43 "src/google/protobuf/extension_set.cc", |
41 "src/google/protobuf/extension_set.h", | 44 "src/google/protobuf/extension_set.h", |
42 "src/google/protobuf/generated_message_util.cc", | 45 "src/google/protobuf/generated_message_util.cc", |
43 "src/google/protobuf/generated_message_util.h", | 46 "src/google/protobuf/generated_message_util.h", |
44 "src/google/protobuf/io/coded_stream.cc", | 47 "src/google/protobuf/io/coded_stream.cc", |
45 "src/google/protobuf/io/coded_stream.h", | 48 "src/google/protobuf/io/coded_stream.h", |
46 "src/google/protobuf/io/coded_stream_inl.h", | 49 "src/google/protobuf/io/coded_stream_inl.h", |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } | 252 } |
250 | 253 |
251 cflags = protobuf_lite_cflags | 254 cflags = protobuf_lite_cflags |
252 | 255 |
253 deps = [ | 256 deps = [ |
254 ":protobuf_full", | 257 ":protobuf_full", |
255 ] | 258 ] |
256 deps += [ "//build/config/sanitizers:deps" ] | 259 deps += [ "//build/config/sanitizers:deps" ] |
257 } | 260 } |
258 } | 261 } |
OLD | NEW |