OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Generates an Android Studio project from a GN target.""" | 6 """Generates an Android Studio project from a GN target.""" |
7 | 7 |
8 import argparse | 8 import argparse |
9 import codecs | 9 import codecs |
10 import glob | 10 import glob |
(...skipping 23 matching lines...) Expand all Loading... |
34 _SRCJARS_SUBDIR = 'extracted-srcjars' | 34 _SRCJARS_SUBDIR = 'extracted-srcjars' |
35 _JNI_LIBS_SUBDIR = 'symlinked-libs' | 35 _JNI_LIBS_SUBDIR = 'symlinked-libs' |
36 _ARMEABI_SUBDIR = 'armeabi' | 36 _ARMEABI_SUBDIR = 'armeabi' |
37 _RES_SUBDIR = 'extracted-res' | 37 _RES_SUBDIR = 'extracted-res' |
38 | 38 |
39 _DEFAULT_TARGETS = [ | 39 _DEFAULT_TARGETS = [ |
40 # TODO(agrieve): .build_config seem not quite right for this target | 40 # TODO(agrieve): .build_config seem not quite right for this target |
41 # because it has resources as deps of android_apk() rather than using an | 41 # because it has resources as deps of android_apk() rather than using an |
42 # android_library() intermediate target. | 42 # android_library() intermediate target. |
43 # '//android_webview:system_webview_apk', | 43 # '//android_webview:system_webview_apk', |
44 '//android_webview/test:android_webview_apk', | 44 '//android_webview/test:builtin_webview_apk', |
45 '//android_webview/test:android_webview_test_apk', | 45 '//android_webview/test:android_webview_test_apk', |
46 '//base:base_junit_tests', | 46 '//base:base_junit_tests', |
47 '//chrome/android:chrome_junit_tests', | 47 '//chrome/android:chrome_junit_tests', |
48 '//chrome/android:chrome_public_apk', | 48 '//chrome/android:chrome_public_apk', |
49 '//chrome/android:chrome_public_test_apk', | 49 '//chrome/android:chrome_public_test_apk', |
50 '//chrome/android:chrome_sync_shell_apk', | 50 '//chrome/android:chrome_sync_shell_apk', |
51 '//chrome/android:chrome_sync_shell_test_apk', | 51 '//chrome/android:chrome_sync_shell_test_apk', |
52 '//content/public/android:content_junit_tests', | 52 '//content/public/android:content_junit_tests', |
53 '//content/shell/android:content_shell_apk', | 53 '//content/shell/android:content_shell_apk', |
54 ] | 54 ] |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 _ExtractZips(generator.project_dir, zip_tuples) | 738 _ExtractZips(generator.project_dir, zip_tuples) |
739 | 739 |
740 logging.warning('Project created! (%d subprojects)', len(project_entries)) | 740 logging.warning('Project created! (%d subprojects)', len(project_entries)) |
741 logging.warning('Generated projects work best with Android Studio 2.2') | 741 logging.warning('Generated projects work best with Android Studio 2.2') |
742 logging.warning('For more tips: https://chromium.googlesource.com/chromium' | 742 logging.warning('For more tips: https://chromium.googlesource.com/chromium' |
743 '/src.git/+/master/docs/android_studio.md') | 743 '/src.git/+/master/docs/android_studio.md') |
744 | 744 |
745 | 745 |
746 if __name__ == '__main__': | 746 if __name__ == '__main__': |
747 main() | 747 main() |
OLD | NEW |