Chromium Code Reviews| 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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1444 ] | 1444 ] |
| 1445 output = final_dex_path | 1445 output = final_dex_path |
| 1446 _dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" | 1446 _dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" |
| 1447 args = [ | 1447 args = [ |
| 1448 "--inputs=@FileArg($_dex_arg_key)", | 1448 "--inputs=@FileArg($_dex_arg_key)", |
| 1449 _rebased_lib_dex_path, | 1449 _rebased_lib_dex_path, |
| 1450 ] | 1450 ] |
| 1451 } | 1451 } |
| 1452 | 1452 |
| 1453 if (_native_libs != []) { | 1453 if (_native_libs != []) { |
| 1454 action("${_template_name}__prepare_native") { | 1454 _prepare_native_target_name = "${_template_name}__prepare_native" |
| 1455 action(_prepare_native_target_name) { | |
| 1455 forward_variables_from(invoker, | 1456 forward_variables_from(invoker, |
| 1456 [ | 1457 [ |
| 1457 "data_deps", | 1458 "data_deps", |
| 1458 "public_deps", | 1459 "public_deps", |
| 1459 ]) | 1460 ]) |
| 1460 script = "//build/android/gyp/pack_relocations.py" | 1461 script = "//build/android/gyp/pack_relocations.py" |
| 1461 packed_libraries_dir = "$_native_libs_dir/$android_app_abi" | 1462 packed_libraries_dir = "$_native_libs_dir/$android_app_abi" |
| 1462 depfile = "$target_gen_dir/$target_name.d" | 1463 depfile = "$target_gen_dir/$target_name.d" |
| 1463 outputs = [ | 1464 outputs = [ |
| 1464 depfile, | 1465 depfile, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1532 | 1533 |
| 1533 keystore_name = _keystore_name | 1534 keystore_name = _keystore_name |
| 1534 keystore_path = _keystore_path | 1535 keystore_path = _keystore_path |
| 1535 keystore_password = _keystore_password | 1536 keystore_password = _keystore_password |
| 1536 | 1537 |
| 1537 # This target generates the input file _all_resources_zip_path. | 1538 # This target generates the input file _all_resources_zip_path. |
| 1538 deps = _android_manifest_deps + [ | 1539 deps = _android_manifest_deps + [ |
| 1539 ":$process_resources_target", | 1540 ":$process_resources_target", |
| 1540 ":$final_dex_target_name", | 1541 ":$final_dex_target_name", |
| 1541 ] | 1542 ] |
| 1542 incremental_deps = _android_manifest_deps + [ ":$process_resources_target" ] | 1543 incremental_deps = _android_manifest_deps + [ |
| 1544 ":$java_target", | |
|
pkotwicz
2015/09/24 21:31:53
I wonder whether we should add $java_target to dep
agrieve
2015/09/24 22:22:57
We shouldn't add it to deps, because it's not a di
| |
| 1545 ":$process_resources_target", | |
| 1546 ] | |
| 1543 if (defined(invoker.deps)) { | 1547 if (defined(invoker.deps)) { |
| 1544 deps += invoker.deps | 1548 deps += invoker.deps |
| 1545 incremental_deps += invoker.deps | 1549 incremental_deps += invoker.deps |
| 1546 } | 1550 } |
| 1547 | 1551 |
| 1548 if (defined(invoker.asset_location)) { | 1552 if (defined(invoker.asset_location)) { |
| 1549 asset_location = invoker.asset_location | 1553 asset_location = invoker.asset_location |
| 1550 | 1554 |
| 1551 # We don't know the exact dependencies that create the assets in | 1555 # We don't know the exact dependencies that create the assets in |
| 1552 # |asset_location|; we depend on all caller deps until a better solution | 1556 # |asset_location|; we depend on all caller deps until a better solution |
| 1553 # is figured out (http://crbug.com/433330). | 1557 # is figured out (http://crbug.com/433330). |
| 1554 if (defined(invoker.deps)) { | 1558 if (defined(invoker.deps)) { |
| 1555 deps += invoker.deps | 1559 deps += invoker.deps |
|
pkotwicz
2015/09/24 21:31:53
This is a no-op?
agrieve
2015/09/24 22:22:57
hmm, yes it is! Removed.
| |
| 1556 } | 1560 } |
| 1557 } | 1561 } |
| 1558 | 1562 |
| 1559 if (_native_libs != [] && !_create_abi_split) { | 1563 if (_native_libs != [] && !_create_abi_split) { |
| 1560 native_libs_dir = _native_libs_dir | 1564 native_libs_dir = _native_libs_dir |
| 1561 deps += [ ":${_template_name}__prepare_native" ] | 1565 deps += [ ":$_prepare_native_target_name" ] |
| 1566 incremental_deps += [ ":$_prepare_native_target_name" ] | |
| 1562 } | 1567 } |
| 1563 } | 1568 } |
| 1564 | 1569 |
| 1565 if (_native_libs != [] && _create_abi_split) { | 1570 if (_native_libs != [] && _create_abi_split) { |
| 1566 _manifest_rule = "${_template_name}__split_manifest_abi_${android_app_abi}" | 1571 _manifest_rule = "${_template_name}__split_manifest_abi_${android_app_abi}" |
| 1567 generate_split_manifest(_manifest_rule) { | 1572 generate_split_manifest(_manifest_rule) { |
| 1568 main_manifest = _android_manifest | 1573 main_manifest = _android_manifest |
| 1569 out_manifest = | 1574 out_manifest = |
| 1570 "$gen_dir/split-manifests/${android_app_abi}/AndroidManifest.xml" | 1575 "$gen_dir/split-manifests/${android_app_abi}/AndroidManifest.xml" |
| 1571 split_name = "abi_${android_app_abi}" | 1576 split_name = "abi_${android_app_abi}" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 1587 | 1592 |
| 1588 version_code = _version_code | 1593 version_code = _version_code |
| 1589 version_name = _version_name | 1594 version_name = _version_name |
| 1590 | 1595 |
| 1591 keystore_name = _keystore_name | 1596 keystore_name = _keystore_name |
| 1592 keystore_path = _keystore_path | 1597 keystore_path = _keystore_path |
| 1593 keystore_password = _keystore_password | 1598 keystore_password = _keystore_password |
| 1594 | 1599 |
| 1595 native_libs_dir = _native_libs_dir | 1600 native_libs_dir = _native_libs_dir |
| 1596 deps = [ | 1601 deps = [ |
| 1597 ":${_template_name}__prepare_native", | 1602 ":${_prepare_native_target_name}", |
| 1598 ":${_manifest_rule}", | 1603 ":${_manifest_rule}", |
| 1599 ] | 1604 ] |
| 1600 incremental_deps = deps | 1605 incremental_deps = deps |
| 1601 } | 1606 } |
| 1602 } | 1607 } |
| 1603 | 1608 |
| 1604 _create_incremental_script_rule_name = "${_template_name}__incremental_script" | 1609 _create_incremental_script_rule_name = "${_template_name}__incremental_script" |
| 1605 _incremental_final_deps += [ ":${_create_incremental_script_rule_name}" ] | 1610 _incremental_final_deps += [ ":${_create_incremental_script_rule_name}" ] |
| 1606 action(_create_incremental_script_rule_name) { | 1611 action(_create_incremental_script_rule_name) { |
| 1607 script = "//build/android/incremental_install/create_install_script.py" | 1612 script = "//build/android/incremental_install/create_install_script.py" |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2033 | 2038 |
| 2034 # TODO(GYP): implement this. | 2039 # TODO(GYP): implement this. |
| 2035 template("uiautomator_test") { | 2040 template("uiautomator_test") { |
| 2036 set_sources_assignment_filter([]) | 2041 set_sources_assignment_filter([]) |
| 2037 forward_variables_from(invoker, [ "testonly" ]) | 2042 forward_variables_from(invoker, [ "testonly" ]) |
| 2038 assert(target_name != "") | 2043 assert(target_name != "") |
| 2039 assert(invoker.deps != [] || true) | 2044 assert(invoker.deps != [] || true) |
| 2040 group(target_name) { | 2045 group(target_name) { |
| 2041 } | 2046 } |
| 2042 } | 2047 } |
| OLD | NEW |