[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:
@@ -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
|
||||
|
||||
@@ -59,6 +59,7 @@ common_libs = [
|
||||
{
|
||||
name = "ld.so.1"
|
||||
path = rebase_path("$sysroot_dist_lib/$ld_so_path")
|
||||
output_path = ld_so_path
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user