OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import copy | 7 import copy |
8 import gyp.input | 8 import gyp.input |
9 import optparse | 9 import optparse |
10 import os.path | 10 import os.path |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 getattr(generator, 'generator_additional_path_sections', []), | 112 getattr(generator, 'generator_additional_path_sections', []), |
113 'extra_sources_for_rules': | 113 'extra_sources_for_rules': |
114 getattr(generator, 'generator_extra_sources_for_rules', []), | 114 getattr(generator, 'generator_extra_sources_for_rules', []), |
115 'generator_supports_multiple_toolsets': | 115 'generator_supports_multiple_toolsets': |
116 getattr(generator, 'generator_supports_multiple_toolsets', False), | 116 getattr(generator, 'generator_supports_multiple_toolsets', False), |
117 'generator_wants_static_library_dependencies_adjusted': | 117 'generator_wants_static_library_dependencies_adjusted': |
118 getattr(generator, | 118 getattr(generator, |
119 'generator_wants_static_library_dependencies_adjusted', True), | 119 'generator_wants_static_library_dependencies_adjusted', True), |
120 'generator_wants_sorted_dependencies': | 120 'generator_wants_sorted_dependencies': |
121 getattr(generator, 'generator_wants_sorted_dependencies', False), | 121 getattr(generator, 'generator_wants_sorted_dependencies', False), |
| 122 'generator_filelist_path': |
| 123 getattr(generator, 'generator_filelist_path', None), |
122 } | 124 } |
123 | 125 |
124 # Process the input specific to this generator. | 126 # Process the input specific to this generator. |
125 result = gyp.input.Load(build_files, default_variables, includes[:], | 127 result = gyp.input.Load(build_files, default_variables, includes[:], |
126 depth, generator_input_info, check, circular_check, | 128 depth, generator_input_info, check, circular_check, |
127 params['parallel']) | 129 params['parallel']) |
128 return [generator] + result | 130 return [generator] + result |
129 | 131 |
130 def NameValueListToDict(name_value_list): | 132 def NameValueListToDict(name_value_list): |
131 """ | 133 """ |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 except GypError, e: | 527 except GypError, e: |
526 sys.stderr.write("gyp: %s\n" % e) | 528 sys.stderr.write("gyp: %s\n" % e) |
527 return 1 | 529 return 1 |
528 | 530 |
529 # NOTE: setuptools generated console_scripts calls function with no arguments | 531 # NOTE: setuptools generated console_scripts calls function with no arguments |
530 def script_main(): | 532 def script_main(): |
531 return main(sys.argv[1:]) | 533 return main(sys.argv[1:]) |
532 | 534 |
533 if __name__ == '__main__': | 535 if __name__ == '__main__': |
534 sys.exit(script_main()) | 536 sys.exit(script_main()) |
OLD | NEW |