OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2009 Google Inc. All rights reserved. | 3 # Copyright (c) 2009 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 'generator_handles_variants': | 70 'generator_handles_variants': |
71 getattr(generator, 'generator_handles_variants', False), | 71 getattr(generator, 'generator_handles_variants', False), |
72 'non_configuration_keys': | 72 'non_configuration_keys': |
73 getattr(generator, 'generator_additional_non_configuration_keys', []), | 73 getattr(generator, 'generator_additional_non_configuration_keys', []), |
74 'path_sections': | 74 'path_sections': |
75 getattr(generator, 'generator_additional_path_sections', []), | 75 getattr(generator, 'generator_additional_path_sections', []), |
76 'extra_sources_for_rules': | 76 'extra_sources_for_rules': |
77 getattr(generator, 'generator_extra_sources_for_rules', []), | 77 getattr(generator, 'generator_extra_sources_for_rules', []), |
78 'generator_supports_multiple_toolsets': | 78 'generator_supports_multiple_toolsets': |
79 getattr(generator, 'generator_supports_multiple_toolsets', False), | 79 getattr(generator, 'generator_supports_multiple_toolsets', False), |
80 'generator_wants_flattened_static_libraries': | |
Mark Mentovai
2011/05/24 21:46:15
“flattened” is a bad name because it means somethi
| |
81 getattr(generator, 'generator_wants_flattened_static_libraries', True) | |
80 } | 82 } |
81 | 83 |
82 # Process the input specific to this generator. | 84 # Process the input specific to this generator. |
83 result = gyp.input.Load(build_files, default_variables, includes[:], | 85 result = gyp.input.Load(build_files, default_variables, includes[:], |
84 depth, generator_input_info, check, circular_check) | 86 depth, generator_input_info, check, circular_check) |
85 return [generator] + result | 87 return [generator] + result |
86 | 88 |
87 def NameValueListToDict(name_value_list): | 89 def NameValueListToDict(name_value_list): |
88 """ | 90 """ |
89 Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary | 91 Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 # need to have dependencies defined before dependents reference them should | 454 # need to have dependencies defined before dependents reference them should |
453 # generate targets in the order specified in flat_list. | 455 # generate targets in the order specified in flat_list. |
454 generator.GenerateOutput(flat_list, targets, data, params) | 456 generator.GenerateOutput(flat_list, targets, data, params) |
455 | 457 |
456 # Done | 458 # Done |
457 return 0 | 459 return 0 |
458 | 460 |
459 | 461 |
460 if __name__ == '__main__': | 462 if __name__ == '__main__': |
461 sys.exit(main(sys.argv[1:])) | 463 sys.exit(main(sys.argv[1:])) |
OLD | NEW |