OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 'LIBS' : (dict, VALID_TOOLCHAINS, False), | 49 'LIBS' : (dict, VALID_TOOLCHAINS, False), |
50 'DEPS' : (list, '', False) | 50 'DEPS' : (list, '', False) |
51 }, False), | 51 }, False), |
52 'HEADERS': (list, { | 52 'HEADERS': (list, { |
53 'FILES': (list, '', True), | 53 'FILES': (list, '', True), |
54 'DEST': (str, '', True), | 54 'DEST': (str, '', True), |
55 }, False), | 55 }, False), |
56 'SEARCH': (list, '', False), | 56 'SEARCH': (list, '', False), |
57 'POST': (str, '', False), | 57 'POST': (str, '', False), |
58 'PRE': (str, '', False), | 58 'PRE': (str, '', False), |
59 'DEST': (str, ['getting_started', 'examples/api', | 59 'DEST': (str, ['getting_started', 'examples/api', 'examples/benchmarks', |
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), |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 except ValidationError as e: | 272 except ValidationError as e: |
273 sys.stderr.write(str(e) + '\n') | 273 sys.stderr.write(str(e) + '\n') |
274 return 1 | 274 return 1 |
275 | 275 |
276 PrintProjectTree(tree) | 276 PrintProjectTree(tree) |
277 return 0 | 277 return 0 |
278 | 278 |
279 | 279 |
280 if __name__ == '__main__': | 280 if __name__ == '__main__': |
281 sys.exit(main(sys.argv)) | 281 sys.exit(main(sys.argv)) |
OLD | NEW |