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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
7 import("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
935 "--depfile", | 935 "--depfile", |
936 rebase_path(depfile, root_build_dir), | 936 rebase_path(depfile, root_build_dir), |
937 "--android-sdk-tools", | 937 "--android-sdk-tools", |
938 rebased_android_sdk_build_tools, | 938 rebased_android_sdk_build_tools, |
939 "--main-dex-list-path", | 939 "--main-dex-list-path", |
940 rebase_path(_main_dex_list_path, root_build_dir), | 940 rebase_path(_main_dex_list_path, root_build_dir), |
941 "--main-dex-rules-path", | 941 "--main-dex-rules-path", |
942 rebase_path(main_dex_rules, root_build_dir), | 942 rebase_path(main_dex_rules, root_build_dir), |
943 ] | 943 ] |
944 | 944 |
945 if (defined(invoker.extra_main_dex_proguard_config)) { | |
946 args += [ | |
947 "--main-dex-rules-path", | |
948 rebase_path(invoker.extra_main_dex_proguard_config, root_build_dir), | |
estevenson
2017/01/13 16:35:12
Should this also be an input?
agrieve
2017/01/13 17:58:39
Good catch! Done.
| |
949 ] | |
950 } | |
951 | |
945 if (defined(invoker.args)) { | 952 if (defined(invoker.args)) { |
946 args += invoker.args | 953 args += invoker.args |
947 } | 954 } |
948 | 955 |
949 if (defined(invoker.sources)) { | 956 if (defined(invoker.sources)) { |
950 args += rebase_path(invoker.sources, root_build_dir) | 957 args += rebase_path(invoker.sources, root_build_dir) |
951 } | 958 } |
952 } | 959 } |
953 } | 960 } |
954 | 961 |
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2695 } | 2702 } |
2696 | 2703 |
2697 if (defined(invoker.proguard_file)) { | 2704 if (defined(invoker.proguard_file)) { |
2698 outputs += [ invoker.proguard_file ] | 2705 outputs += [ invoker.proguard_file ] |
2699 args += [ | 2706 args += [ |
2700 "--proguard-file", | 2707 "--proguard-file", |
2701 rebase_path(invoker.proguard_file, root_build_dir), | 2708 rebase_path(invoker.proguard_file, root_build_dir), |
2702 ] | 2709 ] |
2703 } | 2710 } |
2704 | 2711 |
2712 if (defined(invoker.proguard_file_main_dex)) { | |
2713 outputs += [ invoker.proguard_file_main_dex ] | |
2714 args += [ | |
2715 "--proguard-file-main-dex", | |
2716 rebase_path(invoker.proguard_file_main_dex, root_build_dir), | |
2717 ] | |
2718 } | |
2719 | |
2705 if (defined(invoker.args)) { | 2720 if (defined(invoker.args)) { |
2706 args += invoker.args | 2721 args += invoker.args |
2707 } | 2722 } |
2708 } | 2723 } |
2709 } | 2724 } |
2710 | 2725 |
2711 # Produces a single .dex.jar out of a set of Java dependencies. | 2726 # Produces a single .dex.jar out of a set of Java dependencies. |
2712 template("deps_dex") { | 2727 template("deps_dex") { |
2713 set_sources_assignment_filter([]) | 2728 set_sources_assignment_filter([]) |
2714 build_config = "$target_gen_dir/${target_name}.build_config" | 2729 build_config = "$target_gen_dir/${target_name}.build_config" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2824 rebase_path(root_build_dir, root_build_dir), | 2839 rebase_path(root_build_dir, root_build_dir), |
2825 "--packed-libraries-dir", | 2840 "--packed-libraries-dir", |
2826 rebase_path(_packed_libraries_dir, root_build_dir), | 2841 rebase_path(_packed_libraries_dir, root_build_dir), |
2827 "--libraries=${invoker.libraries_filearg}", | 2842 "--libraries=${invoker.libraries_filearg}", |
2828 "--filelistjson", | 2843 "--filelistjson", |
2829 rebase_path(invoker.file_list_json, root_build_dir), | 2844 rebase_path(invoker.file_list_json, root_build_dir), |
2830 ] | 2845 ] |
2831 } | 2846 } |
2832 } | 2847 } |
2833 } | 2848 } |
OLD | NEW |