| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 }, | 240 }, |
| 241 'includes': ['../build/android/strip_native_libraries.gypi'], | 241 'includes': ['../build/android/strip_native_libraries.gypi'], |
| 242 }, | 242 }, |
| 243 ], | 243 ], |
| 244 'conditions': [ | 244 'conditions': [ |
| 245 ['gyp_managed_install == 1', { | 245 ['gyp_managed_install == 1', { |
| 246 'variables': { | 246 'variables': { |
| 247 'libraries_top_dir': '<(intermediate_dir)/lib.stripped', | 247 'libraries_top_dir': '<(intermediate_dir)/lib.stripped', |
| 248 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi)
', | 248 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi)
', |
| 249 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', | 249 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', |
| 250 'configuration_name': '<(CONFIGURATION_NAME)', |
| 250 }, | 251 }, |
| 251 'dependencies': [ | 252 'dependencies': [ |
| 252 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', | 253 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', |
| 253 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', | 254 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', |
| 254 ], | 255 ], |
| 255 'actions': [ | 256 'actions': [ |
| 256 { | 257 { |
| 257 'includes': ['../build/android/push_libraries.gypi'], | 258 'includes': ['../build/android/push_libraries.gypi'], |
| 258 }, | 259 }, |
| 259 { | 260 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 271 ], | 272 ], |
| 272 'action': [ | 273 'action': [ |
| 273 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', | 274 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', |
| 274 '--build-device-configuration=<(build_device_config_path)', | 275 '--build-device-configuration=<(build_device_config_path)', |
| 275 '--libraries-json=<(ordered_libraries_file)', | 276 '--libraries-json=<(ordered_libraries_file)', |
| 276 '--script-host-path=<(symlink_script_host_path)', | 277 '--script-host-path=<(symlink_script_host_path)', |
| 277 '--script-device-path=<(symlink_script_device_path)', | 278 '--script-device-path=<(symlink_script_device_path)', |
| 278 '--target-dir=<(device_library_dir)', | 279 '--target-dir=<(device_library_dir)', |
| 279 '--apk=<(incomplete_apk_path)', | 280 '--apk=<(incomplete_apk_path)', |
| 280 '--stamp=<(link_stamp)', | 281 '--stamp=<(link_stamp)', |
| 282 '--configuration-name=<(CONFIGURATION_NAME)', |
| 281 ], | 283 ], |
| 282 }, | 284 }, |
| 283 ], | 285 ], |
| 284 'conditions': [ | 286 'conditions': [ |
| 285 ['create_standalone_apk == 1', { | 287 ['create_standalone_apk == 1', { |
| 286 'actions': [ | 288 'actions': [ |
| 287 { | 289 { |
| 288 'action_name': 'create standalone APK', | 290 'action_name': 'create standalone APK', |
| 289 'variables': { | 291 'variables': { |
| 290 'inputs': [ | 292 'inputs': [ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 '<(incomplete_apk_path)', | 366 '<(incomplete_apk_path)', |
| 365 ], | 367 ], |
| 366 'outputs': [ | 368 'outputs': [ |
| 367 '<(apk_install_record)', | 369 '<(apk_install_record)', |
| 368 ], | 370 ], |
| 369 'action': [ | 371 'action': [ |
| 370 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 372 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
| 371 '--apk-path=<(incomplete_apk_path)', | 373 '--apk-path=<(incomplete_apk_path)', |
| 372 '--build-device-configuration=<(build_device_config_path)', | 374 '--build-device-configuration=<(build_device_config_path)', |
| 373 '--install-record=<(apk_install_record)', | 375 '--install-record=<(apk_install_record)', |
| 376 '--configuration-name=<(CONFIGURATION_NAME)', |
| 374 ], | 377 ], |
| 375 }, | 378 }, |
| 376 ], | 379 ], |
| 377 }], | 380 }], |
| 378 ['is_test_apk == 1', { | 381 ['is_test_apk == 1', { |
| 379 'dependencies': [ | 382 'dependencies': [ |
| 380 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', | 383 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
| 381 ] | 384 ] |
| 382 }], | 385 }], |
| 383 ], | 386 ], |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 '<(DEPTH)/build/android/ant/apk-package.xml', | 668 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 666 | 669 |
| 667 # Add list of inputs to the command line, so if inputs change | 670 # Add list of inputs to the command line, so if inputs change |
| 668 # (e.g. if a Java file is removed), the command will be re-run. | 671 # (e.g. if a Java file is removed), the command will be re-run. |
| 669 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 672 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 670 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 673 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 671 ] | 674 ] |
| 672 }, | 675 }, |
| 673 ], | 676 ], |
| 674 } | 677 } |
| OLD | NEW |