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

Side by Side Diff: tools/gypi_to_gn.py

Issue 2152913002: Add #! lines and +x scripts run by the build system (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « runtime/tools/gen_library_src_paths.py ('k') | tools/make_version.py » ('j') | 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 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # 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
3 # found in the LICENSE file. 4 # found in the LICENSE file.
4 5
5 """Converts a given gypi file to a python scope and writes the result to stdout. 6 """Converts a given gypi file to a python scope and writes the result to stdout.
6 7
7 It is assumed that the file contains a toplevel dictionary, and this script 8 It is assumed that the file contains a toplevel dictionary, and this script
8 will return that dictionary as a GN "scope" (see example below). This script 9 will return that dictionary as a GN "scope" (see example below). This script
9 does not know anything about GYP and it will not expand variables or execute 10 does not know anything about GYP and it will not expand variables or execute
10 conditions. 11 conditions.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 del data[key] 159 del data[key]
159 160
160 print gn_helpers.ToGNString(data) 161 print gn_helpers.ToGNString(data)
161 162
162 if __name__ == '__main__': 163 if __name__ == '__main__':
163 try: 164 try:
164 main() 165 main()
165 except Exception, e: 166 except Exception, e:
166 print str(e) 167 print str(e)
167 sys.exit(1) 168 sys.exit(1)
OLDNEW
« no previous file with comments | « runtime/tools/gen_library_src_paths.py ('k') | tools/make_version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698