OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
| 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
| 7 import("//third_party/WebKit/Source/bindings/templates/templates.gni") |
| 8 |
| 9 # A separate pre-caching step is *not required* to use lex/parse table |
| 10 # caching in PLY, as the caches are concurrency-safe. |
| 11 # However, pre-caching ensures that all compiler processes use the cached |
| 12 # files (hence maximizing speed), instead of early processes building the |
| 13 # tables themselves (as they've not yet been written when they start). |
| 14 # |
| 15 # GYP version: scripts.gyp:cached_lex_yacc_tables |
| 16 action("cached_lex_yacc_tables") { |
| 17 script = "blink_idl_parser.py" |
| 18 |
| 19 source_prereqs = idl_lexer_parser_files |
| 20 outputs = [ |
| 21 "$bindings_scripts_output_dir/lextab.py", |
| 22 "$bindings_scripts_output_dir/parsetab.pickle", |
| 23 ] |
| 24 |
| 25 args = [ rebase_path(bindings_output_dir, root_build_dir) ] |
| 26 } |
| 27 |
| 28 # A separate pre-caching step is *required* to use bytecode caching in |
| 29 # Jinja (which improves speed significantly), as the bytecode cache is |
| 30 # not concurrency-safe on write; details in code_generator_v8.py. |
| 31 # |
| 32 # GYP version: scripts.gyp:cached_jinja_templates |
| 33 action("cached_jinja_templates") { |
| 34 script = "code_generator_v8.py" |
| 35 |
| 36 source_prereqs = jinja_module_files + [ "code_generator_v8.py" ] + |
| 37 code_generator_template_files |
| 38 # Dummy file to track dependency. |
| 39 stamp_file = "$bindings_scripts_output_dir/cached_jinja_templates.stamp" |
| 40 outputs = [ stamp_file ] |
| 41 |
| 42 args = [ |
| 43 rebase_path(bindings_scripts_output_dir, root_build_dir), |
| 44 rebase_path(stamp_file, root_build_dir), |
| 45 ] |
| 46 } |
OLD | NEW |