OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # This file is meant to be included into a target to provide an action | 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. | 6 # to compute information about individual interfaces defined in a component. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'interfaces_info_individual_component', | 10 # 'target_name': 'interfaces_info_individual_component', |
11 # 'dependencies': [ | 11 # 'dependencies': [ |
12 # 'generated_idls_target', | 12 # 'generated_idls_target', |
13 # ], | 13 # ], |
14 # 'variables': { | 14 # 'variables': { |
15 # 'static_idl_files': '<(component_static_idl_files)', | 15 # 'static_idl_files': '<(component_static_idl_files)', |
16 # 'generated_idl_files': '<(component_generated_idl_files)', | 16 # 'generated_idl_files': '<(component_generated_idl_files)', |
17 # 'output_file': | 17 # 'output_file': |
18 # '<(bindings_core_output_dir)/InterfacesInfoComponentIndividual.pickle', | 18 # '<(bindings_core_output_dir)/InterfacesInfoComponentIndividual.pickle', |
19 # }, | 19 # }, |
20 # 'includes': ['path/to/this/gypi/file'], | 20 # 'includes': ['path/to/this/gypi/file'], |
21 # }, | 21 # }, |
22 # | 22 # |
23 # Required variables: | 23 # Required variables: |
24 # static_idl_files - All static .idl files for the component, including | 24 # static_idl_files - All static .idl files for the component, including |
25 # dependencies and testing. | 25 # dependencies and testing. |
26 # generated_idl_files - All generated .idl files for the component. | 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.) | 27 # (Must be separate from static because build dir not know at gyp time.) |
28 # output_file - Pickle file containing output. | 28 # interfaces_info_file - Output pickle file containing interfaces info. |
| 29 # component_info_file - Output pickle file containing component-wide info. |
29 # | 30 # |
30 # Design document: http://www.chromium.org/developers/design-documents/idl-build | 31 # Design document: http://www.chromium.org/developers/design-documents/idl-build |
31 | 32 |
32 { | 33 { |
33 'type': 'none', | 34 'type': 'none', |
34 'actions': [{ | 35 'actions': [{ |
35 'action_name': 'compute_<(_target_name)', | 36 'action_name': 'compute_<(_target_name)', |
36 'message': 'Computing global information about individual IDL files for <(_t
arget_name)', | 37 'message': 'Computing global information about individual IDL files for <(_t
arget_name)', |
37 'variables': { | 38 'variables': { |
38 'static_idl_files_list': | 39 'static_idl_files_list': |
39 '<|(<(_target_name)_static_idl_files_list.tmp <@(static_idl_files))', | 40 '<|(<(_target_name)_static_idl_files_list.tmp <@(static_idl_files))', |
40 }, | 41 }, |
41 'inputs': [ | 42 'inputs': [ |
42 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 43 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
43 '<(bindings_scripts_dir)/utilities.py', | 44 '<(bindings_scripts_dir)/utilities.py', |
44 '<(static_idl_files_list)', | 45 '<(static_idl_files_list)', |
45 '<@(static_idl_files)', | 46 '<@(static_idl_files)', |
46 '<@(generated_idl_files)', | 47 '<@(generated_idl_files)', |
47 ], | 48 ], |
48 'outputs': [ | 49 'outputs': [ |
49 '<(output_file)', | 50 '<(interfaces_info_file)', |
| 51 '<(component_info_file)', |
50 ], | 52 ], |
51 | 53 |
52 'action': [ | 54 'action': [ |
53 'python', | 55 'python', |
54 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 56 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
55 '--cache-directory', | 57 '--cache-directory', |
56 '<(cache_directory)', | 58 '<(cache_directory)', |
57 '--idl-files-list', | 59 '--idl-files-list', |
58 '<(static_idl_files_list)', | 60 '<(static_idl_files_list)', |
59 '--interfaces-info-file', | 61 '--interfaces-info-file', |
60 '<(output_file)', | 62 '<(interfaces_info_file)', |
| 63 '--component-info-file', |
| 64 '<(component_info_file)', |
61 '--write-file-only-if-changed', | 65 '--write-file-only-if-changed', |
62 '<(write_file_only_if_changed)', | 66 '<(write_file_only_if_changed)', |
63 '--', | 67 '--', |
64 # Generated files must be passed at command line | 68 # Generated files must be passed at command line |
65 '<@(generated_idl_files)', | 69 '<@(generated_idl_files)', |
66 ], | 70 ], |
67 }], | 71 }], |
68 } | 72 } |
OLD | NEW |