| Index: Source/bindings/scripts/interfaces_info_individual.gypi
|
| diff --git a/Source/bindings/scripts/interfaces_info_individual.gypi b/Source/bindings/scripts/interfaces_info_individual.gypi
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..32f72b5011e430bcfc67f756429507c577714f8a
|
| --- /dev/null
|
| +++ b/Source/bindings/scripts/interfaces_info_individual.gypi
|
| @@ -0,0 +1,70 @@
|
| +# 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 information about individual interfaces defined in a component.
|
| +#
|
| +# To use this, create a gyp target with the following form:
|
| +# {
|
| +# 'target_name': 'interfaces_info_individual_component',
|
| +# 'dependencies': [
|
| +# 'generated_idls_target',
|
| +# ],
|
| +# 'variables': {
|
| +# 'static_idl_files': '<(component_static_idl_files)',
|
| +# 'generated_idl_files': '<(component_generated_idl_files)',
|
| +# 'component_dir': 'component',
|
| +# 'output_file':
|
| +# '<(bindings_core_output_dir)/InterfacesInfoComponentIndividual.pickle',
|
| +# },
|
| +# 'includes': ['path/to/this/gypi/file'],
|
| +# },
|
| +#
|
| +# Required variables:
|
| +# static_idl_files - All static .idl files for the component, including
|
| +# dependencies and testing.
|
| +# generated_idl_files - All generated .idl files for the component.
|
| +# (Must be separate from static because build dir not know at gyp time.)
|
| +# component_dir - Relative directory for component, e.g., 'core'.
|
| +# output_file - Pickle file containing output.
|
| +#
|
| +# Design document: http://www.chromium.org/developers/design-documents/idl-build
|
| +
|
| +{
|
| + 'type': 'none',
|
| + 'actions': [{
|
| + 'action_name': 'compute_<(_target_name)',
|
| + 'message': 'Computing global information about individual IDL files for <(_target_name)',
|
| + 'variables': {
|
| + 'static_idl_files_list':
|
| + '<|(<(_target_name)_static_idl_files_list.tmp <@(static_idl_files))',
|
| + },
|
| + 'inputs': [
|
| + '<(bindings_scripts_dir)/compute_interfaces_info_individual.py',
|
| + '<(bindings_scripts_dir)/utilities.py',
|
| + '<(static_idl_files_list)',
|
| + '<@(static_idl_files)',
|
| + '<@(generated_idl_files)',
|
| + ],
|
| + 'outputs': [
|
| + '<(output_file)',
|
| + ],
|
| +
|
| + 'action': [
|
| + 'python',
|
| + '<(bindings_scripts_dir)/compute_interfaces_info_individual.py',
|
| + '--component-dir',
|
| + '<(component_dir)',
|
| + '--idl-files-list',
|
| + '<(static_idl_files_list)',
|
| + '--interfaces-info-file',
|
| + '<(output_file)',
|
| + '--write-file-only-if-changed',
|
| + '<(write_file_only_if_changed)',
|
| + '--',
|
| + # Generated files must be passed at command line
|
| + '<@(generated_idl_files)',
|
| + ],
|
| + }],
|
| +}
|
|
|