Build JARs containing the Android embedding sources and the engine native library (flutter/engine#10778)

This commit is contained in:
Jason Simmons
2019-08-08 18:11:29 -07:00
committed by GitHub
parent 8ec5f976ae
commit 5cb02d643f
2 changed files with 12 additions and 1 deletions

2
DEPS
View File

@@ -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
#

View File

@@ -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",