Chromium Code Reviews| Index: build/android/gyp/pack_arm_relocations.py |
| diff --git a/build/android/gyp/pack_arm_relocations.py b/build/android/gyp/pack_arm_relocations.py |
| index f117ad7b80805bd619e5d5d5f55cd9e44266e13d..ccafd14746ae2ee54724b2c5d4b5ac7cb3e2c449 100755 |
| --- a/build/android/gyp/pack_arm_relocations.py |
| +++ b/build/android/gyp/pack_arm_relocations.py |
| @@ -6,10 +6,11 @@ |
| """Pack ARM relative relocations in a library (or copy unchanged). |
| -If --enable-packing, invoke the relocation_packer tool to pack the .rel.dyn |
| -section in the given library files. This step is inserted after the libraries |
| -are stripped. Packing adds a new .android.rel.dyn section to the file and |
| -reduces the size of .rel.dyn accordingly. |
| +If --enable-packing and --configuration-name=='Release', invoke the |
| +relocation_packer tool to pack the .rel.dyn section in the given library |
| +files. This step is inserted after the libraries are stripped. Packing |
| +adds a new .android.rel.dyn section to the file and reduces the size of |
| +.rel.dyn accordingly. |
| Currently packing only understands ARM32 shared libraries. For all other |
| architectures --enable-packing should be set to zero. In this case the |
| @@ -61,6 +62,8 @@ def CopyArmLibraryUnchanged(library_path, output_path): |
| def main(): |
| parser = optparse.OptionParser() |
| + parser.add_option('--configuration-name', |
| + help='Gyp configuration name (i.e. Debug, Release)') |
|
rmcilroy
2014/07/16 15:24:04
Make a default value of Release, so that manual us
simonb (inactive)
2014/07/16 16:17:00
Done.
|
| parser.add_option('--enable-packing', |
| choices=['0', '1'], |
| help='Pack relocations if 1, otherwise plain file copy') |
|
rmcilroy
2014/07/16 15:24:03
Mention that --configuration-name needs to be Rele
simonb (inactive)
2014/07/16 16:17:00
Done.
|
| @@ -80,7 +83,8 @@ def main(): |
| parser.add_option('--stamp', help='Path to touch on success') |
| options, _ = parser.parse_args() |
| - enable_packing = options.enable_packing == '1' |
| + enable_packing = (options.enable_packing == '1' and |
| + options.configuration_name == 'Release') |
| exclude_packing_set = set(shlex.split(options.exclude_packing_list)) |
| with open(options.libraries_file, 'r') as libfile: |