[fuchsia] Add output_path property to customize output path of .so files (flutter/engine#39007)

* Add output_path property to customize output path of .so files

* Update to use proper path for ASAN vs non-ASAN
This commit is contained in:
Erik
2023-02-03 23:43:50 -05:00
committed by GitHub
parent b063cc02ab
commit 8854bfc7ce
2 changed files with 8 additions and 1 deletions

View File

@@ -105,8 +105,14 @@ template("_fuchsia_archive") {
}
foreach(lib, pkg.libraries) {
output_path = ""
if (defined(lib.output_path)) {
output_path = lib.output_path
}
copy_sources += [ "${lib.path}/${lib.name}" ]
copy_outputs += [ "$far_base_dir/lib/${lib.name}" ]
copy_outputs += [ "$far_base_dir/lib/${output_path}${lib.name}" ]
}
pkg_dir_deps = pkg.deps

View File

@@ -59,6 +59,7 @@ common_libs = [
{
name = "ld.so.1"
path = rebase_path("$sysroot_dist_lib/$ld_so_path")
output_path = ld_so_path
},
]