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 core, used to generate bindings | 5 # Generate IDL interfaces info for core, 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': [ |
(...skipping 11 matching lines...) Expand all Loading... |
22 'target_name': 'core_global_objects', | 22 'target_name': 'core_global_objects', |
23 'variables': { | 23 'variables': { |
24 'idl_files': '<(core_idl_files)', | 24 'idl_files': '<(core_idl_files)', |
25 'output_file': '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | 25 'output_file': '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
26 }, | 26 }, |
27 'includes': ['../../bindings/scripts/global_objects.gypi'], | 27 'includes': ['../../bindings/scripts/global_objects.gypi'], |
28 }, | 28 }, |
29 ################################################################################ | 29 ################################################################################ |
30 { | 30 { |
31 'target_name': 'core_global_constructors_idls', | 31 'target_name': 'core_global_constructors_idls', |
32 'type': 'none', | |
33 'dependencies': [ | 32 'dependencies': [ |
34 'core_global_objects', | 33 'core_global_objects', |
35 ], | 34 ], |
36 'actions': [{ | 35 'variables': { |
37 'action_name': 'generate_core_global_constructors_idls', | 36 'idl_files': '<(core_idl_files)', |
38 'inputs': [ | 37 'global_objects_file': |
39 '<(bindings_scripts_dir)/generate_global_constructors.py', | |
40 '<(bindings_scripts_dir)/utilities.py', | |
41 # Only includes main IDL files (exclude dependencies and testing, | |
42 # which should not appear on global objects). | |
43 '<(core_idl_files_list)', | |
44 '<@(core_idl_files)', | |
45 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | 38 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
46 ], | 39 'global_names_idl_files': [ |
47 'outputs': [ | |
48 '<@(core_global_constructors_generated_idl_files)', | |
49 '<@(core_global_constructors_generated_header_files)', | |
50 ], | |
51 'action': [ | |
52 'python', | |
53 '<(bindings_scripts_dir)/generate_global_constructors.py', | |
54 '--idl-files-list', | |
55 '<(core_idl_files_list)', | |
56 '--global-objects-file', | |
57 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | |
58 '--write-file-only-if-changed', | |
59 '<(write_file_only_if_changed)', | |
60 '--', | |
61 'Window', | 40 'Window', |
62 '<(blink_core_output_dir)/WindowCoreConstructors.idl', | 41 '<(blink_core_output_dir)/WindowCoreConstructors.idl', |
63 'SharedWorkerGlobalScope', | 42 'SharedWorkerGlobalScope', |
64 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', | 43 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', |
65 'DedicatedWorkerGlobalScope', | 44 'DedicatedWorkerGlobalScope', |
66 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl
', | 45 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl
', |
67 ], | 46 ], |
68 'message': | 47 'outputs': [ |
69 'Generating IDL files for constructors on global objects from core', | 48 '<@(core_global_constructors_generated_idl_files)', |
70 }] | 49 '<@(core_global_constructors_generated_header_files)', |
| 50 ], |
| 51 }, |
| 52 'includes': ['../../bindings/scripts/global_constructors.gypi'], |
71 }, | 53 }, |
72 ################################################################################ | 54 ################################################################################ |
73 { | 55 { |
74 'target_name': 'interfaces_info_individual_core', | 56 'target_name': 'interfaces_info_individual_core', |
75 'type': 'none', | 57 'type': 'none', |
76 'dependencies': [ | 58 'dependencies': [ |
77 '../../core/core_generated.gyp:generated_testing_idls', | 59 '../../core/core_generated.gyp:generated_testing_idls', |
78 'core_global_constructors_idls', | 60 'core_global_constructors_idls', |
79 ], | 61 ], |
80 'actions': [{ | 62 'actions': [{ |
(...skipping 22 matching lines...) Expand all Loading... |
103 '--', | 85 '--', |
104 # Generated files must be passed at command line | 86 # Generated files must be passed at command line |
105 '<@(core_generated_idl_files)', | 87 '<@(core_generated_idl_files)', |
106 ], | 88 ], |
107 'message': 'Computing global information about individual IDL files', | 89 'message': 'Computing global information about individual IDL files', |
108 }] | 90 }] |
109 }, | 91 }, |
110 ################################################################################ | 92 ################################################################################ |
111 ], # targets | 93 ], # targets |
112 } | 94 } |
OLD | NEW |