OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # ============================================================================== | 5 # ============================================================================== |
6 # TEST SETUP | 6 # TEST SETUP |
7 # ============================================================================== | 7 # ============================================================================== |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 testonly = true | 276 testonly = true |
277 deps += [ | 277 deps += [ |
278 # All shared libraries must have the sanitizer deps to properly link in | 278 # All shared libraries must have the sanitizer deps to properly link in |
279 # asan mode (this target will be empty in other cases). | 279 # asan mode (this target will be empty in other cases). |
280 "//build/config/sanitizers:deps", | 280 "//build/config/sanitizers:deps", |
281 | 281 |
282 # Give tests the default manifest on Windows (a no-op elsewhere). | 282 # Give tests the default manifest on Windows (a no-op elsewhere). |
283 "//build/win:default_exe_manifest", | 283 "//build/win:default_exe_manifest", |
284 ] | 284 ] |
285 } | 285 } |
| 286 |
| 287 # TODO(GYP_GONE): Delete this after we've converted everything to GN. |
| 288 # The _run targets exist only for compatibility with GYP. |
| 289 group("${target_name}_run") { |
| 290 testonly = true |
| 291 deps = [ |
| 292 ":${invoker.target_name}", |
| 293 ] |
| 294 } |
| 295 |
| 296 if (defined(invoker.output_name) && target_name != invoker.output_name) { |
| 297 group("${invoker.output_name}_run") { |
| 298 testonly = true |
| 299 deps = [ |
| 300 ":${invoker.target_name}", |
| 301 ] |
| 302 } |
| 303 } |
286 } | 304 } |
287 } | 305 } |
288 | 306 |
289 # Test defaults. | 307 # Test defaults. |
290 set_defaults("test") { | 308 set_defaults("test") { |
291 if (is_android) { | 309 if (is_android) { |
292 configs = default_shared_library_configs | 310 configs = default_shared_library_configs |
293 } else { | 311 } else { |
294 configs = default_executable_configs | 312 configs = default_executable_configs |
295 } | 313 } |
296 } | 314 } |
OLD | NEW |