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

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

Issue 2069273002: [NOT FOR COMMIT] Added GN support for Android .AAR packaged libraries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying a different route from editing build configs Created 4 years, 5 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
« no previous file with comments | « no previous file | build/config/android/rules.gni » ('j') | build/config/android/rules.gni » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright 2016 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 """Upacks the contents of an Android AAR."""
8
9 import os
10 import shutil
11 import sys
12 #import zipfile
13
14 from util import build_utils
15
16
17 def main():
18 if len(sys.argv) != 3:
19 print 'Usage: %s <aar_file> <output_dir>' % sys.argv[0]
20 sys.exit(1)
21
22 aar_file = sys.argv[1] # e.g. library.aar
23 output_dir = sys.argv[2] # e.g. path/to/output
24
25 # Clear previously extracted versions of the AAR
26 shutil.rmtree(output_dir, True)
27
28 build_utils.ExtractAll(aar_file, path=output_dir)
29
30
31 if __name__ == '__main__':
32 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | build/config/android/rules.gni » ('j') | build/config/android/rules.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698