Skip to content

Commit

Permalink
Use shared library output from shared toolchain (flutter#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrhosek authored and rmacnak-google committed Jul 18, 2017
1 parent 569de1e commit cfa180d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/flutter_app.gni
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

assert(is_fuchsia)

import("//build/toolchain/shared.gni")
import("//build/dart/dart_package.gni")
import("//flutter/lib/ui/dart_ui.gni")
import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni")
Expand Down Expand Up @@ -307,7 +308,7 @@ template("flutter_aot_app") {
dylib_label = target_name + "_dylib"

outer_target_name = target_name
shared_library(dylib_label) {
fuchsia_shared_library(dylib_label) {
deps = [
":$assembly_label",
]
Expand All @@ -321,7 +322,9 @@ template("flutter_aot_app") {
output_name = outer_target_name
}

dylib_path = "$root_out_dir/lib.unstripped/lib$target_name.so"
dylib_path =
get_label_info(":$dylib_label(${target_toolchain}-shared)",
"root_out_dir") + "/lib.unstripped/lib$target_name.so"

action(target_name) {
depfile = bundle_depfile
Expand Down

0 comments on commit cfa180d

Please sign in to comment.