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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 "Foundation.framework", | 88 "Foundation.framework", |
89 ] | 89 ] |
90 } else { | 90 } else { |
91 sources -= [ | 91 sources -= [ |
92 "text/AtomicStringCF.cpp", | 92 "text/AtomicStringCF.cpp", |
93 "text/StringImplCF.cpp", | 93 "text/StringImplCF.cpp", |
94 ] | 94 ] |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
| 98 # TODO(GYP): Delete this after we've converted everything to GN. |
| 99 # The _run targets exist only for compatibility w/ GYP. |
| 100 group("wtf_unittests_run") { |
| 101 testonly = true |
| 102 deps = [ |
| 103 ":wtf_unittests", |
| 104 ] |
| 105 } |
| 106 |
98 test("wtf_unittests") { | 107 test("wtf_unittests") { |
99 visibility = [] # Allow re-assignment of list. | 108 visibility = [] # Allow re-assignment of list. |
100 visibility = [ "*" ] | 109 visibility = [ "*" ] |
101 | 110 |
102 sources = gypi_values.wtf_unittest_files | 111 sources = gypi_values.wtf_unittest_files |
103 | 112 |
104 sources += [ "testing/RunAllTests.cpp" ] | 113 sources += [ "testing/RunAllTests.cpp" ] |
105 | 114 |
106 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 115 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
107 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
(...skipping 25 matching lines...) Expand all Loading... |
133 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 142 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
134 "//build/config/compiler:no_size_t_to_int_warning", | 143 "//build/config/compiler:no_size_t_to_int_warning", |
135 "//third_party/WebKit/Source:config", | 144 "//third_party/WebKit/Source:config", |
136 "//third_party/WebKit/Source:non_test_config", | 145 "//third_party/WebKit/Source:non_test_config", |
137 ] | 146 ] |
138 | 147 |
139 deps = [ | 148 deps = [ |
140 ":wtf", | 149 ":wtf", |
141 ] | 150 ] |
142 } | 151 } |
OLD | NEW |