OLD | NEW |
(Empty) | |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This file is meant to be included into an action to provide a rule that |
| 6 # pushes stripped shared libraries to the attached Android device. This should |
| 7 # only be used with the gyp_managed_install flag set. |
| 8 # |
| 9 # To use this, create a gyp target with the following form: |
| 10 # { |
| 11 # 'actions': [ |
| 12 # 'variables': { |
| 13 # 'ordered_libraries_file': 'file generated by write_ordered_libraries' |
| 14 # 'strip_stamp': 'stamp from strip action to block on' |
| 15 # 'libraries_source_dir': 'location where stripped libraries are stored' |
| 16 # 'device_library_dir': 'location on the device where to put pushed libra
ries', |
| 17 # 'push_stamp': 'file to touch when the action is complete' |
| 18 # 'configuration_name': 'The build CONFIGURATION_NAME' |
| 19 # }, |
| 20 # 'includes': [ '../../build/android/push_libraries.gypi' ], |
| 21 # ], |
| 22 # }, |
| 23 # |
| 24 |
| 25 { |
| 26 'action_name': 'push_libraries_<(_target_name)', |
| 27 'message': 'Pushing libraries to device for <(_target_name)', |
| 28 'inputs': [ |
| 29 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 30 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 31 '<(DEPTH)/build/android/gyp/push_libraries.py', |
| 32 '<(strip_stamp)', |
| 33 '<(strip_additional_stamp)', |
| 34 '<(build_device_config_path)', |
| 35 '<(pack_relocations_stamp)', |
| 36 ], |
| 37 'outputs': [ |
| 38 '<(push_stamp)', |
| 39 ], |
| 40 'action': [ |
| 41 'python', '<(DEPTH)/build/android/gyp/push_libraries.py', |
| 42 '--build-device-configuration=<(build_device_config_path)', |
| 43 '--libraries-dir=<(libraries_source_dir)', |
| 44 '--device-dir=<(device_library_dir)', |
| 45 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', |
| 46 '--stamp=<(push_stamp)', |
| 47 '--configuration-name=<(configuration_name)', |
| 48 ], |
| 49 } |
OLD | NEW |