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

Side by Side Diff: gyp_skia

Issue 278893002: Add a dry-run option to gyp_skia. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright 2011 The Android Open Source Project 3 # Copyright 2011 The Android Open Source Project
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 # This script is a wrapper which invokes gyp with the correct --depth argument, 8 # This script is a wrapper which invokes gyp with the correct --depth argument,
9 # and supports the automatic regeneration of build files if all.gyp is 9 # and supports the automatic regeneration of build files if all.gyp is
10 # changed (Linux-only). 10 # changed (Linux-only).
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 # Tell ninja to write its output into the same directory. 123 # Tell ninja to write its output into the same directory.
124 args.extend(['-Goutput_dir=.']) 124 args.extend(['-Goutput_dir=.'])
125 125
126 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp. 126 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp.
127 args.extend(['-Gdefault_target=most']) 127 args.extend(['-Gdefault_target=most'])
128 128
129 print 'Updating projects from gyp files...' 129 print 'Updating projects from gyp files...'
130 sys.stdout.flush() 130 sys.stdout.flush()
131 131
132 # Off we go... 132 if '--dry-run' in args:
133 sys.exit(gyp.main(args)) 133 args.remove('--dry-run')
134 print gyp_source_dir, ' '.join(args)
135 else:
136 # Off we go...
137 sys.exit(gyp.main(args))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698