Chromium Code Reviews| 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 bindings for modules, plus aggregate bindings files. | 5 # Generate IDL bindings for modules, plus aggregate bindings files. |
| 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 # ../../.. == Source | |
| 12 '../../../bindings/bindings.gypi', | |
|
haraken
2014/06/03 15:31:10
FIXME: remove this?
| |
| 13 '../../../bindings/modules/idl.gypi', | |
| 14 '../../../bindings/modules/modules.gypi', | |
|
haraken
2014/06/03 15:31:10
Doesn't this GYP depend on ../../../bindings/modul
Nils Barth (inactive)
2014/06/04 03:36:31
Handled in idl.gypi.
| |
| 15 '../../../bindings/scripts/scripts.gypi', | |
| 11 '../../../modules/modules.gypi', | 16 '../../../modules/modules.gypi', |
| 12 '../../bindings.gypi', | |
| 13 '../../core/idl.gypi', | |
| 14 '../../scripts/scripts.gypi', | |
| 15 '../idl.gypi', | |
| 16 '../modules.gypi', | |
| 17 'generated.gypi', | 17 'generated.gypi', |
|
haraken
2014/06/03 15:31:10
I wonder why this GYP doesn't depend on anything i
Nils Barth (inactive)
2014/06/04 03:36:32
B/c core and bindings/core are handled in bindings
| |
| 18 ], | 18 ], |
| 19 | 19 |
| 20 'variables': { | |
| 21 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces | |
| 22 # Write lists of main IDL files to a file, so that the command lines don't | |
| 23 # exceed OS length limits. | |
| 24 'modules_idl_files_list': '<|(modules_idl_files_list.tmp <@(modules_idl_file s))', | |
| 25 | |
| 26 # Interface IDL files: generate individual bindings (includes testing) | |
| 27 'modules_interface_idl_files': [ | |
| 28 # No testing or generated interface IDL files in modules currently | |
| 29 '<@(modules_idl_files)', | |
| 30 ], | |
| 31 }, | |
| 32 | |
| 33 'targets': [ | 20 'targets': [ |
| 34 ################################################################################ | 21 ################################################################################ |
| 35 { | 22 { |
| 36 'target_name': 'bindings_modules_generated_individual', | 23 'target_name': 'bindings_modules_v8_generated_individual', |
| 37 'type': 'none', | 24 'type': 'none', |
| 38 # The 'binding' rule generates .h files, so mark as hard_dependency, per: | 25 # The 'binding' rule generates .h files, so mark as hard_dependency, per: |
| 39 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependenci es | 26 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependenci es |
| 40 'hard_dependency': 1, | 27 'hard_dependency': 1, |
| 41 'dependencies': [ | 28 'dependencies': [ |
| 29 '../../core/generated.gyp:core_global_constructors_idls', | |
| 30 '../generated.gyp:modules_global_constructors_idls', | |
| 42 '../generated.gyp:interfaces_info', | 31 '../generated.gyp:interfaces_info', |
| 43 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', | 32 '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates', |
| 44 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', | 33 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables', |
| 45 ], | 34 ], |
| 46 'sources': [ | 35 'sources': [ |
| 47 '<@(modules_interface_idl_files)', | 36 '<@(modules_interface_idl_files)', |
| 48 ], | 37 ], |
| 49 'rules': [{ | 38 'rules': [{ |
| 50 'rule_name': 'binding', | 39 'rule_name': 'binding', |
| 51 'extension': 'idl', | 40 'extension': 'idl', |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 78 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 90 '--write-file-only-if-changed', | 79 '--write-file-only-if-changed', |
| 91 '<(write_file_only_if_changed)', | 80 '<(write_file_only_if_changed)', |
| 92 '<(RULE_INPUT_PATH)', | 81 '<(RULE_INPUT_PATH)', |
| 93 ], | 82 ], |
| 94 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 83 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
| 95 }], | 84 }], |
| 96 }, | 85 }, |
| 97 ################################################################################ | 86 ################################################################################ |
| 98 { | 87 { |
| 99 'target_name': 'bindings_modules_generated_aggregate', | 88 'target_name': 'bindings_modules_v8_generated_aggregate', |
| 100 'type': 'none', | 89 'type': 'none', |
| 101 'actions': [{ | 90 'actions': [{ |
| 102 'action_name': 'generate_aggregate_bindings_modules', | 91 'action_name': 'generate_aggregate_bindings_modules_v8', |
| 103 'inputs': [ | 92 'inputs': [ |
| 104 '<(bindings_scripts_dir)/aggregate_generated_bindings.py', | 93 '<(bindings_scripts_dir)/aggregate_generated_bindings.py', |
| 105 '<(modules_idl_files_list)', | 94 '<(modules_idl_files_list)', |
| 106 ], | 95 ], |
| 107 'outputs': [ | 96 'outputs': [ |
| 108 '<@(bindings_modules_generated_aggregate_files)', | 97 '<@(bindings_modules_v8_generated_aggregate_files)', |
| 109 ], | 98 ], |
| 110 'action': [ | 99 'action': [ |
| 111 'python', | 100 'python', |
| 112 '<(bindings_scripts_dir)/aggregate_generated_bindings.py', | 101 '<(bindings_scripts_dir)/aggregate_generated_bindings.py', |
| 113 'modules', | 102 'modules', |
| 114 '<(modules_idl_files_list)', | 103 '<(modules_idl_files_list)', |
| 115 '--', | 104 '--', |
| 116 '<@(bindings_modules_generated_aggregate_files)', | 105 '<@(bindings_modules_v8_generated_aggregate_files)', |
| 117 ], | 106 ], |
| 118 'message': 'Generating aggregate generated modules bindings files', | 107 'message': 'Generating aggregate generated modules V8 bindings files', |
| 119 }], | 108 }], |
| 120 }, | 109 }, |
| 121 ################################################################################ | 110 ################################################################################ |
| 122 { | 111 { |
| 123 'target_name': 'bindings_modules_generated', | 112 'target_name': 'bindings_modules_v8_generated', |
| 124 'type': 'none', | 113 'type': 'none', |
| 125 'dependencies': [ | 114 'dependencies': [ |
| 126 'bindings_modules_generated_aggregate', | 115 'bindings_modules_v8_generated_aggregate', |
| 127 'bindings_modules_generated_individual', | 116 'bindings_modules_v8_generated_individual', |
| 128 ], | 117 ], |
| 129 }, | 118 }, |
| 130 ################################################################################ | 119 ################################################################################ |
| 131 ], # targets | 120 ], # targets |
| 132 } | 121 } |
| OLD | NEW |