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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 { | 504 { |
505 'action_name': 'finalize standalone apk', | 505 'action_name': 'finalize standalone apk', |
506 'variables': { | 506 'variables': { |
507 'input_apk_path': '<(unsigned_standalone_apk_path)', | 507 'input_apk_path': '<(unsigned_standalone_apk_path)', |
508 'output_apk_path': '<(final_apk_path)', | 508 'output_apk_path': '<(final_apk_path)', |
509 }, | 509 }, |
510 'includes': [ 'android/finalize_apk_action.gypi'] | 510 'includes': [ 'android/finalize_apk_action.gypi'] |
511 }, | 511 }, |
512 ], | 512 ], |
513 'dependencies': [ | 513 'dependencies': [ |
514 '<(DEPTH)/build/android/rezip.gyp:rezip#host', | |
515 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', | 514 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', |
516 ], | 515 ], |
517 }], | 516 }], |
518 ['gyp_managed_install == 1', { | 517 ['gyp_managed_install == 1', { |
519 'actions': [ | 518 'actions': [ |
520 { | 519 { |
521 'action_name': 'finalize incomplete apk', | 520 'action_name': 'finalize incomplete apk', |
522 'variables': { | 521 'variables': { |
523 'input_apk_path': '<(unsigned_apk_path)', | 522 'input_apk_path': '<(unsigned_apk_path)', |
524 'output_apk_path': '<(incomplete_apk_path)', | 523 'output_apk_path': '<(incomplete_apk_path)', |
(...skipping 15 matching lines...) Expand all Loading... |
540 'action': [ | 539 'action': [ |
541 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 540 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
542 '--apk-path=<(incomplete_apk_path)', | 541 '--apk-path=<(incomplete_apk_path)', |
543 '--build-device-configuration=<(build_device_config_path)', | 542 '--build-device-configuration=<(build_device_config_path)', |
544 '--install-record=<(apk_install_record)', | 543 '--install-record=<(apk_install_record)', |
545 '--configuration-name=<(CONFIGURATION_NAME)', | 544 '--configuration-name=<(CONFIGURATION_NAME)', |
546 ], | 545 ], |
547 }, | 546 }, |
548 ], | 547 ], |
549 'dependencies': [ | 548 'dependencies': [ |
550 '<(DEPTH)/build/android/rezip.gyp:rezip#host', | |
551 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', | 549 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', |
552 ], | 550 ], |
553 }], | 551 }], |
554 ['is_test_apk == 1', { | 552 ['is_test_apk == 1', { |
555 'dependencies': [ | 553 'dependencies': [ |
556 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', | 554 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
557 ] | 555 ] |
558 }], | 556 }], |
559 ], | 557 ], |
560 'dependencies': [ | 558 'dependencies': [ |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 911 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
914 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 912 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
915 | 913 |
916 '-Dbasedir=.', | 914 '-Dbasedir=.', |
917 '-buildfile', | 915 '-buildfile', |
918 '<(DEPTH)/build/android/ant/apk-package.xml', | 916 '<(DEPTH)/build/android/ant/apk-package.xml', |
919 ] | 917 ] |
920 }, | 918 }, |
921 ], | 919 ], |
922 } | 920 } |
OLD | NEW |