diff options
author | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 00:07:23 +0000 |
---|---|---|
committer | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 00:07:23 +0000 |
commit | d8e36ba392fda1c44b73d8719d95ceabcf5d319e (patch) | |
tree | ded3038e1eff6f94ff244f6d3dedf785f5e8beae /testing | |
parent | 36c9ee8479a7105eb5ddfa4ee499b003018b3079 (diff) | |
download | chromium_src-d8e36ba392fda1c44b73d8719d95ceabcf5d319e.zip chromium_src-d8e36ba392fda1c44b73d8719d95ceabcf5d319e.tar.gz chromium_src-d8e36ba392fda1c44b73d8719d95ceabcf5d319e.tar.bz2 |
APK tests: Strip the shlibs before bundling in APK.
BUG=125059
TEST=
Review URL: https://chromiumcodereview.appspot.com/10414034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/android/generate_native_test.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/testing/android/generate_native_test.py b/testing/android/generate_native_test.py index 7b7853d..2062144 100755 --- a/testing/android/generate_native_test.py +++ b/testing/android/generate_native_test.py @@ -21,6 +21,11 @@ import shutil import subprocess import sys +# cmd_helper.py is under ../../build/android/ +sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', + '..', 'build', 'android')) +import cmd_helper # pylint: disable=F0401 + class NativeTestApkGenerator(object): """Generate a native test apk source tree. @@ -118,8 +123,10 @@ class NativeTestApkGenerator(object): if not os.path.exists(destdir): os.makedirs(destdir) dest = os.path.join(destdir, os.path.basename(self._native_library)) - logging.warn('%s --> %s' % (self._native_library, dest)) - shutil.copyfile(self._native_library, dest) + logging.warn('strip %s --> %s' % (self._native_library, dest)) + strip = os.environ['STRIP'] + cmd_helper.RunCmd( + [strip, '--strip-unneeded', self._native_library, '-o', dest]) if self._jars: destdir = os.path.join(self._output_directory, 'libs') if not os.path.exists(destdir): |