OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 an action to provide a rule that | 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 | 6 # pushes stripped shared libraries to the attached Android device. This should |
7 # only be used with the gyp_managed_install flag set. | 7 # only be used with the gyp_managed_install flag set. |
8 # | 8 # |
9 # To use this, create a gyp target with the following form: | 9 # To use this, create a gyp target with the following form: |
10 # { | 10 # { |
(...skipping 11 matching lines...) Expand all Loading... |
22 # | 22 # |
23 | 23 |
24 { | 24 { |
25 'action_name': 'push_libraries_<(_target_name)', | 25 'action_name': 'push_libraries_<(_target_name)', |
26 'message': 'Pushing libraries to device for <(_target_name)', | 26 'message': 'Pushing libraries to device for <(_target_name)', |
27 'inputs': [ | 27 'inputs': [ |
28 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 28 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
29 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 29 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
30 '<(DEPTH)/build/android/gyp/push_libraries.py', | 30 '<(DEPTH)/build/android/gyp/push_libraries.py', |
31 '<(strip_stamp)', | 31 '<(strip_stamp)', |
| 32 '<(build_device_config_path)', |
32 ], | 33 ], |
33 'outputs': [ | 34 'outputs': [ |
34 '<(push_stamp)', | 35 '<(push_stamp)', |
35 # If a user switches the connected device, new libraries may | |
36 # need to be pushed even if there have been no changes. To | |
37 # ensure that the libraries on the device are always | |
38 # up-to-date, this step should always be triggered. | |
39 '<(push_stamp).fake', | |
40 ], | 36 ], |
41 'action': [ | 37 'action': [ |
42 'python', '<(DEPTH)/build/android/gyp/push_libraries.py', | 38 'python', '<(DEPTH)/build/android/gyp/push_libraries.py', |
| 39 '--build-device-configuration=<(build_device_config_path)', |
43 '--libraries-dir=<(libraries_source_dir)', | 40 '--libraries-dir=<(libraries_source_dir)', |
44 '--device-dir=<(device_library_dir)', | 41 '--device-dir=<(device_library_dir)', |
45 '--libraries-json=<(ordered_libraries_file)', | 42 '--libraries-json=<(ordered_libraries_file)', |
46 '--stamp=<(push_stamp)', | 43 '--stamp=<(push_stamp)', |
47 ], | 44 ], |
48 } | 45 } |
OLD | NEW |