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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 "gn_main.cc", | 219 "gn_main.cc", |
220 ] | 220 ] |
221 | 221 |
222 deps = [ | 222 deps = [ |
223 ":gn_lib", | 223 ":gn_lib", |
224 ":last_commit_position", | 224 ":last_commit_position", |
225 "//base", | 225 "//base", |
226 ] | 226 ] |
227 } | 227 } |
228 | 228 |
| 229 # TODO(GYP): Delete this after we've converted everything to GN. |
| 230 # The _run targets exist only for compatibility w/ GYP. |
| 231 group("gn_unittests_run") { |
| 232 testonly = true |
| 233 deps = [ |
| 234 ":gn_unittests", |
| 235 ] |
| 236 } |
| 237 |
229 test("gn_unittests") { | 238 test("gn_unittests") { |
230 sources = [ | 239 sources = [ |
231 "action_target_generator_unittest.cc", | 240 "action_target_generator_unittest.cc", |
232 "args_unittest.cc", | 241 "args_unittest.cc", |
233 "builder_unittest.cc", | 242 "builder_unittest.cc", |
234 "c_include_iterator_unittest.cc", | 243 "c_include_iterator_unittest.cc", |
235 "command_format_unittest.cc", | 244 "command_format_unittest.cc", |
236 "config_values_extractors_unittest.cc", | 245 "config_values_extractors_unittest.cc", |
237 "escape_unittest.cc", | 246 "escape_unittest.cc", |
238 "exec_process_unittest.cc", | 247 "exec_process_unittest.cc", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 "target_generator_unittest.cc", | 283 "target_generator_unittest.cc", |
275 "target_unittest.cc", | 284 "target_unittest.cc", |
276 "template_unittest.cc", | 285 "template_unittest.cc", |
277 "test_with_scope.cc", | 286 "test_with_scope.cc", |
278 "test_with_scope.h", | 287 "test_with_scope.h", |
279 "tokenizer_unittest.cc", | 288 "tokenizer_unittest.cc", |
280 "unique_vector_unittest.cc", | 289 "unique_vector_unittest.cc", |
281 "value_unittest.cc", | 290 "value_unittest.cc", |
282 "visibility_unittest.cc", | 291 "visibility_unittest.cc", |
283 ] | 292 ] |
| 293 |
| 294 data = [ |
| 295 "format_test_data/", |
| 296 ] |
| 297 |
284 deps = [ | 298 deps = [ |
285 ":gn_lib", | 299 ":gn_lib", |
286 "//base/test:run_all_unittests", | 300 "//base/test:run_all_unittests", |
287 "//base/test:test_support", | 301 "//base/test:test_support", |
288 "//testing/gtest", | 302 "//testing/gtest", |
289 ] | 303 ] |
290 } | 304 } |
291 | 305 |
292 executable("generate_test_gn_data") { | 306 executable("generate_test_gn_data") { |
293 sources = [ | 307 sources = [ |
294 "generate_test_gn_data.cc", | 308 "generate_test_gn_data.cc", |
295 ] | 309 ] |
296 deps = [ | 310 deps = [ |
297 "//base", | 311 "//base", |
298 ] | 312 ] |
299 } | 313 } |
OLD | NEW |