1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This file is meant to be included into a target to provide an action
6 # to compute information about individual interfaces defined in a component.
8 # To use this, create a gyp target with the following form:
10 # 'target_name': 'interfaces_info_individual_component',
12 # 'generated_idls_target',
15 # 'static_idl_files': '<(component_static_idl_files)',
16 # 'generated_idl_files': '<(component_generated_idl_files)',
18 # '<(bindings_core_output_dir)/InterfacesInfoComponentIndividual.pickle',
20 # 'includes': ['path/to/this/gypi/file'],
24 # static_idl_files - All static .idl files for the component, including
25 # dependencies and testing.
26 # generated_idl_files - All generated .idl files for the component.
27 # (Must be separate from static because build dir not know at gyp time.)
28 # output_file - Pickle file containing output.
30 # Design document: http://www.chromium.org/developers/design-documents/idl-build
35 'action_name': 'compute_<(_target_name)',
36 'message': 'Computing global information about individual IDL files for <(_target_name)',
38 'static_idl_files_list':
39 '<|(<(_target_name)_static_idl_files_list.tmp <@(static_idl_files))',
42 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py',
43 '<(bindings_scripts_dir)/utilities.py',
44 '<(static_idl_files_list)',
45 '<@(static_idl_files)',
46 '<@(generated_idl_files)',
54 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py',
56 '<(static_idl_files_list)',
57 '--interfaces-info-file',
59 '--write-file-only-if-changed',
60 '<(write_file_only_if_changed)',
62 # Generated files must be passed at command line
63 '<@(generated_idl_files)',