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