From 5e96b957827c0abd726b87297c2885cd49bca311 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 7 Aug 2019 17:46:14 -0700 Subject: [PATCH] Build JARs containing the Android embedding sources and the engine native library --- DEPS | 2 +- shell/platform/android/BUILD.gn | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/DEPS b/DEPS index fbeb3adfab5d2..264ba460bb3a6 100644 --- a/DEPS +++ b/DEPS @@ -137,7 +137,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'c9561ea9f42c836e268c4bc84611d567a743e1ca', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '6050477e8b102d4047c979071498d3dc93540956', # Fuchsia compatibility # diff --git a/shell/platform/android/BUILD.gn b/shell/platform/android/BUILD.gn index 3aae6e3d2d5eb..628f0f90646ed 100644 --- a/shell/platform/android/BUILD.gn +++ b/shell/platform/android/BUILD.gn @@ -108,12 +108,14 @@ action("gen_android_build_config_java") { } flutter_jar_path = "$root_out_dir/flutter_java.jar" +flutter_source_jar_path = "$root_out_dir/flutter_java.srcjar" action("flutter_shell_java") { script = "//build/android/gyp/javac.py" depfile = "$target_gen_dir/$target_name.d" jar_path = flutter_jar_path + source_jar_path = flutter_source_jar_path sources = [ "io/flutter/Log.java", @@ -238,13 +240,17 @@ action("flutter_shell_java") { depfile, jar_path, jar_path + ".md5.stamp", + source_jar_path, + source_jar_path + ".md5.stamp", ] inputs = [ android_sdk_jar, ] inputs += android_support_jars + _rebased_current_path = rebase_path(".") _rebased_jar_path = rebase_path(jar_path, root_build_dir) + _rebased_source_jar_path = rebase_path(source_jar_path, root_build_dir) _rebased_depfile = rebase_path(depfile, root_build_dir) _rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir) _rebased_classpath = [ _rebased_android_sdk_jar ] + @@ -253,6 +259,8 @@ action("flutter_shell_java") { args = [ "--depfile=$_rebased_depfile", "--jar-path=$_rebased_jar_path", + "--jar-source-path=$_rebased_source_jar_path", + "--jar-source-base-dir=$_rebased_current_path", "--classpath=$_rebased_classpath", "--bootclasspath=$_rebased_android_sdk_jar", ] @@ -300,11 +308,14 @@ action("android") { outputs = [ "$root_build_dir/flutter.jar", + "$root_build_dir/flutter_engine.jar", ] args = [ "--output", rebase_path("flutter.jar", root_build_dir, root_build_dir), + "--output_native_jar", + rebase_path("flutter_engine.jar", root_build_dir, root_build_dir), "--dist_jar", rebase_path("flutter_java.jar", root_build_dir, root_build_dir), "--native_lib",