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

Unified Diff: Source/bindings/dictionaries.gypi

Issue 429853002: IDL: Add build target for IDL dictionary impl generation in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/dictionaries.gypi
diff --git a/Source/bindings/dictionaries.gypi b/Source/bindings/dictionaries.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..46f8b6d71d40522bd615a9669c1e9b09f2faf3f9
--- /dev/null
+++ b/Source/bindings/dictionaries.gypi
@@ -0,0 +1,55 @@
+# Copyright (c) 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.
+
+{
+ 'includes': [
+ 'bindings.gypi',
+ # Do not depend on this, see http://crbug.com/358074
+ 'modules/modules.gypi',
+ 'scripts/scripts.gypi',
+ ],
+ 'dependencies': [
+ '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates',
+ '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables',
+ # FIXME: should be interfaces_info_core (w/o modules)
+ # http://crbug.com/358074
+ '<(bindings_scripts_dir)/../modules/generated.gyp:interfaces_info',
+ ],
+ 'rules': [{
+ 'rule_name': 'idl_dictionary',
+ 'extension': 'idl',
+ 'msvs_external_rule': 1,
+ 'inputs': [
+ # Comments in Source/bindings/core/v8/generated.gypi describe why this
+ # rule depend on these.
+ '<@(idl_lexer_parser_files)',
+ '<@(idl_compiler_files)',
+ '<(bindings_scripts_output_dir)/lextab.py',
+ '<(bindings_scripts_output_dir)/parsetab.pickle',
+ '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp',
+ '<(bindings_dir)/IDLExtendedAttributes.txt',
+ '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cpp',
+ '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).h',
+ ],
+ 'action': [
+ 'python',
+ '-S', # skip 'import site' to speed up startup
+ '<(bindings_scripts_dir)/idl_compiler.py',
+ '--cache-dir',
+ '<(bindings_scripts_output_dir)',
+ '--output-dir',
+ '<(SHARED_INTERMEDIATE_DIR)/blink/',
+ '--interfaces-info',
+ '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle',
+ '--write-file-only-if-changed',
+ '<(write_file_only_if_changed)',
+ '--generate-dictionary-impl',
+ '<(RULE_INPUT_PATH)',
+ ],
+ 'message': 'Generating dictionary impl from <(RULE_INPUT_PATH)',
+ }],
+}

Powered by Google App Engine
This is Rietveld 408576698