| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 '<(DEPTH)/build/android/gyp/create_device_library_links.py', | 343 '<(DEPTH)/build/android/gyp/create_device_library_links.py', |
| 344 '<(apk_install_record)', | 344 '<(apk_install_record)', |
| 345 '<(build_device_config_path)', | 345 '<(build_device_config_path)', |
| 346 '<(ordered_libraries_file)', | 346 '<(ordered_libraries_file)', |
| 347 ], | 347 ], |
| 348 'outputs': [ | 348 'outputs': [ |
| 349 '<(link_stamp)' | 349 '<(link_stamp)' |
| 350 ], | 350 ], |
| 351 'action': [ | 351 'action': [ |
| 352 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', | 352 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', |
| 353 '--android-sdk-tools=<(android_sdk_tools)', |
| 353 '--build-device-configuration=<(build_device_config_path)', | 354 '--build-device-configuration=<(build_device_config_path)', |
| 354 '--libraries-json=<(ordered_libraries_file)', | 355 '--libraries-json=<(ordered_libraries_file)', |
| 355 '--script-host-path=<(symlink_script_host_path)', | 356 '--script-host-path=<(symlink_script_host_path)', |
| 356 '--script-device-path=<(symlink_script_device_path)', | 357 '--script-device-path=<(symlink_script_device_path)', |
| 357 '--target-dir=<(device_library_dir)', | 358 '--target-dir=<(device_library_dir)', |
| 358 '--apk=<(incomplete_apk_path)', | 359 '--apk=<(incomplete_apk_path)', |
| 359 '--stamp=<(link_stamp)', | 360 '--stamp=<(link_stamp)', |
| 360 '--configuration-name=<(CONFIGURATION_NAME)', | 361 '--configuration-name=<(CONFIGURATION_NAME)', |
| 361 ], | 362 ], |
| 362 }, | 363 }, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 442 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 442 '<(DEPTH)/build/android/gyp/apk_install.py', | 443 '<(DEPTH)/build/android/gyp/apk_install.py', |
| 443 '<(build_device_config_path)', | 444 '<(build_device_config_path)', |
| 444 '<(incomplete_apk_path)', | 445 '<(incomplete_apk_path)', |
| 445 ], | 446 ], |
| 446 'outputs': [ | 447 'outputs': [ |
| 447 '<(apk_install_record)', | 448 '<(apk_install_record)', |
| 448 ], | 449 ], |
| 449 'action': [ | 450 'action': [ |
| 450 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 451 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
| 452 '--android_sdk_tools=<(android_sdk_tools)', |
| 451 '--apk-path=<(incomplete_apk_path)', | 453 '--apk-path=<(incomplete_apk_path)', |
| 452 '--build-device-configuration=<(build_device_config_path)', | 454 '--build-device-configuration=<(build_device_config_path)', |
| 453 '--install-record=<(apk_install_record)', | 455 '--install-record=<(apk_install_record)', |
| 454 '--configuration-name=<(CONFIGURATION_NAME)', | 456 '--configuration-name=<(CONFIGURATION_NAME)', |
| 455 ], | 457 ], |
| 456 }, | 458 }, |
| 457 ], | 459 ], |
| 458 }], | 460 }], |
| 459 ['is_test_apk == 1', { | 461 ['is_test_apk == 1', { |
| 460 'dependencies': [ | 462 'dependencies': [ |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 '<(DEPTH)/build/android/ant/apk-package.xml', | 769 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 768 | 770 |
| 769 # Add list of inputs to the command line, so if inputs change | 771 # Add list of inputs to the command line, so if inputs change |
| 770 # (e.g. if a Java file is removed), the command will be re-run. | 772 # (e.g. if a Java file is removed), the command will be re-run. |
| 771 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 773 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 772 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 774 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 773 ] | 775 ] |
| 774 }, | 776 }, |
| 775 ], | 777 ], |
| 776 } | 778 } |
| OLD | NEW |