Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: build/android/strip_library_for_apk.py

Issue 13473017: CheckCallDie: add option to suppress successful output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :/ Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/build_utils.py ('k') | build/java.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/strip_library_for_apk.py
diff --git a/build/android/strip_library_for_apk.py b/build/android/strip_library_for_apk.py
deleted file mode 100755
index 59c1ae1418b01321bc1c1a434382bc097a76c216..0000000000000000000000000000000000000000
--- a/build/android/strip_library_for_apk.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2013 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.
-
-import json
-import optparse
-import os
-import sys
-
-from pylib import build_utils
-
-
-def StripLibrary(android_strip, android_strip_args, library_path, output_path):
- strip_cmd = ([android_strip] +
- android_strip_args +
- ['-o', output_path, library_path])
- build_utils.CheckCallDie(strip_cmd)
-
-
-def main(argv):
- parser = optparse.OptionParser()
-
- parser.add_option('--android-strip',
- help='Path to the toolchain\'s strip binary')
- parser.add_option('--android-strip-arg', action='append',
- help='Argument to be passed to strip')
- parser.add_option('--libraries-dir',
- help='Directory for un-stripped libraries')
- parser.add_option('--stripped-libraries-dir',
- help='Directory for stripped libraries')
- parser.add_option('--libraries-file',
- help='Path to json file containing list of libraries')
- parser.add_option('--stamp', help='Path to touch on success')
-
-
- options, _ = parser.parse_args()
-
- with open(options.libraries_file, 'r') as libfile:
- libraries = json.load(libfile)
-
- build_utils.MakeDirectory(options.stripped_libraries_dir)
-
- for library in libraries:
- library_path = os.path.join(options.libraries_dir, library)
- stripped_library_path = os.path.join(
- options.stripped_libraries_dir, library)
- StripLibrary(options.android_strip, options.android_strip_arg, library_path,
- stripped_library_path)
-
- if options.stamp:
- build_utils.Touch(options.stamp)
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « build/android/pylib/build_utils.py ('k') | build/java.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698