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

Unified Diff: Source/bindings/core_bindings_generated.gyp

Issue 212983010: Make EventInterfaces.in build step not depend on bindings generation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reorder Created 6 years, 9 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/core_bindings_generated.gyp
diff --git a/Source/bindings/core_bindings_generated.gyp b/Source/bindings/core_bindings_generated.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..4f46a6f85e9fb85ed2d53a9a88ca2d867d5def4f
--- /dev/null
+++ b/Source/bindings/core_bindings_generated.gyp
@@ -0,0 +1,52 @@
+# 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.
+
+# Generate EventInterfaces.in, used by core/ but depends on modules/,
+# hence placed in bindings/ to avoid direct core/ -> modules/ dependency.
+
+{
+ 'includes': [
+ 'bindings.gypi',
+ '../core/core.gypi',
+ '../modules/modules.gypi',
+ ],
+
+ 'targets': [
+ {
+ 'target_name': 'core_bindings_generated',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'event_interfaces',
+ 'variables': {
+ 'event_idl_files': [
+ '<@(core_event_idl_files)',
+ '<@(modules_event_idl_files)',
+ ],
+ 'event_idl_files_list':
+ '<|(event_idl_files_list.tmp <@(event_idl_files))',
+ },
+ 'inputs': [
+ '../bindings/scripts/generate_event_interfaces.py',
+ '../bindings/scripts/utilities.py',
+ '<@(event_idl_files)',
+ ],
+ 'outputs': [
+ '<(blink_output_dir)/EventInterfaces.in',
+ ],
+ 'action': [
+ 'python',
+ '../bindings/scripts/generate_event_interfaces.py',
+ '--event-idl-files-list',
+ '<(event_idl_files_list)',
+ '--event-interfaces-file',
+ '<(blink_output_dir)/EventInterfaces.in',
+ '--write-file-only-if-changed',
+ '<(write_file_only_if_changed)',
+ ],
+ },
+ ],
+ },
+ ], # targets
+}

Powered by Google App Engine
This is Rietveld 408576698