Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: pylib/gyp/__init__.py

Issue 7067039: Add a "dump-json" generator that dumps the dependency graph. (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pylib/gyp/generator/dump-json.py » ('j') | pylib/gyp/generator/dump-json.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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:]))
OLDNEW
« no previous file with comments | « no previous file | pylib/gyp/generator/dump-json.py » ('j') | pylib/gyp/generator/dump-json.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698