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/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
8 | 8 |
9 assert(is_android) | 9 assert(is_android) |
10 | 10 |
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 _apk_under_test_build_config = | 1865 _apk_under_test_build_config = |
1866 get_label_info(invoker.apk_under_test, "target_gen_dir") + "/" + | 1866 get_label_info(invoker.apk_under_test, "target_gen_dir") + "/" + |
1867 get_label_info(invoker.apk_under_test, "name") + ".build_config" | 1867 get_label_info(invoker.apk_under_test, "name") + ".build_config" |
1868 _rebased_apk_under_test_build_config = | 1868 _rebased_apk_under_test_build_config = |
1869 rebase_path(_apk_under_test_build_config, root_build_dir) | 1869 rebase_path(_apk_under_test_build_config, root_build_dir) |
1870 args += [ "--tested-apk-info=@FileArg($_rebased_apk_under_test_build_c
onfig:deps_info:proguard_info)" ] | 1870 args += [ "--tested-apk-info=@FileArg($_rebased_apk_under_test_build_c
onfig:deps_info:proguard_info)" ] |
1871 } | 1871 } |
1872 } | 1872 } |
1873 _dex_sources = [ _proguard_output_jar_path ] | 1873 _dex_sources = [ _proguard_output_jar_path ] |
1874 _dex_deps = [ ":$_proguard_target" ] | 1874 _dex_deps = [ ":$_proguard_target" ] |
| 1875 |
| 1876 _copy_proguard_mapping_target = "${_template_name}__copy_proguard_mapping" |
| 1877 copy(_copy_proguard_mapping_target) { |
| 1878 sources = [ |
| 1879 "$_proguard_output_jar_path.mapping", |
| 1880 ] |
| 1881 outputs = [ |
| 1882 "$_final_apk_path.mapping", |
| 1883 ] |
| 1884 deps = [ |
| 1885 ":$_proguard_target", |
| 1886 ] |
| 1887 } |
1875 } else { | 1888 } else { |
1876 if (enable_multidex) { | 1889 if (enable_multidex) { |
1877 _dex_sources = [ _jar_path ] | 1890 _dex_sources = [ _jar_path ] |
1878 } else { | 1891 } else { |
1879 _dex_sources = [ _lib_dex_path ] | 1892 _dex_sources = [ _lib_dex_path ] |
1880 } | 1893 } |
1881 _dex_deps = [ ":$java_target" ] | 1894 _dex_deps = [ ":$java_target" ] |
1882 } | 1895 } |
1883 | 1896 |
1884 dex("$final_dex_target_name") { | 1897 dex("$final_dex_target_name") { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 } | 2165 } |
2153 } | 2166 } |
2154 | 2167 |
2155 group(target_name) { | 2168 group(target_name) { |
2156 forward_variables_from(invoker, | 2169 forward_variables_from(invoker, |
2157 [ | 2170 [ |
2158 "data", | 2171 "data", |
2159 "data_deps", | 2172 "data_deps", |
2160 ]) | 2173 ]) |
2161 public_deps = _final_deps | 2174 public_deps = _final_deps |
| 2175 |
| 2176 # Make the proguard .mapping file easy to find by putting it beside the .a
pk. |
| 2177 if (_proguard_enabled) { |
| 2178 deps = [ |
| 2179 ":$_copy_proguard_mapping_target", |
| 2180 ] |
| 2181 } |
2162 } | 2182 } |
2163 group("${target_name}_incremental") { | 2183 group("${target_name}_incremental") { |
2164 forward_variables_from(invoker, | 2184 forward_variables_from(invoker, |
2165 [ | 2185 [ |
2166 "data", | 2186 "data", |
2167 "data_deps", | 2187 "data_deps", |
2168 ]) | 2188 ]) |
2169 if (!defined(data_deps)) { | 2189 if (!defined(data_deps)) { |
2170 data_deps = [] | 2190 data_deps = [] |
2171 } | 2191 } |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 android_library(target_name) { | 2553 android_library(target_name) { |
2534 chromium_code = false | 2554 chromium_code = false |
2535 java_files = [] | 2555 java_files = [] |
2536 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2556 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
2537 deps = [ | 2557 deps = [ |
2538 "//third_party/android_protobuf:protobuf_nano_javalib", | 2558 "//third_party/android_protobuf:protobuf_nano_javalib", |
2539 ] | 2559 ] |
2540 } | 2560 } |
2541 } | 2561 } |
2542 } | 2562 } |
OLD | NEW |