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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 | 738 |
739 if generated_inputs: | 739 if generated_inputs: |
740 logging.warning('Building generated source files...') | 740 logging.warning('Building generated source files...') |
741 targets = _RebasePath(generated_inputs, output_dir) | 741 targets = _RebasePath(generated_inputs, output_dir) |
742 _RunNinja(output_dir, targets) | 742 _RunNinja(output_dir, targets) |
743 | 743 |
744 if zip_tuples: | 744 if zip_tuples: |
745 _ExtractZips(generator.project_dir, zip_tuples) | 745 _ExtractZips(generator.project_dir, zip_tuples) |
746 | 746 |
747 logging.warning('Project created! (%d subprojects)', len(project_entries)) | 747 logging.warning('Project created! (%d subprojects)', len(project_entries)) |
748 logging.warning('Generated projects work best with Android Studio 2.2') | 748 logging.warning('Generated projects work with Android Studio 2.3') |
749 logging.warning('For more tips: https://chromium.googlesource.com/chromium' | 749 logging.warning('For more tips: https://chromium.googlesource.com/chromium' |
750 '/src.git/+/master/docs/android_studio.md') | 750 '/src.git/+/master/docs/android_studio.md') |
751 | 751 |
752 | 752 |
753 if __name__ == '__main__': | 753 if __name__ == '__main__': |
754 main() | 754 main() |
OLD | NEW |