From 4aef05354a946526979e55d161bcf785ccf9ec57 Mon Sep 17 00:00:00 2001 From: jensjoha Date: Wed, 3 Oct 2018 08:19:46 +0200 Subject: [PATCH] Use single_root_scheme when compiling platform (flutter/engine#6402) --- engine/src/flutter/lib/snapshot/BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index 4eaa3bd248..43c14a8376 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/lib/snapshot/BUILD.gn @@ -169,7 +169,9 @@ source_set("snapshot") { } compile_platform("non_strong_platform") { - libraries_specification_uri = "libraries.json" + single_root_scheme = "org-dartlang-sdk" + single_root_base = rebase_path("../../../") + libraries_specification_uri = "org-dartlang-sdk:///flutter/lib/snapshot/libraries.json" outputs = [ "$root_out_dir/flutter_patched_sdk/platform.dill", @@ -183,7 +185,9 @@ compile_platform("non_strong_platform") { } compile_platform("strong_platform") { - libraries_specification_uri = "libraries.json" + single_root_scheme = "org-dartlang-sdk" + single_root_base = rebase_path("../../../") + libraries_specification_uri = "org-dartlang-sdk:///flutter/lib/snapshot/libraries.json" outputs = [ "$root_out_dir/flutter_patched_sdk/platform_strong.dill",