OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 # This file isn't officially supported by the Chromium project. It's maintained |
| 7 # on a best-effort basis by volunteers, so some things may be broken from time |
| 8 # to time. If you encounter errors, it's most often due to files in base that |
| 9 # have been added or moved since somebody last tried this script. Generally |
| 10 # such errors are easy to diagnose. |
| 11 |
6 """Bootstraps gn. | 12 """Bootstraps gn. |
7 | 13 |
8 It is done by first building it manually in a temporary directory, then building | 14 It is done by first building it manually in a temporary directory, then building |
9 it with its own BUILD.gn to the final destination. | 15 it with its own BUILD.gn to the final destination. |
10 """ | 16 """ |
11 | 17 |
12 import contextlib | 18 import contextlib |
13 import errno | 19 import errno |
14 import logging | 20 import logging |
15 import optparse | 21 import optparse |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 cmd.append('-v') | 457 cmd.append('-v') |
452 cmd.append('gn') | 458 cmd.append('gn') |
453 check_call(cmd) | 459 check_call(cmd) |
454 | 460 |
455 if not options.debug: | 461 if not options.debug: |
456 check_call(['strip', os.path.join(build_dir, 'gn')]) | 462 check_call(['strip', os.path.join(build_dir, 'gn')]) |
457 | 463 |
458 | 464 |
459 if __name__ == '__main__': | 465 if __name__ == '__main__': |
460 sys.exit(main(sys.argv[1:])) | 466 sys.exit(main(sys.argv[1:])) |
OLD | NEW |