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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 if (is_win) { | 118 if (is_win) { |
119 cflags = [ "/wd4068" ] # Unknown pragma. | 119 cflags = [ "/wd4068" ] # Unknown pragma. |
120 } | 120 } |
121 | 121 |
122 configs += [ "//third_party/WebKit/Source:config" ] | 122 configs += [ "//third_party/WebKit/Source:config" ] |
123 | 123 |
124 deps = [ | 124 deps = [ |
125 ":test_support", | 125 ":test_support", |
126 ":wtf", | 126 ":wtf", |
127 "//base", | 127 "//base", |
128 "//base/allocator", | |
129 "//base/test:test_support", | 128 "//base/test:test_support", |
130 "//testing/gmock", | 129 "//testing/gmock", |
131 "//testing/gtest", | 130 "//testing/gtest", |
132 ] | 131 ] |
133 } | 132 } |
134 | 133 |
135 component("test_support") { | 134 component("test_support") { |
136 output_name = "wtf_test_support" | 135 output_name = "wtf_test_support" |
137 sources = gypi_values.wtf_unittest_helper_files | 136 sources = gypi_values.wtf_unittest_helper_files |
138 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ] | 137 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ] |
139 | 138 |
140 configs += [ | 139 configs += [ |
141 ":wtf_config", | 140 ":wtf_config", |
142 | 141 |
143 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 142 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
144 "//build/config/compiler:no_size_t_to_int_warning", | 143 "//build/config/compiler:no_size_t_to_int_warning", |
145 "//third_party/WebKit/Source:config", | 144 "//third_party/WebKit/Source:config", |
146 "//third_party/WebKit/Source:non_test_config", | 145 "//third_party/WebKit/Source:non_test_config", |
147 ] | 146 ] |
148 | 147 |
149 deps = [ | 148 deps = [ |
150 ":wtf", | 149 ":wtf", |
151 ] | 150 ] |
152 } | 151 } |
OLD | NEW |