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

Unified Diff: build/android/gyp/strip_library_for_device.py

Issue 1647353002: Use gn_helpers to [se]serialize GN lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@python_impl
Patch Set: more Created 4 years, 4 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/gyp/push_libraries.py ('k') | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/strip_library_for_device.py
diff --git a/build/android/gyp/strip_library_for_device.py b/build/android/gyp/strip_library_for_device.py
deleted file mode 100755
index 9e2daae33acfa057f23eb2c53b1cd6ed47c9bfb5..0000000000000000000000000000000000000000
--- a/build/android/gyp/strip_library_for_device.py
+++ /dev/null
@@ -1,61 +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 optparse
-import os
-import sys
-
-from util import build_utils
-
-
-def StripLibrary(android_strip, android_strip_args, library_path, output_path):
- if build_utils.IsTimeStale(output_path, [library_path]):
- strip_cmd = ([android_strip] +
- android_strip_args +
- ['-o', output_path, library_path])
- build_utils.CheckOutput(strip_cmd)
-
-
-def main(args):
- args = build_utils.ExpandFileArgs(args)
-
- parser = optparse.OptionParser()
- build_utils.AddDepfileOption(parser)
-
- 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',
- help='List of libraries to strip')
- parser.add_option('--stamp', help='Path to touch on success')
-
- options, _ = parser.parse_args(args)
-
- libraries = build_utils.ParseGypList(options.libraries)
-
- build_utils.MakeDirectory(options.stripped_libraries_dir)
-
- for library in libraries:
- for base_path in options.libraries_dir.split(','):
- library_path = os.path.join(base_path, library)
- if (os.path.exists(library_path)):
- break
- 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[1:]))
« no previous file with comments | « build/android/gyp/push_libraries.py ('k') | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698