OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # packs ARM relative relocations in Release builds of native libraries. | 6 # packs ARM relative relocations in Release builds of native libraries. |
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 # 'action_name': 'pack_arm_relocations', | 10 # 'action_name': 'pack_arm_relocations', |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ], | 46 ], |
47 'action': [ | 47 'action': [ |
48 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py', | 48 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py', |
49 '--configuration-name=<(CONFIGURATION_NAME)', | 49 '--configuration-name=<(CONFIGURATION_NAME)', |
50 '--enable-packing=1', | 50 '--enable-packing=1', |
51 '--exclude-packing-list=<@(exclude_packing_list)', | 51 '--exclude-packing-list=<@(exclude_packing_list)', |
52 '--android-pack-relocations=<(PRODUCT_DIR)/relocation_packer', | 52 '--android-pack-relocations=<(PRODUCT_DIR)/relocation_packer', |
53 '--android-objcopy=<(android_objcopy)', | 53 '--android-objcopy=<(android_objcopy)', |
54 '--stripped-libraries-dir=<(stripped_libraries_dir)', | 54 '--stripped-libraries-dir=<(stripped_libraries_dir)', |
55 '--packed-libraries-dir=<(packed_libraries_dir)', | 55 '--packed-libraries-dir=<(packed_libraries_dir)', |
56 '--libraries-file=<(ordered_libraries_file)', | 56 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', |
57 '--stamp=<(stamp)', | 57 '--stamp=<(stamp)', |
58 ], | 58 ], |
59 }, { | 59 }, { |
60 'message': 'Copying libraries (no relocation packing) for <(_target_name)'
, | 60 'message': 'Copying libraries (no relocation packing) for <(_target_name)'
, |
61 'action': [ | 61 'action': [ |
62 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py', | 62 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py', |
63 '--configuration-name=<(CONFIGURATION_NAME)', | 63 '--configuration-name=<(CONFIGURATION_NAME)', |
64 '--enable-packing=0', | 64 '--enable-packing=0', |
65 '--stripped-libraries-dir=<(stripped_libraries_dir)', | 65 '--stripped-libraries-dir=<(stripped_libraries_dir)', |
66 '--packed-libraries-dir=<(packed_libraries_dir)', | 66 '--packed-libraries-dir=<(packed_libraries_dir)', |
67 '--libraries-file=<(ordered_libraries_file)', | 67 '--libraries=@FileArg(<(ordered_libraries_file):libraries)', |
68 '--stamp=<(stamp)', | 68 '--stamp=<(stamp)', |
69 ], | 69 ], |
70 }], | 70 }], |
71 ['component == "shared_library"', { | 71 ['component == "shared_library"', { |
72 # Add a fake output to force the build to always re-run this step. This | 72 # Add a fake output to force the build to always re-run this step. This |
73 # is required because the real inputs are not known at gyp-time and | 73 # is required because the real inputs are not known at gyp-time and |
74 # changing base.so may not trigger changes to dependent libraries. | 74 # changing base.so may not trigger changes to dependent libraries. |
75 'outputs': [ '<(stamp).fake' ] | 75 'outputs': [ '<(stamp).fake' ] |
76 }], | 76 }], |
77 ], | 77 ], |
78 } | 78 } |
OLD | NEW |