OLD | NEW |
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 '<(SHARED_INTERMEDIATE_DIR)/ServiceWorkerGlobalScopeConstructors.idl', | 106 '<(SHARED_INTERMEDIATE_DIR)/ServiceWorkerGlobalScopeConstructors.idl', |
107 ], | 107 ], |
108 | 108 |
109 # Python source | 109 # Python source |
110 'jinja_module_files': [ | 110 'jinja_module_files': [ |
111 # jinja2/__init__.py contains version string, so sufficient for package | 111 # jinja2/__init__.py contains version string, so sufficient for package |
112 '<(DEPTH)/third_party/jinja2/__init__.py', | 112 '<(DEPTH)/third_party/jinja2/__init__.py', |
113 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep | 113 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep |
114 ], | 114 ], |
115 'idl_compiler_files': [ | 115 'idl_compiler_files': [ |
116 'scripts/unstable/idl_compiler.py', | 116 'scripts/idl_compiler.py', |
117 # PLY (Python Lex-Yacc) | 117 # PLY (Python Lex-Yacc) |
118 '<(DEPTH)/third_party/ply/lex.py', | 118 '<(DEPTH)/third_party/ply/lex.py', |
119 '<(DEPTH)/third_party/ply/yacc.py', | 119 '<(DEPTH)/third_party/ply/yacc.py', |
120 # Web IDL lexer/parser (base parser) | 120 # Web IDL lexer/parser (base parser) |
121 '<(DEPTH)/tools/idl_parser/idl_lexer.py', | 121 '<(DEPTH)/tools/idl_parser/idl_lexer.py', |
122 '<(DEPTH)/tools/idl_parser/idl_node.py', | 122 '<(DEPTH)/tools/idl_parser/idl_node.py', |
123 '<(DEPTH)/tools/idl_parser/idl_parser.py', | 123 '<(DEPTH)/tools/idl_parser/idl_parser.py', |
124 # Blink IDL lexer/parser/constructor | 124 # Blink IDL lexer/parser/constructor |
125 'scripts/unstable/blink_idl_lexer.py', | 125 'scripts/blink_idl_lexer.py', |
126 'scripts/unstable/blink_idl_parser.py', | 126 'scripts/blink_idl_parser.py', |
127 'scripts/unstable/idl_definitions.py', | 127 'scripts/idl_definitions.py', |
128 'scripts/unstable/idl_definitions_builder.py', | 128 'scripts/idl_definitions_builder.py', |
129 'scripts/unstable/idl_reader.py', | 129 'scripts/idl_reader.py', |
130 'scripts/unstable/idl_validator.py', | 130 'scripts/idl_validator.py', |
131 'scripts/unstable/interface_dependency_resolver.py', | 131 'scripts/interface_dependency_resolver.py', |
132 # V8 code generator | 132 # V8 code generator |
133 'scripts/unstable/code_generator_v8.py', | 133 'scripts/code_generator_v8.py', |
134 'scripts/unstable/v8_attributes.py', | 134 'scripts/v8_attributes.py', |
135 'scripts/unstable/v8_callback_interface.py', | 135 'scripts/v8_callback_interface.py', |
136 'scripts/unstable/v8_globals.py', | 136 'scripts/v8_globals.py', |
137 'scripts/unstable/v8_interface.py', | 137 'scripts/v8_interface.py', |
138 'scripts/unstable/v8_methods.py', | 138 'scripts/v8_methods.py', |
139 'scripts/unstable/v8_types.py', | 139 'scripts/v8_types.py', |
140 'scripts/unstable/v8_utilities.py', | 140 'scripts/v8_utilities.py', |
141 ], | 141 ], |
142 | 142 |
143 # Jinja templates | 143 # Jinja templates |
144 'code_generator_template_files': [ | 144 'code_generator_template_files': [ |
145 'templates/attributes.cpp', | 145 'templates/attributes.cpp', |
146 'templates/callback_interface.cpp', | 146 'templates/callback_interface.cpp', |
147 'templates/callback_interface.h', | 147 'templates/callback_interface.h', |
148 'templates/interface_base.cpp', | 148 'templates/interface_base.cpp', |
149 'templates/interface.cpp', | 149 'templates/interface.cpp', |
150 'templates/interface.h', | 150 'templates/interface.h', |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 { | 226 { |
227 # A separate pre-caching step is *required* to use bytecode caching in | 227 # A separate pre-caching step is *required* to use bytecode caching in |
228 # Jinja (which improves speed significantly), as the bytecode cache is | 228 # Jinja (which improves speed significantly), as the bytecode cache is |
229 # not concurrency-safe on write; details in code_generator_v8.py. | 229 # not concurrency-safe on write; details in code_generator_v8.py. |
230 'target_name': 'cached_jinja_templates', | 230 'target_name': 'cached_jinja_templates', |
231 'type': 'none', | 231 'type': 'none', |
232 'actions': [{ | 232 'actions': [{ |
233 'action_name': 'cache_jinja_templates', | 233 'action_name': 'cache_jinja_templates', |
234 'inputs': [ | 234 'inputs': [ |
235 '<@(jinja_module_files)', | 235 '<@(jinja_module_files)', |
236 'scripts/unstable/code_generator_v8.py', | 236 'scripts/code_generator_v8.py', |
237 '<@(code_generator_template_files)', | 237 '<@(code_generator_template_files)', |
238 ], | 238 ], |
239 'outputs': [ | 239 'outputs': [ |
240 '<(bindings_output_dir)/cached_jinja_templates.stamp', # Dummy to tra
ck dependency | 240 '<(bindings_output_dir)/cached_jinja_templates.stamp', # Dummy to tra
ck dependency |
241 ], | 241 ], |
242 'action': [ | 242 'action': [ |
243 'python', | 243 'python', |
244 'scripts/unstable/code_generator_v8.py', | 244 'scripts/code_generator_v8.py', |
245 '<(bindings_output_dir)', | 245 '<(bindings_output_dir)', |
246 '<(bindings_output_dir)/cached_jinja_templates.stamp', | 246 '<(bindings_output_dir)/cached_jinja_templates.stamp', |
247 ], | 247 ], |
248 'message': 'Caching bytecode of Jinja templates', | 248 'message': 'Caching bytecode of Jinja templates', |
249 }], | 249 }], |
250 }, | 250 }, |
251 { | 251 { |
252 'target_name': 'individual_generated_bindings', | 252 'target_name': 'individual_generated_bindings', |
253 'type': 'none', | 253 'type': 'none', |
254 # The 'binding' rule generates .h files, so mark as hard_dependency, per: | 254 # The 'binding' rule generates .h files, so mark as hard_dependency, per: |
(...skipping 30 matching lines...) Expand all Loading... |
285 ], | 285 ], |
286 'outputs': [ | 286 'outputs': [ |
287 '<(bindings_output_dir)/V8<(RULE_INPUT_ROOT).cpp', | 287 '<(bindings_output_dir)/V8<(RULE_INPUT_ROOT).cpp', |
288 '<(bindings_output_dir)/V8<(RULE_INPUT_ROOT).h', | 288 '<(bindings_output_dir)/V8<(RULE_INPUT_ROOT).h', |
289 ], | 289 ], |
290 # sanitize-win-build-log.sed uses a regex which matches this command | 290 # sanitize-win-build-log.sed uses a regex which matches this command |
291 # line (Python script + .idl file being processed). | 291 # line (Python script + .idl file being processed). |
292 # Update that regex if command line changes (other than changing flags) | 292 # Update that regex if command line changes (other than changing flags) |
293 'action': [ | 293 'action': [ |
294 'python', | 294 'python', |
295 'scripts/unstable/idl_compiler.py', | 295 'scripts/idl_compiler.py', |
296 '--output-dir', | 296 '--output-dir', |
297 '<(bindings_output_dir)', | 297 '<(bindings_output_dir)', |
298 '--idl-attributes-file', | 298 '--idl-attributes-file', |
299 'IDLExtendedAttributes.txt', | 299 'IDLExtendedAttributes.txt', |
300 '--interfaces-info', | 300 '--interfaces-info', |
301 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfacesInfo.pickle', | 301 '<(SHARED_INTERMEDIATE_DIR)/blink/InterfacesInfo.pickle', |
302 '<@(write_file_only_if_changed)', | 302 '<@(write_file_only_if_changed)', |
303 '<(RULE_INPUT_PATH)', | 303 '<(RULE_INPUT_PATH)', |
304 ], | 304 ], |
305 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 305 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
(...skipping 29 matching lines...) Expand all Loading... |
335 { | 335 { |
336 'target_name': 'generated_bindings', | 336 'target_name': 'generated_bindings', |
337 'type': 'none', | 337 'type': 'none', |
338 'dependencies': [ | 338 'dependencies': [ |
339 'aggregate_generated_bindings', | 339 'aggregate_generated_bindings', |
340 'individual_generated_bindings', | 340 'individual_generated_bindings', |
341 ], | 341 ], |
342 }, | 342 }, |
343 ], | 343 ], |
344 } | 344 } |
OLD | NEW |