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.
7 'bindings_scripts_dir': '.',
8 'bindings_scripts_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/scripts',
9 'jinja_module_files': [
10 # jinja2/__init__.py contains version string, so sufficient for package
11 '<(DEPTH)/third_party/jinja2/__init__.py',
12 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
14 'idl_lexer_parser_files': [
15 # PLY (Python Lex-Yacc)
16 '<(DEPTH)/third_party/ply/lex.py',
17 '<(DEPTH)/third_party/ply/yacc.py',
18 # Web IDL lexer/parser (base parser)
19 '<(DEPTH)/tools/idl_parser/idl_lexer.py',
20 '<(DEPTH)/tools/idl_parser/idl_node.py',
21 '<(DEPTH)/tools/idl_parser/idl_parser.py',
22 # Blink IDL lexer/parser/constructor
24 'blink_idl_parser.py',
26 'idl_compiler_files': [
28 # Blink IDL front end (ex-lexer/parser)
33 'interface_dependency_resolver.py',
35 'code_generator_v8.py',
37 'v8_callback_interface.py',
47 '<(bindings_scripts_output_dir)/lextab.py',
48 '<(bindings_scripts_output_dir)/parsetab.pickle',
49 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp',
53 # These scripts can skip writing generated files if they are identical
54 # to the already existing files, which avoids further build steps, like
55 # recompilation. However, a dependency (earlier build step) having a
56 # newer timestamp than an output (later build step) confuses some build
57 # systems, so only use this on ninja, which explicitly supports this use
58 # case (gyp turns all actions into ninja restat rules).
59 ['"<(GENERATOR)"=="ninja"', {
60 'write_file_only_if_changed': '1',
62 'write_file_only_if_changed': '0',