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)', | |
546 ], | 545 ], |
547 }, | 546 }, |
548 ], | 547 ], |
549 'conditions': [ | 548 'conditions': [ |
550 ['create_standalone_apk == 1', { | 549 ['create_standalone_apk == 1', { |
551 'actions': [ | 550 'actions': [ |
552 { | 551 { |
553 'action_name': 'create standalone APK', | 552 'action_name': 'create standalone APK', |
554 'variables': { | 553 'variables': { |
555 'inputs': [ | 554 'inputs': [ |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 ], | 682 ], |
684 'outputs': [ | 683 'outputs': [ |
685 '<(apk_install_record)', | 684 '<(apk_install_record)', |
686 ], | 685 ], |
687 'action': [ | 686 'action': [ |
688 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 687 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
689 '--build-device-configuration=<(build_device_config_path)', | 688 '--build-device-configuration=<(build_device_config_path)', |
690 '--install-record=<(apk_install_record)', | 689 '--install-record=<(apk_install_record)', |
691 '--configuration-name=<(CONFIGURATION_NAME)', | 690 '--configuration-name=<(CONFIGURATION_NAME)', |
692 '--android-sdk-tools', '<(android_sdk_tools)', | 691 '--android-sdk-tools', '<(android_sdk_tools)', |
693 '--output-directory', '<(PRODUCT_DIR)', | |
694 ], | 692 ], |
695 'conditions': [ | 693 'conditions': [ |
696 ['create_abi_split == 1', { | 694 ['create_abi_split == 1', { |
697 'inputs': [ | 695 'inputs': [ |
698 '<(final_apk_path)', | 696 '<(final_apk_path)', |
699 ], | 697 ], |
700 'action': [ | 698 'action': [ |
701 '--apk-path=<(final_apk_path)', | 699 '--apk-path=<(final_apk_path)', |
702 '--split-apk-path=<(incomplete_apk_path)', | 700 '--split-apk-path=<(incomplete_apk_path)', |
703 ], | 701 ], |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1161 'native_libs_dir': '<(apk_package_native_libs_dir)', |
1164 }, { | 1162 }, { |
1165 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1163 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
1166 }], | 1164 }], |
1167 ], | 1165 ], |
1168 }, | 1166 }, |
1169 'includes': ['android/apkbuilder_action.gypi'], | 1167 'includes': ['android/apkbuilder_action.gypi'], |
1170 }, | 1168 }, |
1171 ], | 1169 ], |
1172 } | 1170 } |
OLD | NEW |