| Index: build/config/android/rules.gni | 
| diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni | 
| index d63c7bf94a5a7c0076bc0a0619ee26e793b2ecea..5b313ac10fb30c42b04c889a8e9a978fb65a3925 100644 | 
| --- a/build/config/android/rules.gni | 
| +++ b/build/config/android/rules.gni | 
| @@ -36,13 +36,16 @@ template("generate_jni") { | 
| foreach_target_name = "${target_name}__jni_gen" | 
| action_foreach(foreach_target_name) { | 
| script = "//base/android/jni_generator/jni_generator.py" | 
| +    depfile = "$target_gen_dir/$target_name.{{source_name_part}}.d" | 
| sources = invoker.sources | 
| source_prereqs = [ jni_generator_include ] | 
| outputs = [ | 
| +      depfile, | 
| "${jni_output_dir}/{{source_name_part}}_jni.h" | 
| ] | 
|  | 
| args = [ | 
| +      "--depfile", rebase_path(depfile, root_build_dir), | 
| "--input_file={{source}}", | 
| "--optimize_generation=1", | 
| "--ptr_type=long", | 
| @@ -123,16 +126,19 @@ template("generate_jar_jni") { | 
| jni_target_name = "${target_name}__jni_${classname}" | 
| jni_actions += [ ":$jni_target_name" ] | 
| action(jni_target_name) { | 
| +      depfile = "$target_gen_dir/$target_name.d" | 
| script = "//base/android/jni_generator/jni_generator.py" | 
| sources = [ | 
| jni_generator_include, | 
| jar_file, | 
| ] | 
| outputs = [ | 
| +        depfile, | 
| "${jni_output_dir}/${classname}_jni.h" | 
| ] | 
|  | 
| args = [ | 
| +        "--depfile", rebase_path(depfile, root_build_dir), | 
| "--jar_file", rebase_path(jar_file, root_build_dir), | 
| "--input_file", class, | 
| "--optimize_generation=1", | 
| @@ -205,6 +211,7 @@ template("java_cpp_template") { | 
| if (defined(invoker.source_prereqs)) { | 
| source_prereqs = invoker.source_prereqs + [] | 
| } | 
| +    depfile = "${target_gen_dir}/${target_name}.d" | 
|  | 
| sources = invoker.sources | 
|  | 
| @@ -212,10 +219,12 @@ template("java_cpp_template") { | 
| gcc_template_output_pattern = "${gen_dir}/{{source_name_part}}.java" | 
|  | 
| outputs = [ | 
| +      depfile, | 
| gcc_template_output_pattern | 
| ] | 
|  | 
| args = [ | 
| +      "--depfile", rebase_path(depfile, root_build_dir), | 
| "--include-path", rebase_path(include_path, root_build_dir), | 
| "--output", rebase_path(gen_dir, root_build_dir) + "/{{source_name_part}}.java", | 
| "--template={{source}}", | 
|  |