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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 'actions': [ | 325 'actions': [ |
326 { | 326 { |
327 'action_name': 'apk_install_<(_target_name)', | 327 'action_name': 'apk_install_<(_target_name)', |
328 'message': 'Installing <(apk_name).apk', | 328 'message': 'Installing <(apk_name).apk', |
329 'inputs': [ | 329 'inputs': [ |
330 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 330 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
331 '<(DEPTH)/build/android/gyp/apk_install.py', | 331 '<(DEPTH)/build/android/gyp/apk_install.py', |
332 '<(final_apk_path)', | 332 '<(final_apk_path)', |
333 ], | 333 ], |
334 'outputs': [ | 334 'outputs': [ |
335 '<(apk_install_stamp)' | 335 '<(apk_install_stamp)', |
336 # If a user switches the connected device, the APK may need to be | 336 # If a user switches the connected device, the APK may need to be |
337 # installed even if there have been no changes. To ensure that the | 337 # installed even if there have been no changes. To ensure that the |
338 # APK on the device is always up-to-date, this step should always | 338 # APK on the device is always up-to-date, this step should always |
339 # be triggered. | 339 # be triggered. |
340 '<(apk_install_stamp).fake', | 340 '<(apk_install_stamp).fake', |
341 ], | 341 ], |
342 'action': [ | 342 'action': [ |
343 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 343 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
344 '--android-sdk-tools=<(android_sdk_tools)', | 344 '--android-sdk-tools=<(android_sdk_tools)', |
345 '--apk-path=<(final_apk_path)', | 345 '--apk-path=<(final_apk_path)', |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 '--unsigned-apk-path=<(unsigned_apk_path)', | 650 '--unsigned-apk-path=<(unsigned_apk_path)', |
651 '--final-apk-path=<(final_apk_path)', | 651 '--final-apk-path=<(final_apk_path)', |
652 '--keystore-path=<(keystore_path)', | 652 '--keystore-path=<(keystore_path)', |
653 | 653 |
654 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 654 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
655 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 655 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
656 ], | 656 ], |
657 }, | 657 }, |
658 ], | 658 ], |
659 } | 659 } |
OLD | NEW |