| 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/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 # include_all_resources - If true include all resource IDs in all generated | 1263 # include_all_resources - If true include all resource IDs in all generated |
| 1264 # R.java files. | 1264 # R.java files. |
| 1265 # testonly: Marks this target as "test-only". | 1265 # testonly: Marks this target as "test-only". |
| 1266 # write_asset_list: Adds an extra file to the assets, which contains a list of | 1266 # write_asset_list: Adds an extra file to the assets, which contains a list of |
| 1267 # all other asset files. | 1267 # all other asset files. |
| 1268 # alternative_locale_resource_dep: The locale resource target which overrides | 1268 # alternative_locale_resource_dep: The locale resource target which overrides |
| 1269 # any exsting locale resources in dep graph. | 1269 # any exsting locale resources in dep graph. |
| 1270 # requires_sdk_api_level_23: If defined and true, the apk is intended for | 1270 # requires_sdk_api_level_23: If defined and true, the apk is intended for |
| 1271 # installation only on Android M or later. In these releases the system | 1271 # installation only on Android M or later. In these releases the system |
| 1272 # linker does relocation unpacking, so we can enable it unconditionally. | 1272 # linker does relocation unpacking, so we can enable it unconditionally. |
| 1273 # secondary_native_libs: the path of native libraries for secondary app abi. |
| 1273 # | 1274 # |
| 1274 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in | 1275 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in |
| 1275 # this directory will be included in the library. This is only supported to | 1276 # this directory will be included in the library. This is only supported to |
| 1276 # ease the gyp->gn conversion and will be removed in the future. | 1277 # ease the gyp->gn conversion and will be removed in the future. |
| 1277 # | 1278 # |
| 1278 # Example | 1279 # Example |
| 1279 # android_apk("foo_apk") { | 1280 # android_apk("foo_apk") { |
| 1280 # android_manifest = "AndroidManifest.xml" | 1281 # android_manifest = "AndroidManifest.xml" |
| 1281 # java_files = [ | 1282 # java_files = [ |
| 1282 # "android/org/chromium/foo/FooApplication.java", | 1283 # "android/org/chromium/foo/FooApplication.java", |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 forward_variables_from(invoker, | 1768 forward_variables_from(invoker, |
| 1768 [ | 1769 [ |
| 1769 "alternative_android_sdk_jar", | 1770 "alternative_android_sdk_jar", |
| 1770 "android_aapt_path", | 1771 "android_aapt_path", |
| 1771 "app_as_shared_lib", | 1772 "app_as_shared_lib", |
| 1772 "deps", | 1773 "deps", |
| 1773 "extensions_to_not_compress", | 1774 "extensions_to_not_compress", |
| 1774 "language_splits", | 1775 "language_splits", |
| 1775 "page_align_shared_libraries", | 1776 "page_align_shared_libraries", |
| 1776 "public_deps", | 1777 "public_deps", |
| 1778 "secondary_native_libs", |
| 1777 "shared_resources", | 1779 "shared_resources", |
| 1778 "uncompress_shared_libraries", | 1780 "uncompress_shared_libraries", |
| 1779 "write_asset_list", | 1781 "write_asset_list", |
| 1780 ]) | 1782 ]) |
| 1781 apk_path = _final_apk_path | 1783 apk_path = _final_apk_path |
| 1782 android_manifest = _android_manifest | 1784 android_manifest = _android_manifest |
| 1783 assets_build_config = _build_config | 1785 assets_build_config = _build_config |
| 1784 resources_zip = _all_resources_zip_path | 1786 resources_zip = _all_resources_zip_path |
| 1785 dex_path = final_dex_path | 1787 dex_path = final_dex_path |
| 1786 load_library_from_apk = _load_library_from_apk | 1788 load_library_from_apk = _load_library_from_apk |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 "--target", | 2426 "--target", |
| 2425 rebase_path(invoker.target, root_build_dir), | 2427 rebase_path(invoker.target, root_build_dir), |
| 2426 "--output-directory", | 2428 "--output-directory", |
| 2427 rebase_path(root_out_dir, root_build_dir), | 2429 rebase_path(root_out_dir, root_build_dir), |
| 2428 ] | 2430 ] |
| 2429 if (defined(invoker.flag_name)) { | 2431 if (defined(invoker.flag_name)) { |
| 2430 args += [ "--flag-name=${invoker.flag_name}" ] | 2432 args += [ "--flag-name=${invoker.flag_name}" ] |
| 2431 } | 2433 } |
| 2432 } | 2434 } |
| 2433 } | 2435 } |
| OLD | NEW |