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 |
(...skipping 20 matching lines...) Expand all Loading... |
31 'NO_PACKAGE_FILES': (bool, [True, False], False), | 31 'NO_PACKAGE_FILES': (bool, [True, False], False), |
32 'TOOLS' : (list, VALID_TOOLCHAINS, False), | 32 'TOOLS' : (list, VALID_TOOLCHAINS, False), |
33 'CONFIGS' : (list, ['Debug', 'Release'], False), | 33 'CONFIGS' : (list, ['Debug', 'Release'], False), |
34 'PREREQ' : (list, '', False), | 34 'PREREQ' : (list, '', False), |
35 'TARGETS' : (list, { | 35 'TARGETS' : (list, { |
36 'NAME': (str, '', True), | 36 'NAME': (str, '', True), |
37 # main = nexe target | 37 # main = nexe target |
38 # lib = library target | 38 # lib = library target |
39 # so = shared object target, automatically added to NMF | 39 # so = shared object target, automatically added to NMF |
40 # so-standalone = shared object target, not put into NMF | 40 # so-standalone = shared object target, not put into NMF |
41 'TYPE': (str, ['main', 'lib', 'static-lib', 'so', 'so-standalone'], | 41 'TYPE': (str, |
| 42 ['main', 'lib', 'static-lib', 'so', 'so-standalone', |
| 43 'linker-script'], |
42 True), | 44 True), |
43 'SOURCES': (list, '', True), | 45 'SOURCES': (list, '', True), |
44 'CFLAGS': (list, '', False), | 46 'CFLAGS': (list, '', False), |
45 'CFLAGS_GCC': (list, '', False), | 47 'CFLAGS_GCC': (list, '', False), |
46 'CXXFLAGS': (list, '', False), | 48 'CXXFLAGS': (list, '', False), |
47 'DEFINES': (list, '', False), | 49 'DEFINES': (list, '', False), |
48 'LDFLAGS': (list, '', False), | 50 'LDFLAGS': (list, '', False), |
49 'INCLUDES': (list, '', False), | 51 'INCLUDES': (list, '', False), |
50 'LIBS' : (dict, VALID_TOOLCHAINS, False), | 52 'LIBS' : (dict, VALID_TOOLCHAINS, False), |
51 'DEPS' : (list, '', False) | 53 'DEPS' : (list, '', False) |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 except ValidationError as e: | 271 except ValidationError as e: |
270 sys.stderr.write(str(e) + '\n') | 272 sys.stderr.write(str(e) + '\n') |
271 return 1 | 273 return 1 |
272 | 274 |
273 PrintProjectTree(tree) | 275 PrintProjectTree(tree) |
274 return 0 | 276 return 0 |
275 | 277 |
276 | 278 |
277 if __name__ == '__main__': | 279 if __name__ == '__main__': |
278 sys.exit(main(sys.argv[1:])) | 280 sys.exit(main(sys.argv[1:])) |
OLD | NEW |