| 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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 _native_lib_version_name = "" | 1295 _native_lib_version_name = "" |
| 1296 if (defined(invoker.native_lib_version_name)) { | 1296 if (defined(invoker.native_lib_version_name)) { |
| 1297 _native_lib_version_name = invoker.native_lib_version_name | 1297 _native_lib_version_name = invoker.native_lib_version_name |
| 1298 } | 1298 } |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 _android_manifest = invoker.android_manifest | 1301 _android_manifest = invoker.android_manifest |
| 1302 _rebased_build_config = rebase_path(_build_config, root_build_dir) | 1302 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
| 1303 _create_abi_split = | 1303 _create_abi_split = |
| 1304 defined(invoker.create_abi_split) && invoker.create_abi_split | 1304 defined(invoker.create_abi_split) && invoker.create_abi_split |
| 1305 _create_density_splits = |
| 1306 defined(invoker.create_density_splits) && invoker.create_density_splits |
| 1305 | 1307 |
| 1306 # Help GN understand that _create_abi_split is not unused (bug in GN). | 1308 # Help GN understand that _create_abi_split is not unused (bug in GN). |
| 1307 assert(_create_abi_split || true) | 1309 assert(_create_abi_split || true) |
| 1308 | 1310 |
| 1309 write_build_config("${_template_name}__build_config") { | 1311 write_build_config("${_template_name}__build_config") { |
| 1310 type = "android_apk" | 1312 type = "android_apk" |
| 1311 dex_path = final_dex_path | 1313 dex_path = final_dex_path |
| 1312 resources_zip = resources_zip_path | 1314 resources_zip = resources_zip_path |
| 1313 build_config = _build_config | 1315 build_config = _build_config |
| 1314 android_manifest = _android_manifest | 1316 android_manifest = _android_manifest |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 } | 1488 } |
| 1487 } | 1489 } |
| 1488 | 1490 |
| 1489 final_deps += [ ":${_template_name}__create" ] | 1491 final_deps += [ ":${_template_name}__create" ] |
| 1490 create_apk("${_template_name}__create") { | 1492 create_apk("${_template_name}__create") { |
| 1491 apk_path = _final_apk_path | 1493 apk_path = _final_apk_path |
| 1492 android_manifest = _android_manifest | 1494 android_manifest = _android_manifest |
| 1493 resources_zip = _all_resources_zip_path | 1495 resources_zip = _all_resources_zip_path |
| 1494 dex_path = final_dex_path | 1496 dex_path = final_dex_path |
| 1495 load_library_from_apk = _load_library_from_apk | 1497 load_library_from_apk = _load_library_from_apk |
| 1498 create_density_splits = _create_density_splits |
| 1496 | 1499 |
| 1497 version_code = _version_code | 1500 version_code = _version_code |
| 1498 version_name = _version_name | 1501 version_name = _version_name |
| 1499 | 1502 |
| 1500 keystore_name = _keystore_name | 1503 keystore_name = _keystore_name |
| 1501 keystore_path = _keystore_path | 1504 keystore_path = _keystore_path |
| 1502 keystore_password = _keystore_password | 1505 keystore_password = _keystore_password |
| 1503 | 1506 |
| 1504 deps = [] | 1507 deps = [] |
| 1505 if (defined(invoker.asset_location)) { | 1508 if (defined(invoker.asset_location)) { |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1863 template("uiautomator_test") { | 1866 template("uiautomator_test") { |
| 1864 set_sources_assignment_filter([]) | 1867 set_sources_assignment_filter([]) |
| 1865 if (defined(invoker.testonly)) { | 1868 if (defined(invoker.testonly)) { |
| 1866 testonly = invoker.testonly | 1869 testonly = invoker.testonly |
| 1867 } | 1870 } |
| 1868 assert(target_name != "") | 1871 assert(target_name != "") |
| 1869 assert(invoker.deps != [] || true) | 1872 assert(invoker.deps != [] || true) |
| 1870 group(target_name) { | 1873 group(target_name) { |
| 1871 } | 1874 } |
| 1872 } | 1875 } |
| OLD | NEW |