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

Side by Side Diff: build/gn_helpers.py

Issue 2101243005: Add a snapshot of flutter/engine/src/build to our sdk (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add README.dart 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 | « build/git-hooks/pre-commit ('k') | build/gn_migration.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Helper functions useful when writing scripts that are run from GN's 5 """Helper functions useful when writing scripts that are run from GN's
6 exec_script function.""" 6 exec_script function."""
7 7
8 class GNException(Exception): 8 class GNException(Exception):
9 pass 9 pass
10 10
(...skipping 19 matching lines...) Expand all
30 for key in value: 30 for key in value:
31 if not isinstance(key, str): 31 if not isinstance(key, str):
32 raise GNException("Dictionary key is not a string.") 32 raise GNException("Dictionary key is not a string.")
33 result += "%s = %s\n" % (key, ToGNString(value[key], False)) 33 result += "%s = %s\n" % (key, ToGNString(value[key], False))
34 return result 34 return result
35 35
36 if isinstance(value, int): 36 if isinstance(value, int):
37 return str(value) 37 return str(value)
38 38
39 raise GNException("Unsupported type when printing to GN.") 39 raise GNException("Unsupported type when printing to GN.")
OLDNEW
« no previous file with comments | « build/git-hooks/pre-commit ('k') | build/gn_migration.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698