| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 'action': [ | 535 'action': [ |
| 536 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', | 536 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', |
| 537 '--build-device-configuration=<(build_device_config_path)', | 537 '--build-device-configuration=<(build_device_config_path)', |
| 538 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', | 538 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', |
| 539 '--script-host-path=<(symlink_script_host_path)', | 539 '--script-host-path=<(symlink_script_host_path)', |
| 540 '--script-device-path=<(symlink_script_device_path)', | 540 '--script-device-path=<(symlink_script_device_path)', |
| 541 '--target-dir=<(device_library_dir)', | 541 '--target-dir=<(device_library_dir)', |
| 542 '--apk=<(incomplete_apk_path)', | 542 '--apk=<(incomplete_apk_path)', |
| 543 '--stamp=<(link_stamp)', | 543 '--stamp=<(link_stamp)', |
| 544 '--configuration-name=<(CONFIGURATION_NAME)', | 544 '--configuration-name=<(CONFIGURATION_NAME)', |
| 545 '--output-directory=<(PRODUCT_DIR)', |
| 545 ], | 546 ], |
| 546 }, | 547 }, |
| 547 ], | 548 ], |
| 548 'conditions': [ | 549 'conditions': [ |
| 549 ['create_standalone_apk == 1', { | 550 ['create_standalone_apk == 1', { |
| 550 'actions': [ | 551 'actions': [ |
| 551 { | 552 { |
| 552 'action_name': 'create standalone APK', | 553 'action_name': 'create standalone APK', |
| 553 'variables': { | 554 'variables': { |
| 554 'inputs': [ | 555 'inputs': [ |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 ], | 683 ], |
| 683 'outputs': [ | 684 'outputs': [ |
| 684 '<(apk_install_record)', | 685 '<(apk_install_record)', |
| 685 ], | 686 ], |
| 686 'action': [ | 687 'action': [ |
| 687 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 688 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
| 688 '--build-device-configuration=<(build_device_config_path)', | 689 '--build-device-configuration=<(build_device_config_path)', |
| 689 '--install-record=<(apk_install_record)', | 690 '--install-record=<(apk_install_record)', |
| 690 '--configuration-name=<(CONFIGURATION_NAME)', | 691 '--configuration-name=<(CONFIGURATION_NAME)', |
| 691 '--android-sdk-tools', '<(android_sdk_tools)', | 692 '--android-sdk-tools', '<(android_sdk_tools)', |
| 693 '--output-directory', '<(PRODUCT_DIR)', |
| 692 ], | 694 ], |
| 693 'conditions': [ | 695 'conditions': [ |
| 694 ['create_abi_split == 1', { | 696 ['create_abi_split == 1', { |
| 695 'inputs': [ | 697 'inputs': [ |
| 696 '<(final_apk_path)', | 698 '<(final_apk_path)', |
| 697 ], | 699 ], |
| 698 'action': [ | 700 'action': [ |
| 699 '--apk-path=<(final_apk_path)', | 701 '--apk-path=<(final_apk_path)', |
| 700 '--split-apk-path=<(incomplete_apk_path)', | 702 '--split-apk-path=<(incomplete_apk_path)', |
| 701 ], | 703 ], |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1163 'native_libs_dir': '<(apk_package_native_libs_dir)', |
| 1162 }, { | 1164 }, { |
| 1163 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1165 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
| 1164 }], | 1166 }], |
| 1165 ], | 1167 ], |
| 1166 }, | 1168 }, |
| 1167 'includes': ['android/apkbuilder_action.gypi'], | 1169 'includes': ['android/apkbuilder_action.gypi'], |
| 1168 }, | 1170 }, |
| 1169 ], | 1171 ], |
| 1170 } | 1172 } |
| OLD | NEW |