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 # Define a test as an executable (or apk on Android) with the "testonly" flag | 9 # Define a test as an executable (or apk on Android) with the "testonly" flag |
10 # set. | 10 # set. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 if (defined(invoker.data_deps)) { | 196 if (defined(invoker.data_deps)) { |
197 data_deps = invoker.data_deps | 197 data_deps = invoker.data_deps |
198 } | 198 } |
199 if (defined(invoker.datadeps)) { | 199 if (defined(invoker.datadeps)) { |
200 datadeps = invoker.datadeps | 200 datadeps = invoker.datadeps |
201 } | 201 } |
202 if (defined(invoker.defines)) { | 202 if (defined(invoker.defines)) { |
203 defines = invoker.defines | 203 defines = invoker.defines |
204 } | 204 } |
205 | 205 |
206 # All shared libraries must have the sanitizer deps to properly link in | |
207 # asan mode (this target will be empty in other cases). | |
208 if (defined(invoker.deps)) { | 206 if (defined(invoker.deps)) { |
209 deps = invoker.deps + [ "//build/config/sanitizers:deps" ] | 207 deps = invoker.deps |
210 } else { | 208 } else { |
211 deps = [ | 209 deps = [] |
212 "//build/config/sanitizers:deps", | |
213 ] | |
214 } | 210 } |
| 211 deps += [ |
| 212 # All shared libraries must have the sanitizer deps to properly link in |
| 213 # asan mode (this target will be empty in other cases). |
| 214 "//build/config/sanitizers:deps", |
| 215 |
| 216 # Give tests the default manifest on Windows (a no-op elsewhere). |
| 217 "//build/win:default_exe_manifest", |
| 218 ] |
| 219 |
215 if (defined(invoker.direct_dependent_configs)) { | 220 if (defined(invoker.direct_dependent_configs)) { |
216 direct_dependent_configs = invoker.direct_dependent_configs | 221 direct_dependent_configs = invoker.direct_dependent_configs |
217 } | 222 } |
218 if (defined(invoker.forward_dependent_configs_from)) { | 223 if (defined(invoker.forward_dependent_configs_from)) { |
219 forward_dependent_configs_from = invoker.forward_dependent_configs_from | 224 forward_dependent_configs_from = invoker.forward_dependent_configs_from |
220 } | 225 } |
221 if (defined(invoker.include_dirs)) { | 226 if (defined(invoker.include_dirs)) { |
222 include_dirs = invoker.include_dirs | 227 include_dirs = invoker.include_dirs |
223 } | 228 } |
224 if (defined(invoker.ldflags)) { | 229 if (defined(invoker.ldflags)) { |
(...skipping 22 matching lines...) Expand all Loading... |
247 } | 252 } |
248 if (defined(invoker.sources)) { | 253 if (defined(invoker.sources)) { |
249 sources = invoker.sources | 254 sources = invoker.sources |
250 } | 255 } |
251 if (defined(invoker.visibility)) { | 256 if (defined(invoker.visibility)) { |
252 visibility = invoker.visibility | 257 visibility = invoker.visibility |
253 } | 258 } |
254 } | 259 } |
255 } | 260 } |
256 } | 261 } |
OLD | NEW |