| 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 import("//third_party/WebKit/Source/config.gni") | 6 import("//third_party/WebKit/Source/config.gni") |
| 7 | 7 |
| 8 # The list of files is kept in the .gypi. | 8 # The list of files is kept in the .gypi. |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("wtf.gypi") ], | 10 [ rebase_path("wtf.gypi") ], |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 115 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 117 | 117 |
| 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", | |
| 126 ":wtf", | 125 ":wtf", |
| 127 "//base", | 126 "//base", |
| 128 "//base/test:test_support", | 127 "//base/test:test_support", |
| 129 "//testing/gmock", | 128 "//testing/gmock", |
| 130 "//testing/gtest", | 129 "//testing/gtest", |
| 131 ] | 130 ] |
| 132 } | 131 } |
| 133 | |
| 134 component("test_support") { | |
| 135 output_name = "wtf_test_support" | |
| 136 sources = gypi_values.wtf_unittest_helper_files | |
| 137 defines = [ "WTF_UNITTEST_HELPERS_IMPLEMENTATION=1" ] | |
| 138 | |
| 139 configs += [ | |
| 140 ":wtf_config", | |
| 141 | |
| 142 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 143 "//build/config/compiler:no_size_t_to_int_warning", | |
| 144 "//third_party/WebKit/Source:config", | |
| 145 "//third_party/WebKit/Source:non_test_config", | |
| 146 ] | |
| 147 | |
| 148 deps = [ | |
| 149 ":wtf", | |
| 150 ] | |
| 151 } | |
| OLD | NEW |