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

Side by Side Diff: tools/gn/bootstrap/bootstrap.py

Issue 1528863004: Add owners file to GN bootstrap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « tools/gn/bootstrap/OWNERS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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:]))
OLDNEW
« no previous file with comments | « tools/gn/bootstrap/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698