OLD | NEW |
---|---|
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 '-I../core/scripts', | 112 '-I../core/scripts', |
113 'scripts/preprocess-idls.pl', | 113 'scripts/preprocess-idls.pl', |
114 '--defines', | 114 '--defines', |
115 '<(feature_defines)', | 115 '<(feature_defines)', |
116 '--idlFilesList', | 116 '--idlFilesList', |
117 '<(idl_files_list)', | 117 '<(idl_files_list)', |
118 '--supplementalDependencyFile', | 118 '--supplementalDependencyFile', |
119 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', | 119 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
120 ], | 120 ], |
121 'message': 'Resolving [Supplemental=XXX] dependencies in all IDL files', | 121 'message': 'Resolving [Supplemental=XXX] dependencies in all IDL files', |
122 }, { | |
123 'action_name': 'generateIDL2PathMapping', | |
abarth-chromium
2013/04/25 14:14:24
Maybe rather than calling this an IDL2PathMap, we
Daniel Bratell
2013/04/25 21:24:26
It kind of is. The binding scripts work on IDL int
| |
124 'variables': { | |
125 # Write sources into a file, so that the action command line | |
126 # won't exceed OS limits. | |
127 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))', | |
128 }, | |
129 'inputs': [ | |
130 '../bindings/scripts/idltopathgenerator.py', | |
131 '<(idl_files_list)', | |
132 '<!@(cat <(idl_files_list))', | |
133 ], | |
134 'outputs': [ | |
135 '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', | |
136 ], | |
137 'msvs_cygwin_shell': 0, | |
138 'action': [ | |
139 'python', | |
140 '../bindings/scripts/idltopathgenerator.py', | |
141 '--blink-source-directory', | |
142 '..', | |
143 '--idl-list-file', | |
144 '<(idl_files_list)', | |
145 '--output-file', | |
146 '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', | |
147 ], | |
148 'message': 'Generating a map from IDL name to header file path.', | |
122 }] | 149 }] |
123 }, | 150 }, |
124 { | 151 { |
125 'target_name': 'bindings_derived_sources', | 152 'target_name': 'bindings_derived_sources', |
126 'type': 'none', | 153 'type': 'none', |
127 'hard_dependency': 1, | 154 'hard_dependency': 1, |
128 'dependencies': [ | 155 'dependencies': [ |
129 'supplemental_dependencies', | 156 'supplemental_dependencies', |
130 '../core/core.gyp/core_derived_sources.gyp:generate_settings', | 157 '../core/core.gyp/core_derived_sources.gyp:generate_settings', |
131 ], | 158 ], |
(...skipping 21 matching lines...) Expand all Loading... | |
153 'rules': [{ | 180 'rules': [{ |
154 'rule_name': 'binding', | 181 'rule_name': 'binding', |
155 'extension': 'idl', | 182 'extension': 'idl', |
156 'msvs_external_rule': 1, | 183 'msvs_external_rule': 1, |
157 'inputs': [ | 184 'inputs': [ |
158 'scripts/generate-bindings.pl', | 185 'scripts/generate-bindings.pl', |
159 'scripts/CodeGenerator.pm', | 186 'scripts/CodeGenerator.pm', |
160 'scripts/CodeGeneratorV8.pm', | 187 'scripts/CodeGeneratorV8.pm', |
161 'scripts/IDLParser.pm', | 188 'scripts/IDLParser.pm', |
162 'scripts/IDLAttributes.txt', | 189 'scripts/IDLAttributes.txt', |
190 'scripts/idltopath.pm', | |
163 '../core/scripts/preprocessor.pm', | 191 '../core/scripts/preprocessor.pm', |
164 '<!@pymod_do_main(supplemental_idl_files <@(idl_files))', | 192 '<!@pymod_do_main(supplemental_idl_files <@(idl_files))', |
165 ], | 193 ], |
166 'outputs': [ | 194 'outputs': [ |
167 # FIXME: The .cpp file should be in webkit/bindings once | 195 # FIXME: The .cpp file should be in webkit/bindings once |
168 # we coax GYP into supporting it (see 'action' below). | 196 # we coax GYP into supporting it (see 'action' below). |
169 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8<(RULE_INPUT_ROOT).cpp' , | 197 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8<(RULE_INPUT_ROOT).cpp' , |
170 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h', | 198 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h', |
171 ], | 199 ], |
172 'variables': { | 200 'variables': { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', | 238 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', |
211 '--outputDir', | 239 '--outputDir', |
212 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings', | 240 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings', |
213 '--idlAttributesFile', | 241 '--idlAttributesFile', |
214 'scripts/IDLAttributes.txt', | 242 'scripts/IDLAttributes.txt', |
215 '--defines', | 243 '--defines', |
216 '<(feature_defines)', | 244 '<(feature_defines)', |
217 '<@(generator_include_dirs)', | 245 '<@(generator_include_dirs)', |
218 '--supplementalDependencyFile', | 246 '--supplementalDependencyFile', |
219 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', | 247 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
248 '--idlToPathFile', | |
249 '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', | |
220 '--additionalIdlFiles', | 250 '--additionalIdlFiles', |
221 '<(webcore_test_support_idl_files)', | 251 '<(webcore_test_support_idl_files)', |
222 '<(RULE_INPUT_PATH)', | 252 '<(RULE_INPUT_PATH)', |
223 '<@(preprocessor)', | 253 '<@(preprocessor)', |
224 ], | 254 ], |
225 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 255 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
226 }], | 256 }], |
227 }, | 257 }, |
228 ], | 258 ], |
229 } | 259 } |
OLD | NEW |