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

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
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..7dbd5b172488c1d0695bba43a0e8afad0921d22d
--- /dev/null
+++ b/build/android/write_ordered_libraries.py
@@ -0,0 +1,38 @@
+#!/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 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))
+
+

Powered by Google App Engine
This is Rietveld 408576698