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 # Generate IDL interfaces info for modules, used to generate bindings | 5 # Generate IDL interfaces info for modules, used to generate bindings |
6 # | 6 # |
7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build | 7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
11 '../bindings.gypi', | 11 '../bindings.gypi', |
| 12 '../core/core.gypi', |
12 '../scripts/scripts.gypi', | 13 '../scripts/scripts.gypi', |
13 'idl.gypi', | 14 'idl.gypi', |
| 15 'modules.gypi', |
14 ], | 16 ], |
15 | 17 |
16 'targets': [ | 18 'targets': [ |
17 ################################################################################ | 19 ################################################################################ |
18 { | 20 { |
19 'target_name': 'interfaces_info_individual_modules', | 21 'target_name': 'interfaces_info_individual_modules', |
20 'type': 'none', | 22 'type': 'none', |
21 'dependencies': [ | 23 'dependencies': [ |
22 # FIXME: should be modules_generated_idls | 24 # FIXME: should be modules_generated_idls |
23 # http://crbug.com/358074 | 25 # http://crbug.com/358074 |
24 '../generated.gyp:generated_idls', | 26 '../generated.gyp:generated_idls', |
25 ], | 27 ], |
26 'actions': [{ | 28 'actions': [{ |
27 'action_name': 'compute_interfaces_info_individual_modules', | 29 'action_name': 'compute_interfaces_info_individual_modules', |
28 'inputs': [ | 30 'inputs': [ |
29 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 31 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
30 '<(bindings_scripts_dir)/utilities.py', | 32 '<(bindings_scripts_dir)/utilities.py', |
31 '<(modules_static_idl_files_list)', | 33 '<(modules_static_idl_files_list)', |
32 '<@(modules_static_idl_files)', | 34 '<@(modules_static_idl_files)', |
33 # No generated files currently, will add with constructors | 35 # No generated files currently, will add with constructors |
34 # '<@(modules_generated_idl_files)', | 36 # '<@(modules_generated_idl_files)', |
35 ], | 37 ], |
36 'outputs': [ | 38 'outputs': [ |
37 '<(blink_output_dir)/InterfacesInfoModulesIndividual.pickle', | 39 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
38 ], | 40 ], |
39 'action': [ | 41 'action': [ |
40 'python', | 42 'python', |
41 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', | 43 '<(bindings_scripts_dir)/compute_interfaces_info_individual.py', |
42 '--idl-files-list', | 44 '--idl-files-list', |
43 '<(modules_static_idl_files_list)', | 45 '<(modules_static_idl_files_list)', |
44 '--interfaces-info-file', | 46 '--interfaces-info-file', |
45 '<(blink_output_dir)/InterfacesInfoModulesIndividual.pickle', | 47 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
46 '--write-file-only-if-changed', | 48 '--write-file-only-if-changed', |
47 '<(write_file_only_if_changed)', | 49 '<(write_file_only_if_changed)', |
48 # No generated files currently, will add with constructors | 50 # No generated files currently, will add with constructors |
49 # '--', | 51 # '--', |
50 # Generated files must be passed at command line | 52 # Generated files must be passed at command line |
51 # '<@(modules_generated_idl_files)', | 53 # '<@(modules_generated_idl_files)', |
52 ], | 54 ], |
53 'message': 'Computing global information about individual IDL files', | 55 'message': 'Computing global information about individual IDL files', |
54 }] | 56 }] |
55 }, | 57 }, |
56 ################################################################################ | 58 ################################################################################ |
57 { | 59 { |
58 'target_name': 'interfaces_info', | 60 'target_name': 'interfaces_info', |
59 'type': 'none', | 61 'type': 'none', |
60 'dependencies': [ | 62 'dependencies': [ |
61 '../core/generated.gyp:interfaces_info_individual_core', | 63 '../core/generated.gyp:interfaces_info_individual_core', |
62 'interfaces_info_individual_modules', | 64 'interfaces_info_individual_modules', |
63 ], | 65 ], |
64 'actions': [{ | 66 'actions': [{ |
65 'action_name': 'compute_interfaces_info_overall', | 67 'action_name': 'compute_interfaces_info_overall', |
66 'inputs': [ | 68 'inputs': [ |
67 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', | 69 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', |
68 '<(blink_output_dir)/InterfacesInfoCoreIndividual.pickle', | 70 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
69 '<(blink_output_dir)/InterfacesInfoModulesIndividual.pickle', | 71 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
70 ], | 72 ], |
71 'outputs': [ | 73 'outputs': [ |
72 '<(blink_output_dir)/InterfacesInfo.pickle', | 74 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
73 ], | 75 ], |
74 'action': [ | 76 'action': [ |
75 'python', | 77 'python', |
76 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', | 78 '<(bindings_scripts_dir)/compute_interfaces_info_overall.py', |
77 '--write-file-only-if-changed', | 79 '--write-file-only-if-changed', |
78 '<(write_file_only_if_changed)', | 80 '<(write_file_only_if_changed)', |
79 '--', | 81 '--', |
80 '<(blink_output_dir)/InterfacesInfoCoreIndividual.pickle', | 82 '<(bindings_core_output_dir)/InterfacesInfoCoreIndividual.pickle', |
81 '<(blink_output_dir)/InterfacesInfoModulesIndividual.pickle', | 83 '<(bindings_modules_output_dir)/InterfacesInfoModulesIndividual.pickle', |
82 '<(blink_output_dir)/InterfacesInfo.pickle', | 84 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
83 ], | 85 ], |
84 'message': 'Computing overall global information about IDL files', | 86 'message': 'Computing overall global information about IDL files', |
85 }] | 87 }] |
86 }, | 88 }, |
87 ################################################################################ | 89 ################################################################################ |
88 ], # targets | 90 ], # targets |
89 } | 91 } |
OLD | NEW |