| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 data_deps = [] | 52 data_deps = [] |
| 53 forward_variables_from(invoker, | 53 forward_variables_from(invoker, |
| 54 "*", | 54 "*", |
| 55 _wrapper_script_vars + [ "extra_dist_files" ]) | 55 _wrapper_script_vars + [ "extra_dist_files" ]) |
| 56 testonly = true | 56 testonly = true |
| 57 | 57 |
| 58 # Thanks to the set_defaults() for test(), configs are initialized with | 58 # Thanks to the set_defaults() for test(), configs are initialized with |
| 59 # the default shared_library configs rather than executable configs. | 59 # the default shared_library configs rather than executable configs. |
| 60 configs -= [ | 60 configs -= [ |
| 61 "//build/config:shared_library_config", | 61 "//build/config:shared_library_config", |
| 62 "//build/config/android:hide_native_jni_exports", | 62 "//build/config/android:hide_all_but_jni_onload", |
| 63 ] | 63 ] |
| 64 configs += [ "//build/config:executable_config" ] | 64 configs += [ "//build/config:executable_config" ] |
| 65 | 65 |
| 66 # Don't output to the root or else conflict with the group() below. | 66 # Don't output to the root or else conflict with the group() below. |
| 67 output_name = rebase_path(_exec_output, root_out_dir) | 67 output_name = rebase_path(_exec_output, root_out_dir) |
| 68 if (is_component_build || is_asan) { | 68 if (is_component_build || is_asan) { |
| 69 data_deps += [ "//build/android:cpplib_stripped" ] | 69 data_deps += [ "//build/android:cpplib_stripped" ] |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 | 72 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 } | 306 } |
| 307 | 307 |
| 308 # Test defaults. | 308 # Test defaults. |
| 309 set_defaults("test") { | 309 set_defaults("test") { |
| 310 if (is_android) { | 310 if (is_android) { |
| 311 configs = default_shared_library_configs | 311 configs = default_shared_library_configs |
| 312 } else { | 312 } else { |
| 313 configs = default_executable_configs | 313 configs = default_executable_configs |
| 314 } | 314 } |
| 315 } | 315 } |
| OLD | NEW |