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", |
11 [ "wtf.gypi" ]) | 11 [ "wtf.gypi" ]) |
12 | 12 |
13 visibility = [ "//third_party/WebKit/*" ] | 13 visibility = [ "//third_party/WebKit/*" ] |
14 | 14 |
15 config("wtf_config") { | 15 config("wtf_config") { |
16 if (is_win) { | 16 if (is_win) { |
17 defines = [ | 17 defines = [ |
18 "__STD_C", | 18 "__STD_C", |
19 "_CRT_SECURE_NO_DEPRECATE", | 19 "_CRT_SECURE_NO_DEPRECATE", |
20 "_SCL_SECURE_NO_DEPRECATE", | 20 "_SCL_SECURE_NO_DEPRECATE", |
21 "CRASH=__debugbreak", | |
22 ] | 21 ] |
23 include_dirs = [ | 22 include_dirs = [ |
24 "os-win32", | 23 "os-win32", |
25 ] | 24 ] |
26 | 25 |
27 cflags = [ | 26 cflags = [ |
28 # Don't complain about calling specific versions of templatized | 27 # Don't complain about calling specific versions of templatized |
29 # functions (e.g. in RefPtrHashMap.h). | 28 # functions (e.g. in RefPtrHashMap.h). |
30 "/wd4344", | 29 "/wd4344", |
31 # dtoa, icu, etc. like doing assignment within conditional. | 30 # dtoa, icu, etc. like doing assignment within conditional. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 134 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
136 "//build/config/compiler:no_size_t_to_int_warning", | 135 "//build/config/compiler:no_size_t_to_int_warning", |
137 "//third_party/WebKit/Source:config", | 136 "//third_party/WebKit/Source:config", |
138 "//third_party/WebKit/Source:non_test_config", | 137 "//third_party/WebKit/Source:non_test_config", |
139 ] | 138 ] |
140 | 139 |
141 deps = [ | 140 deps = [ |
142 ":wtf", | 141 ":wtf", |
143 ] | 142 ] |
144 } | 143 } |
OLD | NEW |