| 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 |
| 11 | 11 |
| 12 VALID_TOOLCHAINS = ['newlib', 'glibc', 'pnacl', 'win', 'linux', 'mac'] | 12 VALID_TOOLCHAINS = [ |
| 13 'bionic', |
| 14 'newlib', |
| 15 'glibc', |
| 16 'pnacl', |
| 17 'win', |
| 18 'linux', |
| 19 'mac', |
| 20 ] |
| 13 | 21 |
| 14 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>) | 22 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>) |
| 15 DSC_FORMAT = { | 23 DSC_FORMAT = { |
| 16 'DISABLE': (bool, [True, False], False), | 24 'DISABLE': (bool, [True, False], False), |
| 17 'SEL_LDR': (bool, [True, False], False), | 25 'SEL_LDR': (bool, [True, False], False), |
| 18 # Disable this project from being included in the NaCl packaged app. | 26 # Disable this project from being included in the NaCl packaged app. |
| 19 'DISABLE_PACKAGE': (bool, [True, False], False), | 27 'DISABLE_PACKAGE': (bool, [True, False], False), |
| 20 # Don't generate the additional files to allow this project to run as a | 28 # Don't generate the additional files to allow this project to run as a |
| 21 # packaged app (i.e. manifest.json, background.js, etc.). | 29 # packaged app (i.e. manifest.json, background.js, etc.). |
| 22 'NO_PACKAGE_FILES': (bool, [True, False], False), | 30 'NO_PACKAGE_FILES': (bool, [True, False], False), |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 except ValidationError as e: | 270 except ValidationError as e: |
| 263 sys.stderr.write(str(e) + '\n') | 271 sys.stderr.write(str(e) + '\n') |
| 264 return 1 | 272 return 1 |
| 265 | 273 |
| 266 PrintProjectTree(tree) | 274 PrintProjectTree(tree) |
| 267 return 0 | 275 return 0 |
| 268 | 276 |
| 269 | 277 |
| 270 if __name__ == '__main__': | 278 if __name__ == '__main__': |
| 271 sys.exit(main(sys.argv)) | 279 sys.exit(main(sys.argv)) |
| OLD | NEW |