OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 defines = [ "GN_BUILD" ] | 7 defines = [ "GN_BUILD" ] |
8 | 8 |
9 static_library("gn_lib") { | 9 static_library("gn_lib") { |
10 configs += [ "//build/config:precompiled_headers" ] | 10 configs += [ "//build/config:precompiled_headers" ] |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 ] | 234 ] |
235 | 235 |
236 deps = [ | 236 deps = [ |
237 ":gn_lib", | 237 ":gn_lib", |
238 ":last_commit_position", | 238 ":last_commit_position", |
239 "//base", | 239 "//base", |
240 "//build/config/sanitizers:deps", | 240 "//build/config/sanitizers:deps", |
241 ] | 241 ] |
242 } | 242 } |
243 | 243 |
| 244 # TODO(GYP): Delete this after we've converted everything to GN. |
| 245 # The _run targets exist only for compatibility w/ GYP. |
| 246 group("gn_unittests_run") { |
| 247 testonly = true |
| 248 deps = [ |
| 249 ":gn_unittests", |
| 250 ] |
| 251 } |
| 252 |
244 test("gn_unittests") { | 253 test("gn_unittests") { |
245 sources = [ | 254 sources = [ |
246 "action_target_generator_unittest.cc", | 255 "action_target_generator_unittest.cc", |
247 "args_unittest.cc", | 256 "args_unittest.cc", |
248 "builder_unittest.cc", | 257 "builder_unittest.cc", |
249 "c_include_iterator_unittest.cc", | 258 "c_include_iterator_unittest.cc", |
250 "command_format_unittest.cc", | 259 "command_format_unittest.cc", |
251 "config_unittest.cc", | 260 "config_unittest.cc", |
252 "config_values_extractors_unittest.cc", | 261 "config_values_extractors_unittest.cc", |
253 "escape_unittest.cc", | 262 "escape_unittest.cc", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 "format_test_data/", | 314 "format_test_data/", |
306 ] | 315 ] |
307 | 316 |
308 deps = [ | 317 deps = [ |
309 ":gn_lib", | 318 ":gn_lib", |
310 "//base/test:run_all_unittests", | 319 "//base/test:run_all_unittests", |
311 "//base/test:test_support", | 320 "//base/test:test_support", |
312 "//testing/gtest", | 321 "//testing/gtest", |
313 ] | 322 ] |
314 } | 323 } |
OLD | NEW |