Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index a72a1bec19a43d3e71a1784b990cc7e30b334f6e..06ef0dc2835b4d94fca82a566a342226bc36a0eb 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -73,6 +73,17 @@ template("write_build_config") { |
] |
} |
+ if (type == "android_apk") { |
+ if (defined(invoker.native_libs)) { |
+ rebased_native_libs = rebase_path(invoker.native_libs, root_build_dir) |
+ rebased_android_readelf = rebase_path(android_readelf, root_build_dir) |
+ args += [ |
+ "--native-libs=$rebased_native_libs", |
+ "--readelf-path=$rebased_android_readelf", |
+ ] |
+ } |
+ } |
+ |
if (defined(invoker.srcjar)) { |
args += [ |
"--srcjar", rebase_path(invoker.srcjar, root_build_dir) |
@@ -515,3 +526,29 @@ template("process_resources") { |
} |
} |
} |
+ |
+template("copy_ex") { |
+ action(target_name) { |
+ script = "//build/android/gyp/copy_ex.py" |
+ depfile = "$target_gen_dir/$target_name.d" |
+ outputs = [ |
+ depfile, |
+ ] |
+ |
+ inputs = [] |
+ if (defined(invoker.inputs)) { |
+ inputs += invoker.inputs |
+ } |
+ |
+ args = [ |
+ "--depfile", rebase_path(depfile, root_build_dir), |
+ "--dest", rebase_path(invoker.dest, root_build_dir), |
+ ] |
+ if (defined(invoker.args)) { |
+ args += invoker.args |
+ } |
+ if (defined(invoker.clear_dir) && invoker.clear_dir) { |
+ args += ["--clear"] |
+ } |
+ } |
+} |