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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
10 | 10 |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 # android_manifest: Path to AndroidManifest.xml. | 1219 # android_manifest: Path to AndroidManifest.xml. |
1220 # data_deps: List of dependencies needed at runtime. These will be built but | 1220 # data_deps: List of dependencies needed at runtime. These will be built but |
1221 # won't change the generated .apk in any way (in fact they may be built | 1221 # won't change the generated .apk in any way (in fact they may be built |
1222 # after the .apk is). | 1222 # after the .apk is). |
1223 # deps: List of dependencies. All Android java resources and libraries in the | 1223 # deps: List of dependencies. All Android java resources and libraries in the |
1224 # "transitive closure" of these dependencies will be included in the apk. | 1224 # "transitive closure" of these dependencies will be included in the apk. |
1225 # Note: this "transitive closure" actually only includes such targets if | 1225 # Note: this "transitive closure" actually only includes such targets if |
1226 # they are depended on through android_library or android_resources targets | 1226 # they are depended on through android_library or android_resources targets |
1227 # (and so not through builtin targets like 'action', 'group', etc). | 1227 # (and so not through builtin targets like 'action', 'group', etc). |
1228 # java_files: List of .java files to include in the apk. | 1228 # java_files: List of .java files to include in the apk. |
| 1229 # extensions_to_not_compress: List of extensions (e.g. "dat,bin") to leave |
| 1230 # uncompressed within the .apk (e.g. required to mmap). |
1229 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars | 1231 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars |
1230 # will be added to java_files and be included in this apk. | 1232 # will be added to java_files and be included in this apk. |
1231 # apk_name: Name for final apk. | 1233 # apk_name: Name for final apk. |
1232 # final_apk_path: Path to final built apk. Default is | 1234 # final_apk_path: Path to final built apk. Default is |
1233 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. | 1235 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. |
1234 # native_libs: List paths of native libraries to include in this apk. If these | 1236 # native_libs: List paths of native libraries to include in this apk. If these |
1235 # libraries depend on other shared_library targets, those dependencies will | 1237 # libraries depend on other shared_library targets, those dependencies will |
1236 # also be included in the apk. | 1238 # also be included in the apk. |
1237 # apk_under_test: For an instrumentation test apk, this is the target of the | 1239 # apk_under_test: For an instrumentation test apk, this is the target of the |
1238 # tested apk. | 1240 # tested apk. |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 } | 1607 } |
1606 | 1608 |
1607 final_deps += [ ":${_template_name}__create" ] | 1609 final_deps += [ ":${_template_name}__create" ] |
1608 create_apk("${_template_name}__create") { | 1610 create_apk("${_template_name}__create") { |
1609 apk_path = _final_apk_path | 1611 apk_path = _final_apk_path |
1610 android_manifest = _android_manifest | 1612 android_manifest = _android_manifest |
1611 resources_zip = _all_resources_zip_path | 1613 resources_zip = _all_resources_zip_path |
1612 dex_path = final_dex_path | 1614 dex_path = final_dex_path |
1613 load_library_from_apk = _load_library_from_apk | 1615 load_library_from_apk = _load_library_from_apk |
1614 create_density_splits = _create_density_splits | 1616 create_density_splits = _create_density_splits |
| 1617 if (defined(invoker.extensions_to_not_compress)) { |
| 1618 extensions_to_not_compress = invoker.extensions_to_not_compress |
| 1619 } else { |
| 1620 # Allow icu data to be loaded directly from the .apk. |
| 1621 extensions_to_not_compress = "dat" |
| 1622 } |
1615 | 1623 |
1616 version_code = _version_code | 1624 version_code = _version_code |
1617 version_name = _version_name | 1625 version_name = _version_name |
1618 | 1626 |
1619 keystore_name = _keystore_name | 1627 keystore_name = _keystore_name |
1620 keystore_path = _keystore_path | 1628 keystore_path = _keystore_path |
1621 keystore_password = _keystore_password | 1629 keystore_password = _keystore_password |
1622 | 1630 |
1623 # This target generates the input file _all_resources_zip_path. | 1631 # This target generates the input file _all_resources_zip_path. |
1624 deps = [ | 1632 deps = [ |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 template("uiautomator_test") { | 2123 template("uiautomator_test") { |
2116 set_sources_assignment_filter([]) | 2124 set_sources_assignment_filter([]) |
2117 if (defined(invoker.testonly)) { | 2125 if (defined(invoker.testonly)) { |
2118 testonly = invoker.testonly | 2126 testonly = invoker.testonly |
2119 } | 2127 } |
2120 assert(target_name != "") | 2128 assert(target_name != "") |
2121 assert(invoker.deps != [] || true) | 2129 assert(invoker.deps != [] || true) |
2122 group(target_name) { | 2130 group(target_name) { |
2123 } | 2131 } |
2124 } | 2132 } |
OLD | NEW |