summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi')
-rw-r--r--chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi59
1 files changed, 59 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi b/chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi
new file mode 100644
index 00000000000..9bf033d7eee
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/bindings/scripts/scripts.gypi
@@ -0,0 +1,59 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'bindings_scripts_dir': '.',
+ 'bindings_scripts_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/scripts',
+ 'jinja_module_files': [
+ # jinja2/__init__.py contains version string, so sufficient for package
+ '<(DEPTH)/third_party/jinja2/__init__.py',
+ '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+ 'idl_lexer_parser_files': [
+ # PLY (Python Lex-Yacc)
+ '<(DEPTH)/third_party/ply/lex.py',
+ '<(DEPTH)/third_party/ply/yacc.py',
+ # Web IDL lexer/parser (base parser)
+ '<(DEPTH)/tools/idl_parser/idl_lexer.py',
+ '<(DEPTH)/tools/idl_parser/idl_node.py',
+ '<(DEPTH)/tools/idl_parser/idl_parser.py',
+ # Blink IDL lexer/parser/constructor
+ 'blink_idl_lexer.py',
+ 'blink_idl_parser.py',
+ ],
+ 'idl_compiler_files': [
+ 'idl_compiler.py',
+ # Blink IDL front end (ex-lexer/parser)
+ 'idl_definitions.py',
+ 'idl_reader.py',
+ 'idl_types.py',
+ 'idl_validator.py',
+ 'interface_dependency_resolver.py',
+ # V8 code generator
+ 'code_generator_v8.py',
+ 'v8_attributes.py',
+ 'v8_callback_interface.py',
+ 'v8_globals.py',
+ 'v8_interface.py',
+ 'v8_methods.py',
+ 'v8_types.py',
+ 'v8_utilities.py',
+ ],
+
+ 'conditions': [
+ # These scripts can skip writing generated files if they are identical
+ # to the already existing files, which avoids further build steps, like
+ # recompilation. However, a dependency (earlier build step) having a
+ # newer timestamp than an output (later build step) confuses some build
+ # systems, so only use this on ninja, which explicitly supports this use
+ # case (gyp turns all actions into ninja restat rules).
+ ['"<(GENERATOR)"=="ninja"', {
+ 'write_file_only_if_changed': '1',
+ }, {
+ 'write_file_only_if_changed': '0',
+ }],
+ ],
+ },
+}