OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/internal_rules.gni") | 6 import("//build/config/android/internal_rules.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 | 9 |
10 assert(is_android) | 10 assert(is_android) |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 assert(defined(invoker.res_dir)) | 560 assert(defined(invoker.res_dir)) |
561 | 561 |
562 _base_path = "$target_gen_dir/$target_name" | 562 _base_path = "$target_gen_dir/$target_name" |
563 _resources_zip = _base_path + ".resources.zip" | 563 _resources_zip = _base_path + ".resources.zip" |
564 _build_config = _base_path + ".build_config" | 564 _build_config = _base_path + ".build_config" |
565 | 565 |
566 write_build_config("${target_name}__build_config") { | 566 write_build_config("${target_name}__build_config") { |
567 build_config = _build_config | 567 build_config = _build_config |
568 resources_zip = _resources_zip | 568 resources_zip = _resources_zip |
569 type = "android_resources" | 569 type = "android_resources" |
| 570 if (defined(invoker.deps)) { |
| 571 possible_config_deps = invoker.deps |
| 572 } |
570 } | 573 } |
571 | 574 |
572 action("${target_name}__template") { | 575 action("${target_name}__template") { |
| 576 forward_variables_from(invoker, [ "deps" ]) |
573 sources = invoker.resources | 577 sources = invoker.resources |
574 script = "//build/android/gyp/jinja_template.py" | 578 script = "//build/android/gyp/jinja_template.py" |
575 depfile = "$target_gen_dir/$target_name.d" | 579 depfile = "$target_gen_dir/$target_name.d" |
576 | 580 |
577 outputs = [ | 581 outputs = [ |
578 _resources_zip, | 582 _resources_zip, |
579 ] | 583 ] |
580 | 584 |
581 rebased_resources = rebase_path(invoker.resources, root_build_dir) | 585 rebased_resources = rebase_path(invoker.resources, root_build_dir) |
582 args = [ | 586 args = [ |
(...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2760 # because in practice they seem to contain classes required to be in the | 2764 # because in practice they seem to contain classes required to be in the |
2761 # classpath. | 2765 # classpath. |
2762 deps += _subjar_targets | 2766 deps += _subjar_targets |
2763 } | 2767 } |
2764 if (defined(_res_target_name)) { | 2768 if (defined(_res_target_name)) { |
2765 deps += [ ":$_res_target_name" ] | 2769 deps += [ ":$_res_target_name" ] |
2766 } | 2770 } |
2767 } | 2771 } |
2768 } | 2772 } |
2769 } | 2773 } |
OLD | NEW |