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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 'action': [ | 541 'action': [ |
542 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', | 542 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', |
543 '--build-device-configuration=<(build_device_config_path)', | 543 '--build-device-configuration=<(build_device_config_path)', |
544 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', | 544 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', |
545 '--script-host-path=<(symlink_script_host_path)', | 545 '--script-host-path=<(symlink_script_host_path)', |
546 '--script-device-path=<(symlink_script_device_path)', | 546 '--script-device-path=<(symlink_script_device_path)', |
547 '--target-dir=<(device_library_dir)', | 547 '--target-dir=<(device_library_dir)', |
548 '--apk=<(incomplete_apk_path)', | 548 '--apk=<(incomplete_apk_path)', |
549 '--stamp=<(link_stamp)', | 549 '--stamp=<(link_stamp)', |
550 '--configuration-name=<(CONFIGURATION_NAME)', | 550 '--configuration-name=<(CONFIGURATION_NAME)', |
| 551 '--output-directory=<(PRODUCT_DIR)', |
551 ], | 552 ], |
552 }, | 553 }, |
553 ], | 554 ], |
554 'conditions': [ | 555 'conditions': [ |
555 ['create_standalone_apk == 1', { | 556 ['create_standalone_apk == 1', { |
556 'actions': [ | 557 'actions': [ |
557 { | 558 { |
558 'action_name': 'create standalone APK', | 559 'action_name': 'create standalone APK', |
559 'variables': { | 560 'variables': { |
560 'inputs': [ | 561 'inputs': [ |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 ], | 689 ], |
689 'outputs': [ | 690 'outputs': [ |
690 '<(apk_install_record)', | 691 '<(apk_install_record)', |
691 ], | 692 ], |
692 'action': [ | 693 'action': [ |
693 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 694 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
694 '--build-device-configuration=<(build_device_config_path)', | 695 '--build-device-configuration=<(build_device_config_path)', |
695 '--install-record=<(apk_install_record)', | 696 '--install-record=<(apk_install_record)', |
696 '--configuration-name=<(CONFIGURATION_NAME)', | 697 '--configuration-name=<(CONFIGURATION_NAME)', |
697 '--android-sdk-tools', '<(android_sdk_tools)', | 698 '--android-sdk-tools', '<(android_sdk_tools)', |
| 699 '--output-directory', '<(PRODUCT_DIR)', |
698 ], | 700 ], |
699 'conditions': [ | 701 'conditions': [ |
700 ['create_abi_split == 1', { | 702 ['create_abi_split == 1', { |
701 'inputs': [ | 703 'inputs': [ |
702 '<(final_apk_path)', | 704 '<(final_apk_path)', |
703 ], | 705 ], |
704 'action': [ | 706 'action': [ |
705 '--apk-path=<(final_apk_path)', | 707 '--apk-path=<(final_apk_path)', |
706 '--split-apk-path=<(incomplete_apk_path)', | 708 '--split-apk-path=<(incomplete_apk_path)', |
707 ], | 709 ], |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1207 'native_libs_dir': '<(apk_package_native_libs_dir)', |
1206 }, { | 1208 }, { |
1207 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1209 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
1208 }], | 1210 }], |
1209 ], | 1211 ], |
1210 }, | 1212 }, |
1211 'includes': ['android/apkbuilder_action.gypi'], | 1213 'includes': ['android/apkbuilder_action.gypi'], |
1212 }, | 1214 }, |
1213 ], | 1215 ], |
1214 } | 1216 } |
OLD | NEW |