| OLD | NEW |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project 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("//build/config/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
| 6 import("//build_overrides/v8.gni") |
| 6 import("//third_party/icu/config.gni") | 7 import("//third_party/icu/config.gni") |
| 7 import("v8.gni") | 8 import("v8.gni") |
| 8 | 9 |
| 9 declare_args() { | 10 declare_args() { |
| 10 # Sets the test isolation mode (noop|prepare|check). | 11 # Sets the test isolation mode (noop|prepare|check). |
| 11 v8_test_isolation_mode = "noop" | 12 v8_test_isolation_mode = "noop" |
| 12 } | 13 } |
| 13 | 14 |
| 14 template("v8_isolate_run") { | 15 template("v8_isolate_run") { |
| 15 # Remember target name as within the action scope the target name will be | 16 # Remember target name as within the action scope the target name will be |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 if (is_component_build) { | 80 if (is_component_build) { |
| 80 component = "shared_library" | 81 component = "shared_library" |
| 81 } else { | 82 } else { |
| 82 component = "static_library" | 83 component = "static_library" |
| 83 } | 84 } |
| 84 if (icu_use_data_file) { | 85 if (icu_use_data_file) { |
| 85 icu_use_data_file_flag = "1" | 86 icu_use_data_file_flag = "1" |
| 86 } else { | 87 } else { |
| 87 icu_use_data_file_flag = "0" | 88 icu_use_data_file_flag = "0" |
| 88 } | 89 } |
| 90 if (v8_enable_inspector_override) { |
| 91 enable_inspector = "1" |
| 92 } else { |
| 93 enable_inspector = "0" |
| 94 } |
| 89 if (v8_use_external_startup_data) { | 95 if (v8_use_external_startup_data) { |
| 90 use_external_startup_data = "1" | 96 use_external_startup_data = "1" |
| 91 } else { | 97 } else { |
| 92 use_external_startup_data = "0" | 98 use_external_startup_data = "0" |
| 93 } | 99 } |
| 94 if (v8_use_snapshot) { | 100 if (v8_use_snapshot) { |
| 95 use_snapshot = "true" | 101 use_snapshot = "true" |
| 96 } else { | 102 } else { |
| 97 use_snapshot = "false" | 103 use_snapshot = "false" |
| 98 } | 104 } |
| 99 if (v8_has_valgrind) { | 105 if (v8_has_valgrind) { |
| 100 has_valgrind = "1" | 106 has_valgrind = "1" |
| 101 } else { | 107 } else { |
| 102 has_valgrind = "0" | 108 has_valgrind = "0" |
| 103 } | 109 } |
| 104 if (v8_gcmole) { | 110 if (v8_gcmole) { |
| 105 gcmole = "1" | 111 gcmole = "1" |
| 106 } else { | 112 } else { |
| 107 gcmole = "0" | 113 gcmole = "0" |
| 108 } | 114 } |
| 109 | 115 |
| 110 | |
| 111 # Note, all paths will be rebased in isolate_driver.py to be relative to | 116 # Note, all paths will be rebased in isolate_driver.py to be relative to |
| 112 # the isolate file. | 117 # the isolate file. |
| 113 args = [ | 118 args = [ |
| 114 v8_test_isolation_mode, | 119 v8_test_isolation_mode, |
| 115 "--isolated", | 120 "--isolated", |
| 116 rebase_path("$root_out_dir/$name.isolated", root_build_dir), | 121 rebase_path("$root_out_dir/$name.isolated", root_build_dir), |
| 117 "--isolate", | 122 "--isolate", |
| 118 rebase_path(invoker.isolate, root_build_dir), | 123 rebase_path(invoker.isolate, root_build_dir), |
| 119 | 124 |
| 120 # Path variables are used to replace file paths when loading a .isolate | 125 # Path variables are used to replace file paths when loading a .isolate |
| (...skipping 14 matching lines...) Expand all Loading... |
| 135 "asan=$asan", | 140 "asan=$asan", |
| 136 "--config-variable", | 141 "--config-variable", |
| 137 "cfi_vptr=$cfi_vptr", | 142 "cfi_vptr=$cfi_vptr", |
| 138 "--config-variable", | 143 "--config-variable", |
| 139 "gcmole=$gcmole", | 144 "gcmole=$gcmole", |
| 140 "--config-variable", | 145 "--config-variable", |
| 141 "has_valgrind=$has_valgrind", | 146 "has_valgrind=$has_valgrind", |
| 142 "--config-variable", | 147 "--config-variable", |
| 143 "icu_use_data_file_flag=$icu_use_data_file_flag", | 148 "icu_use_data_file_flag=$icu_use_data_file_flag", |
| 144 "--config-variable", | 149 "--config-variable", |
| 150 "is_gn=1", |
| 151 "--config-variable", |
| 145 "msan=$msan", | 152 "msan=$msan", |
| 146 "--config-variable", | 153 "--config-variable", |
| 147 "tsan=$tsan", | 154 "tsan=$tsan", |
| 148 "--config-variable", | 155 "--config-variable", |
| 149 "coverage=0", | 156 "coverage=0", |
| 150 "--config-variable", | 157 "--config-variable", |
| 151 "sanitizer_coverage=0", | 158 "sanitizer_coverage=0", |
| 152 "--config-variable", | 159 "--config-variable", |
| 153 "component=$component", | 160 "component=$component", |
| 154 "--config-variable", | 161 "--config-variable", |
| 155 "target_arch=$target_arch", | 162 "target_arch=$target_arch", |
| 156 "--config-variable", | 163 "--config-variable", |
| 164 "v8_enable_inspector=$enable_inspector", |
| 165 "--config-variable", |
| 157 "v8_use_external_startup_data=$use_external_startup_data", | 166 "v8_use_external_startup_data=$use_external_startup_data", |
| 158 "--config-variable", | 167 "--config-variable", |
| 159 "v8_use_snapshot=$use_snapshot", | 168 "v8_use_snapshot=$use_snapshot", |
| 160 ] | 169 ] |
| 161 | 170 |
| 162 if (is_win) { | 171 if (is_win) { |
| 163 args += [ | 172 args += [ |
| 164 "--config-variable", | 173 "--config-variable", |
| 165 "msvs_version=2013", | 174 "msvs_version=2013", |
| 166 ] | 175 ] |
| 167 } else { | 176 } else { |
| 168 args += [ | 177 args += [ |
| 169 "--config-variable", | 178 "--config-variable", |
| 170 "msvs_version=0", | 179 "msvs_version=0", |
| 171 ] | 180 ] |
| 172 } | 181 } |
| 173 } | 182 } |
| 174 } | 183 } |
| 175 } | 184 } |
| OLD | NEW |