Chromium Code Reviews| Index: build/config/android/internal_rules.gni |
| diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
| index 363a53a1685f3274b7eddf7ec0f8a4c1bd449433..22093c12bda464d9e36c5c1cced89f72455d8e5b 100644 |
| --- a/build/config/android/internal_rules.gni |
| +++ b/build/config/android/internal_rules.gni |
| @@ -327,6 +327,11 @@ template("write_build_config") { |
| rebase_path(invoker.srcjar, root_build_dir), |
| ] |
| } |
| + if (defined(invoker.bundled_srcjars)) { |
| + _rebased_bundled_srcjars = |
| + rebase_path(invoker.bundled_srcjars, root_build_dir) |
|
jbudorick
2016/07/07 22:32:30
Does this work with a list of paths?
agrieve
2016/07/08 19:07:28
yes
|
| + args += [ "--bundled-srcjars=$_rebased_bundled_srcjars" ] |
| + } |
| } |
| } |
| @@ -2157,6 +2162,15 @@ if (enable_java_templates) { |
| if (_java_files != []) { |
| java_sources_file = _java_sources_file |
| } |
| + |
| + if (defined(invoker.srcjar_deps)) { |
| + bundled_srcjars = [] |
| + foreach(d, invoker.srcjar_deps) { |
| + _dep_gen_dir = get_label_info(d, "target_gen_dir") |
| + _dep_name = get_label_info(d, "name") |
|
jbudorick
2016/07/07 22:32:30
Is this used?
agrieve
2016/07/08 19:07:28
On the next line :P
|
| + bundled_srcjars += [ "$_dep_gen_dir/$_dep_name.srcjar" ] |
| + } |
| + } |
| } |
| _accumulated_deps += [ ":$build_config_target_name" ] |
| } |