Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: Source/bindings/derived_sources.gyp

Issue 14456006: Fixes to make scripts generate includes with paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to a newer chromium version Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 partial interfaces dependencies in all IDL files', 121 'message': 'Resolving partial interfaces dependencies in all IDL files',
122 }, {
123 'action_name': 'generateIDL2PathMapping',
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 '--include-root-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
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 21 matching lines...) Expand all
194 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', 222 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
195 '--outputDir', 223 '--outputDir',
196 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings', 224 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings',
197 '--idlAttributesFile', 225 '--idlAttributesFile',
198 'scripts/IDLAttributes.txt', 226 'scripts/IDLAttributes.txt',
199 '--defines', 227 '--defines',
200 '<(feature_defines)', 228 '<(feature_defines)',
201 '<@(generator_include_dirs)', 229 '<@(generator_include_dirs)',
202 '--supplementalDependencyFile', 230 '--supplementalDependencyFile',
203 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 231 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp',
232 '--idlToPathFile',
233 '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp',
204 '--additionalIdlFiles', 234 '--additionalIdlFiles',
205 '<(webcore_test_support_idl_files)', 235 '<(webcore_test_support_idl_files)',
206 '<(RULE_INPUT_PATH)', 236 '<(RULE_INPUT_PATH)',
207 '<@(preprocessor)', 237 '<@(preprocessor)',
208 ], 238 ],
209 'message': 'Generating binding from <(RULE_INPUT_PATH)', 239 'message': 'Generating binding from <(RULE_INPUT_PATH)',
210 }], 240 }],
211 }, 241 },
212 ], 242 ],
213 } 243 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698