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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 # The list of files is kept in the .gypi. | 7 # The list of files is kept in the .gypi. |
8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
9 [ rebase_path("wtf.gypi") ], | 9 [ rebase_path("wtf.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 13 matching lines...) Expand all Loading... |
24 ] | 24 ] |
25 | 25 |
26 cflags = [ | 26 cflags = [ |
27 # Don't complain about calling specific versions of templatized | 27 # Don't complain about calling specific versions of templatized |
28 # functions (e.g. in RefPtrHashMap.h). | 28 # functions (e.g. in RefPtrHashMap.h). |
29 "/wd4344", | 29 "/wd4344", |
30 # dtoa, icu, etc. like doing assignment within conditional. | 30 # dtoa, icu, etc. like doing assignment within conditional. |
31 "/wd4706", | 31 "/wd4706", |
32 ] | 32 ] |
33 | 33 |
34 if (component_mode == "shared_library") { | 34 if (is_component_build) { |
35 # Chromium windows multi-dll build enables C++ exceptions and this causes | 35 # Chromium windows multi-dll build enables C++ exceptions and this causes |
36 # wtf to generate 4291 warning due to operator new/delete | 36 # wtf to generate 4291 warning due to operator new/delete |
37 # implementations. Disable the warning for chromium windows multi-dll | 37 # implementations. Disable the warning for chromium windows multi-dll |
38 # build. | 38 # build. |
39 cflags += [ "/wd4291" ] | 39 cflags += [ "/wd4291" ] |
40 } | 40 } |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 component("wtf") { | 44 component("wtf") { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 134 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
135 "//build/config/compiler:no_size_t_to_int_warning", | 135 "//build/config/compiler:no_size_t_to_int_warning", |
136 "//third_party/WebKit/Source:config", | 136 "//third_party/WebKit/Source:config", |
137 "//third_party/WebKit/Source:non_test_config", | 137 "//third_party/WebKit/Source:non_test_config", |
138 ] | 138 ] |
139 | 139 |
140 deps = [ | 140 deps = [ |
141 ":wtf", | 141 ":wtf", |
142 ] | 142 ] |
143 } | 143 } |
OLD | NEW |