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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 extra_substitutions = [] | 267 extra_substitutions = [] |
268 } | 268 } |
269 extra_substitutions += [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ] | 269 extra_substitutions += [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ] |
270 | 270 |
271 if (!defined(deps)) { | 271 if (!defined(deps)) { |
272 deps = [] | 272 deps = [] |
273 } | 273 } |
274 deps += [ | 274 deps += [ |
275 # All shared libraries must have the sanitizer deps to properly link in | 275 # All shared libraries must have the sanitizer deps to properly link in |
276 # asan mode (this target will be empty in other cases). | 276 # asan mode (this target will be empty in other cases). |
277 "//build/config/sanitizers:deps", | 277 "//build/config:exe_and_shlib_deps", |
278 ] | 278 ] |
279 if (!defined(bundle_deps)) { | 279 if (!defined(bundle_deps)) { |
280 bundle_deps = [] | 280 bundle_deps = [] |
281 } | 281 } |
282 bundle_deps += [ ":$_resources_bundle_data" ] | 282 bundle_deps += [ ":$_resources_bundle_data" ] |
283 } | 283 } |
284 } else { | 284 } else { |
285 executable(target_name) { | 285 executable(target_name) { |
286 deps = [] | 286 deps = [] |
287 forward_variables_from(invoker, "*") | 287 forward_variables_from(invoker, "*") |
288 | 288 |
289 testonly = true | 289 testonly = true |
290 deps += [ | 290 deps += [ |
291 # All shared libraries must have the sanitizer deps to properly link in | 291 # All shared libraries must have the sanitizer deps to properly link in |
292 # asan mode (this target will be empty in other cases). | 292 # asan mode (this target will be empty in other cases). |
293 "//build/config/sanitizers:deps", | 293 "//build/config:exe_and_shlib_deps", |
294 | 294 |
295 # Give tests the default manifest on Windows (a no-op elsewhere). | 295 # Give tests the default manifest on Windows (a no-op elsewhere). |
296 "//build/win:default_exe_manifest", | 296 "//build/win:default_exe_manifest", |
297 ] | 297 ] |
298 } | 298 } |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 # Test defaults. | 302 # Test defaults. |
303 set_defaults("test") { | 303 set_defaults("test") { |
304 if (is_android) { | 304 if (is_android) { |
305 configs = default_shared_library_configs | 305 configs = default_shared_library_configs |
306 } else { | 306 } else { |
307 configs = default_executable_configs | 307 configs = default_executable_configs |
308 } | 308 } |
309 } | 309 } |
OLD | NEW |