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

Side by Side 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: Fix webview build Created 7 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import json
8 import optparse
9 import os
10 import sys
11
12 from pylib import build_utils
13
14
joth 2013/04/01 18:46:37 ditto
cjhopman 2013/04/01 20:11:14 Done.
15 def main(argv):
16 parser = optparse.OptionParser()
17
18 parser.add_option('--input-libraries',
19 help='A list of top-level input libraries')
20 parser.add_option('--output', help='Path to the generated .json file')
21 parser.add_option('--stamp', help='Path to touch on success')
22
23 options, _ = parser.parse_args()
24
25 libraries = build_utils.ParseGypList(options.input_libraries)
26 libraries = [os.path.basename(lib) for lib in libraries]
27
28 with open(options.output, 'w') as outfile:
29 json.dump(libraries, outfile)
30
31 if options.stamp:
32 build_utils.Touch(options.stamp)
33
34
35 if __name__ == '__main__':
36 sys.exit(main(sys.argv))
37
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698