| 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 18 matching lines...) Expand all Loading... |
| 29 True), | 29 True), |
| 30 'SOURCES': (list, '', True), | 30 'SOURCES': (list, '', True), |
| 31 'CFLAGS': (list, '', False), | 31 'CFLAGS': (list, '', False), |
| 32 'CFLAGS_GCC': (list, '', False), | 32 'CFLAGS_GCC': (list, '', False), |
| 33 'CXXFLAGS': (list, '', False), | 33 'CXXFLAGS': (list, '', False), |
| 34 'DEFINES': (list, '', False), | 34 'DEFINES': (list, '', False), |
| 35 'LDFLAGS': (list, '', False), | 35 'LDFLAGS': (list, '', False), |
| 36 'INCLUDES': (list, '', False), | 36 'INCLUDES': (list, '', False), |
| 37 'LIBS' : (dict, VALID_TOOLCHAINS, False), | 37 'LIBS' : (dict, VALID_TOOLCHAINS, False), |
| 38 'DEPS' : (list, '', False) | 38 'DEPS' : (list, '', False) |
| 39 }, True), | 39 }, False), |
| 40 'HEADERS': (list, { | 40 'HEADERS': (list, { |
| 41 'FILES': (list, '', True), | 41 'FILES': (list, '', True), |
| 42 'DEST': (str, '', True), | 42 'DEST': (str, '', True), |
| 43 }, False), | 43 }, False), |
| 44 'SEARCH': (list, '', False), | 44 'SEARCH': (list, '', False), |
| 45 'POST': (str, '', False), | 45 'POST': (str, '', False), |
| 46 'PRE': (str, '', False), | 46 'PRE': (str, '', False), |
| 47 'DEST': (str, ['examples/getting_started', 'examples/api', | 47 'DEST': (str, ['getting_started', 'examples/api', |
| 48 'examples/demo', 'examples/tutorial', | 48 'examples/demo', 'examples/tutorial', |
| 49 'src', 'tests'], True), | 49 'src', 'tests'], True), |
| 50 'NAME': (str, '', False), | 50 'NAME': (str, '', False), |
| 51 'DATA': (list, '', False), | 51 'DATA': (list, '', False), |
| 52 'TITLE': (str, '', False), | 52 'TITLE': (str, '', False), |
| 53 'GROUP': (str, '', False), | 53 'GROUP': (str, '', False), |
| 54 'EXPERIMENTAL': (bool, [True, False], False), | 54 'EXPERIMENTAL': (bool, [True, False], False), |
| 55 'PERMISSIONS': (list, '', False), | 55 'PERMISSIONS': (list, '', False), |
| 56 'SOCKET_PERMISSIONS': (list, '', False) | 56 'SOCKET_PERMISSIONS': (list, '', False) |
| 57 } | 57 } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 except ValidationError as e: | 255 except ValidationError as e: |
| 256 sys.stderr.write(str(e) + '\n') | 256 sys.stderr.write(str(e) + '\n') |
| 257 return 1 | 257 return 1 |
| 258 | 258 |
| 259 PrintProjectTree(tree) | 259 PrintProjectTree(tree) |
| 260 return 0 | 260 return 0 |
| 261 | 261 |
| 262 | 262 |
| 263 if __name__ == '__main__': | 263 if __name__ == '__main__': |
| 264 sys.exit(main(sys.argv)) | 264 sys.exit(main(sys.argv)) |
| OLD | NEW |