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 argparse | 6 import argparse |
7 import collections | 7 import collections |
8 import fnmatch | 8 import fnmatch |
9 import os | 9 import os |
10 import sys | 10 import sys |
11 | 11 |
12 VALID_TOOLCHAINS = [ | 12 VALID_TOOLCHAINS = [ |
13 'clang-newlib', | 13 'clang-newlib', |
14 'newlib', | |
15 'glibc', | 14 'glibc', |
16 'pnacl', | 15 'pnacl', |
17 'win', | 16 'win', |
18 'linux', | 17 'linux', |
19 'mac', | 18 'mac', |
20 ] | 19 ] |
21 | 20 |
22 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>) | 21 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>) |
23 DSC_FORMAT = { | 22 DSC_FORMAT = { |
24 'DISABLE': (bool, [True, False], False), | 23 'DISABLE': (bool, [True, False], False), |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 except ValidationError as e: | 270 except ValidationError as e: |
272 sys.stderr.write(str(e) + '\n') | 271 sys.stderr.write(str(e) + '\n') |
273 return 1 | 272 return 1 |
274 | 273 |
275 PrintProjectTree(tree) | 274 PrintProjectTree(tree) |
276 return 0 | 275 return 0 |
277 | 276 |
278 | 277 |
279 if __name__ == '__main__': | 278 if __name__ == '__main__': |
280 sys.exit(main(sys.argv[1:])) | 279 sys.exit(main(sys.argv[1:])) |
OLD | NEW |