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

Side by Side Diff: native_client_sdk/src/build_tools/parse_dsc.py

Issue 318823002: [NaCl SDK] Don't set minimum_chrome_version for most examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 6 years, 6 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 import collections 6 import collections
7 import fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 'examples/demo', 'examples/tutorial', 60 'examples/demo', 'examples/tutorial',
61 'src', 'tests'], True), 61 'src', 'tests'], True),
62 'NAME': (str, '', False), 62 'NAME': (str, '', False),
63 'DATA': (list, '', False), 63 'DATA': (list, '', False),
64 'TITLE': (str, '', False), 64 'TITLE': (str, '', False),
65 'GROUP': (str, '', False), 65 'GROUP': (str, '', False),
66 'EXPERIMENTAL': (bool, [True, False], False), 66 'EXPERIMENTAL': (bool, [True, False], False),
67 'PERMISSIONS': (list, '', False), 67 'PERMISSIONS': (list, '', False),
68 'SOCKET_PERMISSIONS': (list, '', False), 68 'SOCKET_PERMISSIONS': (list, '', False),
69 'MULTI_PLATFORM': (bool, [True, False], False), 69 'MULTI_PLATFORM': (bool, [True, False], False),
70 'MIN_CHROME_VERSION': (str, '', False),
70 } 71 }
71 72
72 73
73 class ValidationError(Exception): 74 class ValidationError(Exception):
74 pass 75 pass
75 76
76 77
77 def ValidateFormat(src, dsc_format): 78 def ValidateFormat(src, dsc_format):
78 # Verify all required keys are there 79 # Verify all required keys are there
79 for key in dsc_format: 80 for key in dsc_format:
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 except ValidationError as e: 272 except ValidationError as e:
272 sys.stderr.write(str(e) + '\n') 273 sys.stderr.write(str(e) + '\n')
273 return 1 274 return 1
274 275
275 PrintProjectTree(tree) 276 PrintProjectTree(tree)
276 return 0 277 return 0
277 278
278 279
279 if __name__ == '__main__': 280 if __name__ == '__main__':
280 sys.exit(main(sys.argv)) 281 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/generate_make.py ('k') | native_client_sdk/src/examples/api/media_stream_audio/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698