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

Unified Diff: Source/bindings/scripts/interfaces_info_overall.gypi

Issue 328643002: IDL build: factor out interface_info actions into GYP templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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
« no previous file with comments | « Source/bindings/scripts/interfaces_info_individual.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/interfaces_info_overall.gypi
diff --git a/Source/bindings/scripts/interfaces_info_overall.gypi b/Source/bindings/scripts/interfaces_info_overall.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..024fb2a651198e479498e7cbd8e9b9deaf9e0048
--- /dev/null
+++ b/Source/bindings/scripts/interfaces_info_overall.gypi
@@ -0,0 +1,56 @@
+# 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.
+#
+# This file is meant to be included into a target to provide an action
+# to compute overall information about interfaces defined in a component.
+#
+# To use this, create a gyp target with the following form:
+# {
+# 'target_name': 'interfaces_info_component',
+# 'dependencies': [
+# 'interfaces_info_individual_base_component',
+# 'interfaces_info_individual_component',
+# ],
+# 'variables': {
+# 'input_files': [
+# '<(bindings_base_component_output_dir)/InterfacesInfoBaseComponentIndividual.pickle',
+# '<(bindings_component_output_dir)/InterfacesInfoComponentIndividual.pickle',
+# ],
+# 'output_file':
+# '<(bindings_component_output_dir)/InterfacesInfoComponent.pickle',
+# },
+# 'includes': ['path/to/this/gypi/file'],
+# },
+#
+# Required variables:
+# input_files - Pickle files containing info about individual interfaces, both
+# current component and any base components.
+# output_file - Pickle file containing output (overall info).
+#
+# Design document: http://www.chromium.org/developers/design-documents/idl-build
+
+{
+ 'type': 'none',
+ 'actions': [{
+ 'action_name': 'compute_<(_target_name)',
+ 'message': 'Computing overall global information about IDL files for <(_target_name)',
+
+ 'inputs': [
+ '<(bindings_scripts_dir)/compute_interfaces_info_overall.py',
+ '<@(input_files)',
+ ],
+ 'outputs': [
+ '<(output_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(bindings_scripts_dir)/compute_interfaces_info_overall.py',
+ '--write-file-only-if-changed',
+ '<(write_file_only_if_changed)',
+ '--',
+ '<@(input_files)',
+ '<(output_file)',
+ ],
+ }],
+}
« no previous file with comments | « Source/bindings/scripts/interfaces_info_individual.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698