blob: ac0297716dac4cebc75c687e1ce022c50cfdcc07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Creates a stripped copy of a library for inclusion in an apk.
if [[ $# -ne 3 ]]
then
echo "Usage: prepare_library_for_apk android_strip path/to/library stripped/library/output/path"
exit 1
fi
ANDROID_STRIP=$1
LIBRARY=$2
STRIPPED=$3
set -e
$ANDROID_STRIP --strip-unneeded $LIBRARY -o $STRIPPED
|