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

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

Issue 14110002: Introduce bindings.gyp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Nico's comments Created 7 years, 8 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 | Annotate | Revision Log
« Source/core/core.gypi ('K') | « Source/core/core.gyp/core.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #
2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 {
32 'includes': [
33 '../core.gypi',
34 '../../bindings/bindings.gypi',
35 '../../WebKit/chromium/features.gypi',
36 ],
37
38 'targets': [
39 {
40 'target_name': 'generate_settings',
41 'type': 'none',
42 'actions': [
43 {
44 'action_name': 'Settings',
45 'inputs': [
46 '../page/make_settings.pl',
47 '../page/Settings.in',
48 ],
49 'outputs': [
50 '<(SHARED_INTERMEDIATE_DIR)/webkit/SettingsMacros.h',
51 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.idl',
52 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.cpp',
53 '<(SHARED_INTERMEDIATE_DIR)/webkit/InternalSettingsGenerated.h',
54 ],
55 'action': [
56 'python',
57 'scripts/action_makenames.py',
58 '<@(_outputs)',
59 '--',
60 '<@(_inputs)',
61 ],
62 'msvs_cygwin_shell': 1,
63 },
64 ]
65 },
66 {
67 'target_name': 'make_derived_sources',
68 'type': 'none',
69 'hard_dependency': 1,
70 'dependencies': [
71 'generate_settings',
72 ],
73 'sources': [
74 # bison rule
75 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSGrammar.y',
76 '../xml/XPathGrammar.y',
77
78 # gperf rule
79 '../platform/ColorData.gperf',
80 ],
81 'actions': [
82 {
83 'action_name': 'generateV8ArrayBufferViewCustomScript',
84 'inputs': [
85 '<(bindings_dir)/v8/custom/V8ArrayBufferViewCustomScript.js',
86 ],
87 'outputs': [
88 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8ArrayBufferViewCustomScript.h',
89 ],
90 'msvs_cygwin_shell': 0,
91 'action': [
92 '<(perl_exe)',
93 '../inspector/xxd.pl',
94 'V8ArrayBufferViewCustomScript_js',
95 '<@(_inputs)',
96 '<@(_outputs)'
97 ],
98 'message': 'Generating V8ArrayBufferViewCustomScript.h from V8ArrayBuf ferViewCustomScript.js',
99 },
100 {
101 'action_name': 'generateXMLViewerCSS',
102 'inputs': [
103 '../xml/XMLViewer.css',
104 ],
105 'outputs': [
106 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLViewerCSS.h',
107 ],
108 'msvs_cygwin_shell': 0,
109 'action': [
110 '<(perl_exe)',
111 '../inspector/xxd.pl',
112 'XMLViewer_css',
113 '<@(_inputs)',
114 '<@(_outputs)'
115 ],
116 },
117 {
118 'action_name': 'generateXMLViewerJS',
119 'inputs': [
120 '../xml/XMLViewer.js',
121 ],
122 'outputs': [
123 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLViewerJS.h',
124 ],
125 'msvs_cygwin_shell': 0,
126 'action': [
127 '<(perl_exe)',
128 '../inspector/xxd.pl',
129 'XMLViewer_js',
130 '<@(_inputs)',
131 '<@(_outputs)'
132 ],
133 },
134 {
135 'action_name': 'HTMLEntityTable',
136 'inputs': [
137 '../html/parser/create-html-entity-table',
138 '../html/parser/HTMLEntityNames.in',
139 ],
140 'outputs': [
141 '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLEntityTable.cpp'
142 ],
143 'action': [
144 'python',
145 '../html/parser/create-html-entity-table',
146 '-o',
147 '<@(_outputs)',
148 '<@(_inputs)'
149 ],
150 },
151 {
152 'action_name': 'CSSPropertyNames',
153 'inputs': [
154 '../css/makeprop.pl',
155 '../css/CSSPropertyNames.in',
156 ],
157 'outputs': [
158 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSPropertyNames.cpp',
159 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSPropertyNames.h',
160 ],
161 'action': [
162 'python',
163 'scripts/action_csspropertynames.py',
164 '<@(_outputs)',
165 '--',
166 '--defines', '<(feature_defines)',
167 '--',
168 '<@(_inputs)',
169 ],
170 'conditions': [
171 # TODO(maruel): Move it in its own project or generate it anyway?
172 ['enable_svg!=0', {
173 'inputs': [
174 '../css/SVGCSSPropertyNames.in',
175 ],
176 }],
177 ],
178 'msvs_cygwin_shell': 1,
179 },
180 {
181 'action_name': 'CSSValueKeywords',
182 'inputs': [
183 '../css/makevalues.pl',
184 '../css/CSSValueKeywords.in',
185 ],
186 'outputs': [
187 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSValueKeywords.cpp',
188 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSValueKeywords.h',
189 ],
190 'action': [
191 'python',
192 'scripts/action_cssvaluekeywords.py',
193 '<@(_outputs)',
194 '--',
195 '--defines', '<(feature_defines)',
196 '--',
197 '<@(_inputs)',
198 ],
199 'conditions': [
200 # TODO(maruel): Move it in its own project or generate it anyway?
201 ['enable_svg!=0', {
202 'inputs': [
203 '../css/SVGCSSValueKeywords.in',
204 ],
205 }],
206 ],
207 'msvs_cygwin_shell': 1,
208 },
209 {
210 'action_name': 'HTMLNames',
211 'inputs': [
212 '../scripts/Hasher.pm',
213 '../scripts/StaticString.pm',
214 '../scripts/make_names.pl',
215 '../html/HTMLTagNames.in',
216 '../html/HTMLAttributeNames.in',
217 ],
218 'outputs': [
219 '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLNames.cpp',
220 '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLNames.h',
221 '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLElementFactory.cpp',
222 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8HTMLElementWrapperFactory.cpp',
223 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8HTMLElementWrapperFactory.h',
224 ],
225 'action': [
226 'python',
227 'scripts/action_makenames.py',
228 '<@(_outputs)',
229 '--',
230 '<@(_inputs)',
231 '--',
232 '--factory',
233 '--wrapperFactoryV8',
234 '--extraDefines', '<(feature_defines)'
235 ],
236 'msvs_cygwin_shell': 1,
237 },
238 {
239 'action_name': 'WebKitFontFamilyNames',
240 'inputs': [
241 '../scripts/Hasher.pm',
242 '../scripts/StaticString.pm',
243 '../scripts/make_names.pl',
244 '../css/WebKitFontFamilyNames.in',
245 ],
246 'outputs': [
247 '<(SHARED_INTERMEDIATE_DIR)/webkit/WebKitFontFamilyNames.cpp',
248 '<(SHARED_INTERMEDIATE_DIR)/webkit/WebKitFontFamilyNames.h',
249 ],
250 'action': [
251 'python',
252 'scripts/action_makenames.py',
253 '<@(_outputs)',
254 '--',
255 '<@(_inputs)',
256 '--',
257 '--fonts',
258 ],
259 'msvs_cygwin_shell': 1,
260 },
261 {
262 'action_name': 'SVGNames',
263 'inputs': [
264 '../scripts/Hasher.pm',
265 '../scripts/StaticString.pm',
266 '../scripts/make_names.pl',
267 '../svg/svgtags.in',
268 '../svg/svgattrs.in',
269 ],
270 'outputs': [
271 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGNames.cpp',
272 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGNames.h',
273 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp',
274 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.h',
275 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp',
276 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.h',
277 ],
278 'action': [
279 'python',
280 'scripts/action_makenames.py',
281 '<@(_outputs)',
282 '--',
283 '<@(_inputs)',
284 '--',
285 '--factory',
286 '--wrapperFactoryV8',
287 '--extraDefines', '<(feature_defines)'
288 ],
289 'msvs_cygwin_shell': 1,
290 },
291 {
292 'action_name': 'EventFactory',
293 'inputs': [
294 '../scripts/InFilesCompiler.pm',
295 '../scripts/InFilesParser.pm',
296 '../scripts/make_event_factory.pl',
297 '../dom/EventNames.in',
298 ],
299 'outputs': [
300 '<(SHARED_INTERMEDIATE_DIR)/webkit/EventFactory.cpp',
301 '<(SHARED_INTERMEDIATE_DIR)/webkit/EventHeaders.h',
302 '<(SHARED_INTERMEDIATE_DIR)/webkit/EventInterfaces.h',
303 ],
304 'action': [
305 'python',
306 'scripts/action_makenames.py',
307 '<@(_outputs)',
308 '--',
309 '<@(_inputs)',
310 ],
311 'msvs_cygwin_shell': 1,
312 },
313 {
314 'action_name': 'EventTargetFactory',
315 'inputs': [
316 '../scripts/InFilesCompiler.pm',
317 '../scripts/InFilesParser.pm',
318 '../scripts/make_event_factory.pl',
319 '../dom/EventTargetFactory.in',
320 ],
321 'outputs': [
322 '<(SHARED_INTERMEDIATE_DIR)/webkit/EventTargetHeaders.h',
323 '<(SHARED_INTERMEDIATE_DIR)/webkit/EventTargetInterfaces.h',
324 ],
325 'action': [
326 'python',
327 'scripts/action_makenames.py',
328 '<@(_outputs)',
329 '--',
330 '<@(_inputs)',
331 ],
332 'msvs_cygwin_shell': 1,
333 },
334 {
335 'action_name': 'ExceptionCodeDescription',
336 'inputs': [
337 '../scripts/InFilesCompiler.pm',
338 '../scripts/InFilesParser.pm',
339 '../scripts/make_dom_exceptions.pl',
340 '../dom/DOMExceptions.in',
341 ],
342 'outputs': [
343 '<(SHARED_INTERMEDIATE_DIR)/webkit/ExceptionCodeDescription.cpp',
344 '<(SHARED_INTERMEDIATE_DIR)/webkit/ExceptionCodeDescription.h',
345 '<(SHARED_INTERMEDIATE_DIR)/webkit/ExceptionHeaders.h',
346 '<(SHARED_INTERMEDIATE_DIR)/webkit/ExceptionInterfaces.h',
347 ],
348 'action': [
349 'python',
350 'scripts/action_makenames.py',
351 '<@(_outputs)',
352 '--',
353 '<@(_inputs)',
354 ],
355 'msvs_cygwin_shell': 1,
356 },
357 {
358 'action_name': 'MathMLNames',
359 'inputs': [
360 '../scripts/Hasher.pm',
361 '../scripts/StaticString.pm',
362 '../scripts/make_names.pl',
363 '../mathml/mathtags.in',
364 '../mathml/mathattrs.in',
365 ],
366 'outputs': [
367 '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLNames.cpp',
368 '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLNames.h',
369 '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLElementFactory.cpp',
370 '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLElementFactory.h',
371 ],
372 'action': [
373 'python',
374 'scripts/action_makenames.py',
375 '<@(_outputs)',
376 '--',
377 '<@(_inputs)',
378 '--',
379 '--factory',
380 '--extraDefines', '<(feature_defines)'
381 ],
382 'msvs_cygwin_shell': 1,
383 },
384 {
385 'action_name': 'UserAgentStyleSheets',
386 'variables': {
387 'scripts': [
388 '../css/make-css-file-arrays.pl',
389 '../scripts/preprocessor.pm',
390 ],
391 # The .css files are in the same order as ../DerivedSources.make.
392 'stylesheets': [
393 '../css/html.css',
394 '../css/quirks.css',
395 '../css/view-source.css',
396 '../css/themeChromium.css', # Chromium only.
397 '../css/themeChromiumAndroid.css', # Chromium only.
398 '../css/themeChromiumLinux.css', # Chromium only.
399 '../css/themeChromiumSkia.css', # Chromium only.
400 '../css/themeWin.css',
401 '../css/themeWinQuirks.css',
402 '../css/svg.css',
403 '../css/mathml.css',
404 '../css/mediaControls.css',
405 '../css/mediaControlsChromium.css',
406 '../css/mediaControlsChromiumAndroid.css',
407 '../css/fullscreen.css',
408 # Skip fullscreenQuickTime.
409 ],
410 },
411 'inputs': [
412 '<@(scripts)',
413 '<@(stylesheets)'
414 ],
415 'outputs': [
416 '<(SHARED_INTERMEDIATE_DIR)/webkit/UserAgentStyleSheets.h',
417 '<(SHARED_INTERMEDIATE_DIR)/webkit/UserAgentStyleSheetsData.cpp',
418 ],
419 'action': [
420 'python',
421 'scripts/action_useragentstylesheets.py',
422 '<@(_outputs)',
423 '<@(stylesheets)',
424 '--',
425 '<@(scripts)',
426 '--',
427 '--defines', '<(feature_defines)',
428 ],
429 'msvs_cygwin_shell': 1,
430 },
431 {
432 'action_name': 'PickerCommon',
433 'inputs': [
434 '../Resources/pagepopups/pickerCommon.css',
435 '../Resources/pagepopups/pickerCommon.js',
436 ],
437 'outputs': [
438 '<(SHARED_INTERMEDIATE_DIR)/webkit/PickerCommon.h',
439 '<(SHARED_INTERMEDIATE_DIR)/webkit/PickerCommon.cpp',
440 ],
441 'action': [
442 'python',
443 '../scripts/make-file-arrays.py',
444 '--condition=ENABLE(CALENDAR_PICKER) OR ENABLE(INPUT_TYPE_COLOR)',
445 '--out-h=<(SHARED_INTERMEDIATE_DIR)/webkit/PickerCommon.h',
446 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/webkit/PickerCommon.cpp',
447 '<@(_inputs)',
448 ],
449 },
450 {
451 'action_name': 'CalendarPicker',
452 'inputs': [
453 '../Resources/pagepopups/calendarPicker.css',
454 '../Resources/pagepopups/calendarPicker.js',
455 '../Resources/pagepopups/chromium/calendarPickerChromium.css',
456 '../Resources/pagepopups/chromium/pickerCommonChromium.css',
457 '../Resources/pagepopups/suggestionPicker.css',
458 '../Resources/pagepopups/suggestionPicker.js',
459 ],
460 'outputs': [
461 '<(SHARED_INTERMEDIATE_DIR)/webkit/CalendarPicker.h',
462 '<(SHARED_INTERMEDIATE_DIR)/webkit/CalendarPicker.cpp',
463 ],
464 'action': [
465 'python',
466 '../scripts/make-file-arrays.py',
467 '--condition=ENABLE(CALENDAR_PICKER)',
468 '--out-h=<(SHARED_INTERMEDIATE_DIR)/webkit/CalendarPicker.h',
469 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/webkit/CalendarPicker.cpp',
470 '<@(_inputs)',
471 ],
472 },
473 {
474 'action_name': 'ColorSuggestionPicker',
475 'inputs': [
476 '../Resources/pagepopups/colorSuggestionPicker.css',
477 '../Resources/pagepopups/colorSuggestionPicker.js',
478 ],
479 'outputs': [
480 '<(SHARED_INTERMEDIATE_DIR)/webkit/ColorSuggestionPicker.h',
481 '<(SHARED_INTERMEDIATE_DIR)/webkit/ColorSuggestionPicker.cpp',
482 ],
483 'action': [
484 'python',
485 '../scripts/make-file-arrays.py',
486 '--condition=ENABLE(INPUT_TYPE_COLOR)',
487 '--out-h=<(SHARED_INTERMEDIATE_DIR)/webkit/ColorSuggestionPicker.h',
488 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/webkit/ColorSuggestionPicker.c pp',
489 '<@(_inputs)',
490 ],
491 },
492 {
493 'action_name': 'XLinkNames',
494 'inputs': [
495 '../scripts/Hasher.pm',
496 '../scripts/StaticString.pm',
497 '../scripts/make_names.pl',
498 '../svg/xlinkattrs.in',
499 ],
500 'outputs': [
501 '<(SHARED_INTERMEDIATE_DIR)/webkit/XLinkNames.cpp',
502 '<(SHARED_INTERMEDIATE_DIR)/webkit/XLinkNames.h',
503 ],
504 'action': [
505 'python',
506 'scripts/action_makenames.py',
507 '<@(_outputs)',
508 '--',
509 '<@(_inputs)',
510 '--',
511 '--extraDefines', '<(feature_defines)'
512 ],
513 'msvs_cygwin_shell': 1,
514 },
515 {
516 'action_name': 'XMLNSNames',
517 'inputs': [
518 '../scripts/Hasher.pm',
519 '../scripts/StaticString.pm',
520 '../scripts/make_names.pl',
521 '../xml/xmlnsattrs.in',
522 ],
523 'outputs': [
524 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNSNames.cpp',
525 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNSNames.h',
526 ],
527 'action': [
528 'python',
529 'scripts/action_makenames.py',
530 '<@(_outputs)',
531 '--',
532 '<@(_inputs)',
533 '--',
534 '--extraDefines', '<(feature_defines)'
535 ],
536 'msvs_cygwin_shell': 1,
537 },
538 {
539 'action_name': 'XMLNames',
540 'inputs': [
541 '../scripts/Hasher.pm',
542 '../scripts/StaticString.pm',
543 '../scripts/make_names.pl',
544 '../xml/xmlattrs.in',
545 ],
546 'outputs': [
547 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNames.cpp',
548 '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNames.h',
549 ],
550 'action': [
551 'python',
552 'scripts/action_makenames.py',
553 '<@(_outputs)',
554 '--',
555 '<@(_inputs)',
556 '--',
557 '--extraDefines', '<(feature_defines)'
558 ],
559 'msvs_cygwin_shell': 1,
560 },
561 {
562 'action_name': 'preprocess_grammar',
563 'inputs': [
564 '../css/CSSGrammar.y.in',
565 '../css/CSSGrammar.y.includes',
566 ],
567 'outputs': [
568 '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSGrammar.y',
569 ],
570 'action': [
571 '<(perl_exe)',
572 '-I../scripts',
573 '../css/makegrammar.pl',
574 '--outputDir',
575 '<(SHARED_INTERMEDIATE_DIR)/webkit/',
576 '--extraDefines',
577 '<(feature_defines)',
578 '--preprocessOnly',
579 '<@(preprocessor)',
580 '<@(_inputs)',
581 ],
582 },
583 ],
584 'rules': [
585 {
586 'rule_name': 'bison',
587 'extension': 'y',
588 'outputs': [
589 '<(SHARED_INTERMEDIATE_DIR)/webkit/<(RULE_INPUT_ROOT).cpp',
590 '<(SHARED_INTERMEDIATE_DIR)/webkit/<(RULE_INPUT_ROOT).h'
591 ],
592 'action': [
593 'python',
594 'scripts/rule_bison.py',
595 '<(RULE_INPUT_PATH)',
596 '<(SHARED_INTERMEDIATE_DIR)/webkit',
597 '<(bison_exe)',
598 ],
599 'msvs_cygwin_shell': 1,
600 },
601 {
602 'rule_name': 'gperf',
603 'extension': 'gperf',
604 'outputs': [
605 '<(SHARED_INTERMEDIATE_DIR)/webkit/<(RULE_INPUT_ROOT).cpp',
606 ],
607 'inputs': [
608 '../scripts/make-hash-tools.pl',
609 ],
610 'msvs_cygwin_shell': 0,
611 'action': [
612 '<(perl_exe)',
613 '../scripts/make-hash-tools.pl',
614 '<(SHARED_INTERMEDIATE_DIR)/webkit',
615 '<(RULE_INPUT_PATH)',
616 '<(gperf_exe)',
617 ],
618 },
619 ],
620 },
621 ],
622 }
OLDNEW
« Source/core/core.gypi ('K') | « Source/core/core.gyp/core.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698