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

Unified Diff: build/android/write_ordered_libraries.py

Issue 12939021: Make the build control what library(/ies) to load (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@antpy
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/java_cpp_template.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/write_ordered_libraries.py
diff --git a/build/android/write_ordered_libraries.py b/build/android/write_ordered_libraries.py
new file mode 100755
index 0000000000000000000000000000000000000000..e887672e2900b6c4dbf704f6f3357869ce5f773e
--- /dev/null
+++ b/build/android/write_ordered_libraries.py
@@ -0,0 +1,43 @@
+#!/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.
+
+"""Writes dependency ordered list of native libraries.
+
+This list of libraries is used for several steps of building an APK.
+"""
+
+import json
+import optparse
+import os
+import sys
+
+from pylib import build_utils
+
+
+def main(argv):
+ parser = optparse.OptionParser()
+
+ parser.add_option('--input-libraries',
+ help='A list of top-level input libraries')
+ parser.add_option('--output', help='Path to the generated .json file')
+ parser.add_option('--stamp', help='Path to touch on success')
+
+ options, _ = parser.parse_args()
+
+ libraries = build_utils.ParseGypList(options.input_libraries)
+ libraries = [os.path.basename(lib) for lib in libraries]
+
+ with open(options.output, 'w') as outfile:
+ json.dump(libraries, outfile)
+
+ if options.stamp:
+ build_utils.Touch(options.stamp)
+
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv))
+
+
« no previous file with comments | « build/android/java_cpp_template.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698