| Index: build/android/gyp/apkbuilder.py
|
| diff --git a/build/android/gyp/apkbuilder.py b/build/android/gyp/apkbuilder.py
|
| index 8278b2cc7b338ba7bc0d5ffa3c54a81a8de32364..ca320f9f57b3c33025dc273aa9199d0371e75e73 100755
|
| --- a/build/android/gyp/apkbuilder.py
|
| +++ b/build/android/gyp/apkbuilder.py
|
| @@ -57,6 +57,9 @@ def _ParseArgs(args):
|
| default='[]')
|
| parser.add_argument('--emma-device-jar',
|
| help='Path to emma_device.jar to include.')
|
| + parser.add_argument('--uncompress-shared-libraries',
|
| + action='store_true',
|
| + help='Uncompress shared libraries')
|
| options = parser.parse_args(args)
|
| options.assets = build_utils.ParseGypList(options.assets)
|
| options.uncompressed_assets = build_utils.ParseGypList(
|
| @@ -206,7 +209,16 @@ def main(args):
|
| for path in native_libs:
|
| basename = os.path.basename(path)
|
| apk_path = 'lib/%s/%s' % (options.android_abi, basename)
|
| - build_utils.AddToZipHermetic(out_apk, apk_path, src_path=path)
|
| +
|
| + compress = None
|
| + if (options.uncompress_shared_libraries and
|
| + os.path.splitext(basename)[1] == '.so'):
|
| + compress = False
|
| +
|
| + build_utils.AddToZipHermetic(out_apk,
|
| + apk_path,
|
| + src_path=path,
|
| + compress=compress)
|
|
|
| for name in sorted(options.native_lib_placeholders):
|
| # Empty libs files are ignored by md5check, but rezip requires them
|
|
|