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("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 import("//third_party/android_platform/config.gni") | 9 import("//third_party/android_platform/config.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1179 # (and so not through builtin targets like 'action', 'group', etc). | 1179 # (and so not through builtin targets like 'action', 'group', etc). |
1180 # java_files: List of .java files to include in the apk. | 1180 # java_files: List of .java files to include in the apk. |
1181 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars | 1181 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars |
1182 # will be added to java_files and be included in this apk. | 1182 # will be added to java_files and be included in this apk. |
1183 # apk_name: Name for final apk. | 1183 # apk_name: Name for final apk. |
1184 # final_apk_path: Path to final built apk. Default is | 1184 # final_apk_path: Path to final built apk. Default is |
1185 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. | 1185 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. |
1186 # native_libs: List paths of native libraries to include in this apk. If these | 1186 # native_libs: List paths of native libraries to include in this apk. If these |
1187 # libraries depend on other shared_library targets, those dependencies will | 1187 # libraries depend on other shared_library targets, those dependencies will |
1188 # also be included in the apk. | 1188 # also be included in the apk. |
1189 # native_lib_placeholders: List of placeholder filenames to add to the apk | |
1190 # (optional). | |
1189 # apk_under_test: For an instrumentation test apk, this is the target of the | 1191 # apk_under_test: For an instrumentation test apk, this is the target of the |
1190 # tested apk. | 1192 # tested apk. |
1191 # include_all_resources - If true include all resource IDs in all generated | 1193 # include_all_resources - If true include all resource IDs in all generated |
1192 # R.java files. | 1194 # R.java files. |
1193 # testonly: Marks this target as "test-only". | 1195 # testonly: Marks this target as "test-only". |
1194 # | 1196 # |
1195 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in | 1197 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in |
1196 # this directory will be included in the library. This is only supported to | 1198 # this directory will be included in the library. This is only supported to |
1197 # ease the gyp->gn conversion and will be removed in the future. | 1199 # ease the gyp->gn conversion and will be removed in the future. |
1198 # | 1200 # |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1648 | 1650 |
1649 # This target generates the input file _all_resources_zip_path. | 1651 # This target generates the input file _all_resources_zip_path. |
1650 deps += _android_manifest_deps + [ | 1652 deps += _android_manifest_deps + [ |
1651 ":$build_config_target", | 1653 ":$build_config_target", |
1652 ":$process_resources_target", | 1654 ":$process_resources_target", |
1653 ":$final_dex_target_name", | 1655 ":$final_dex_target_name", |
1654 ] | 1656 ] |
1655 | 1657 |
1656 if (_native_libs != [] && !_create_abi_split) { | 1658 if (_native_libs != [] && !_create_abi_split) { |
1657 native_libs_dir = _native_libs_dir | 1659 native_libs_dir = _native_libs_dir |
1660 | |
1661 # Placeholders are not necessary for L+, so add them here, but don't | |
1662 # bother to create them in the case of splits. | |
pkotwicz
2015/11/16 19:28:22
Can you mention the relevant bug in the comment? I
agrieve
2015/11/16 19:45:15
Done.
| |
1663 forward_variables_from(invoker, [ "native_lib_placeholders" ]) | |
pkotwicz
2015/11/16 19:28:22
Nit: new line
agrieve
2015/11/16 19:45:15
Done.
| |
1658 deps += [ ":$_prepare_native_target_name" ] | 1664 deps += [ ":$_prepare_native_target_name" ] |
1659 } | 1665 } |
1660 } | 1666 } |
1661 | 1667 |
1662 if (_native_libs != [] && _create_abi_split) { | 1668 if (_native_libs != [] && _create_abi_split) { |
1663 _manifest_rule = "${_template_name}__split_manifest_abi_${android_app_abi}" | 1669 _manifest_rule = "${_template_name}__split_manifest_abi_${android_app_abi}" |
1664 generate_split_manifest(_manifest_rule) { | 1670 generate_split_manifest(_manifest_rule) { |
1665 main_manifest = _android_manifest | 1671 main_manifest = _android_manifest |
1666 out_manifest = | 1672 out_manifest = |
1667 "$gen_dir/split-manifests/${android_app_abi}/AndroidManifest.xml" | 1673 "$gen_dir/split-manifests/${android_app_abi}/AndroidManifest.xml" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2150 } | 2156 } |
2151 | 2157 |
2152 android_library(target_name) { | 2158 android_library(target_name) { |
2153 java_files = [] | 2159 java_files = [] |
2154 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2160 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
2155 deps = [ | 2161 deps = [ |
2156 "//third_party/android_protobuf:protobuf_nano_javalib", | 2162 "//third_party/android_protobuf:protobuf_nano_javalib", |
2157 ] | 2163 ] |
2158 } | 2164 } |
2159 } | 2165 } |
OLD | NEW |