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

Side by Side Diff: build/android/gyp/create_dist_jar.py

Issue 525533003: Add content_shell_test_apk and a several dependencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-content-shell-apk
Patch Set: Created 6 years, 3 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 2014 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 """Merges a list of jars into a single jar."""
8
9 import optparse
10 import sys
11
12 from util import build_utils
13
14 def main(args):
15 args = build_utils.ExpandFileArgs(args)
16 parser = optparse.OptionParser()
17 build_utils.AddDepfileOption(parser)
18 parser.add_option('--output', help='Path to output jar.')
19 parser.add_option('--inputs', action='append', help='List of jar inputs.')
20 options, _ = parser.parse_args(args)
newt (away) 2014/09/08 20:27:30 use build_utils.CheckOptions() to ensure --output
cjhopman 2014/09/08 23:02:18 Done.
21
22 input_jars = []
23 for inputs_arg in options.inputs:
24 input_jars.extend(build_utils.ParseGypList(inputs_arg))
25
26 build_utils.MergeZips(options.output, input_jars)
27
28 if options.depfile:
29 build_utils.WriteDepfile(
30 options.depfile,
31 input_jars + build_utils.GetPythonDependencies())
32
33
34 if __name__ == '__main__':
35 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698