OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/clang/clang.gni") | 6 import("//build/config/clang/clang.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/v8_target_cpu.gni") | 8 import("//build/config/v8_target_cpu.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/clang_static_analyzer.gni") | 10 import("//build/toolchain/clang_static_analyzer.gni") |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 rspfile = sofile + ".rsp" | 349 rspfile = sofile + ".rsp" |
350 pool = "//build/toolchain:link_pool($default_toolchain)" | 350 pool = "//build/toolchain:link_pool($default_toolchain)" |
351 whitelist_flag = " " | 351 whitelist_flag = " " |
352 if (enable_resource_whitelist_generation) { | 352 if (enable_resource_whitelist_generation) { |
353 whitelist_file = "$sofile.whitelist" | 353 whitelist_file = "$sofile.whitelist" |
354 whitelist_flag = " --resource-whitelist=\"$whitelist_file\"" | 354 whitelist_flag = " --resource-whitelist=\"$whitelist_file\"" |
355 } | 355 } |
356 | 356 |
357 if (defined(invoker.strip)) { | 357 if (defined(invoker.strip)) { |
358 unstripped_sofile = "{{root_out_dir}}/lib.unstripped/$soname" | 358 unstripped_sofile = "{{root_out_dir}}/lib.unstripped/$soname" |
| 359 if (!defined(runtime_outputs)) { |
| 360 runtime_outputs = [] |
| 361 } |
| 362 runtime_outputs += [ unstripped_sofile ] |
359 } else { | 363 } else { |
360 unstripped_sofile = sofile | 364 unstripped_sofile = sofile |
361 } | 365 } |
362 | 366 |
363 # These variables are not built into GN but are helpers that | 367 # These variables are not built into GN but are helpers that |
364 # implement (1) linking to produce a .so, (2) extracting the symbols | 368 # implement (1) linking to produce a .so, (2) extracting the symbols |
365 # from that file (3) if the extracted list differs from the existing | 369 # from that file (3) if the extracted list differs from the existing |
366 # .TOC file, overwrite it, otherwise, don't change it. | 370 # .TOC file, overwrite it, otherwise, don't change it. |
367 tocfile = sofile + ".TOC" | 371 tocfile = sofile + ".TOC" |
368 | 372 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 ]) | 589 ]) |
586 | 590 |
587 toolchain_args = { | 591 toolchain_args = { |
588 if (defined(invoker.toolchain_args)) { | 592 if (defined(invoker.toolchain_args)) { |
589 forward_variables_from(invoker.toolchain_args, "*") | 593 forward_variables_from(invoker.toolchain_args, "*") |
590 } | 594 } |
591 is_clang = true | 595 is_clang = true |
592 } | 596 } |
593 } | 597 } |
594 } | 598 } |
OLD | NEW |