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

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

Issue 271019: Adding cross-compile ability to the make build (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 11 years, 2 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/common.py » ('j') | no next file with comments »
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 import copy 3 import copy
4 import gyp.input 4 import gyp.input
5 import optparse 5 import optparse
6 import os.path 6 import os.path
7 import re 7 import re
8 import shlex 8 import shlex
9 import sys 9 import sys
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'generator_wants_absolute_build_file_paths': 63 'generator_wants_absolute_build_file_paths':
64 getattr(generator, 'generator_wants_absolute_build_file_paths', False), 64 getattr(generator, 'generator_wants_absolute_build_file_paths', False),
65 'generator_handles_variants': 65 'generator_handles_variants':
66 getattr(generator, 'generator_handles_variants', False), 66 getattr(generator, 'generator_handles_variants', False),
67 'non_configuration_keys': 67 'non_configuration_keys':
68 getattr(generator, 'generator_additional_non_configuration_keys', []), 68 getattr(generator, 'generator_additional_non_configuration_keys', []),
69 'path_sections': 69 'path_sections':
70 getattr(generator, 'generator_additional_path_sections', []), 70 getattr(generator, 'generator_additional_path_sections', []),
71 'extra_sources_for_rules': 71 'extra_sources_for_rules':
72 getattr(generator, 'generator_extra_sources_for_rules', []), 72 getattr(generator, 'generator_extra_sources_for_rules', []),
73 'generator_supports_multiple_toolsets':
74 getattr(generator, 'generator_supports_multiple_toolsets', False),
73 } 75 }
74 76
75 # Process the input specific to this generator. 77 # Process the input specific to this generator.
76 result = gyp.input.Load(build_files, default_variables, includes[:], 78 result = gyp.input.Load(build_files, default_variables, includes[:],
77 depth, generator_input_info, check) 79 depth, generator_input_info, check)
78 return [generator] + result 80 return [generator] + result
79 81
80 def NameValueListToDict(name_value_list): 82 def NameValueListToDict(name_value_list):
81 """ 83 """
82 Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary 84 Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 # need to have dependencies defined before dependents reference them should 425 # need to have dependencies defined before dependents reference them should
424 # generate targets in the order specified in flat_list. 426 # generate targets in the order specified in flat_list.
425 generator.GenerateOutput(flat_list, targets, data, params) 427 generator.GenerateOutput(flat_list, targets, data, params)
426 428
427 # Done 429 # Done
428 return 0 430 return 0
429 431
430 432
431 if __name__ == '__main__': 433 if __name__ == '__main__':
432 sys.exit(main(sys.argv[1:])) 434 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | pylib/gyp/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698