2 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
34 '../bindings/scripts/scripts.gypi',
35 '../build/features.gypi',
36 '../build/scripts/scripts.gypi',
41 # GN version: //third_party/WebKit/Source/core:core_event_interfaces
42 'target_name': 'core_event_interfaces',
46 'action_name': 'make_core_event_interfaces',
49 '<@(core_event_idl_files)',
51 'event_idl_files_list':
52 '<|(event_idl_files_list.tmp <@(event_idl_files))',
55 # FIXME: should be in build/scripts, not bindings/scripts
56 '../bindings/scripts/generate_event_interfaces.py',
57 '../bindings/scripts/utilities.py',
58 '<(event_idl_files_list)',
59 '<@(event_idl_files)',
62 '<(blink_core_output_dir)/EventInterfaces.in',
66 '../bindings/scripts/generate_event_interfaces.py',
67 '--event-idl-files-list',
68 '<(event_idl_files_list)',
69 '--event-interfaces-file',
70 '<(blink_core_output_dir)/EventInterfaces.in',
71 '--write-file-only-if-changed',
72 '<(write_file_only_if_changed)',
78 # GN version: //third_party/WebKit/Sources/core:generated_testing_idls
79 'target_name': 'generated_testing_idls',
83 'action_name': 'Settings',
85 '<@(scripts_for_in_files)',
86 '../build/scripts/make_settings.py',
87 '../build/scripts/templates/SettingsMacros.h.tmpl',
91 '<(blink_core_output_dir)/SettingsMacros.h',
95 '../build/scripts/make_settings.py',
98 '<(blink_core_output_dir)',
102 'action_name': 'InternalSettings',
104 '<@(scripts_for_in_files)',
105 '../build/scripts/make_internal_settings.py',
106 '../build/scripts/templates/InternalSettingsGenerated.idl.tmpl',
107 '../build/scripts/templates/InternalSettingsGenerated.cpp.tmpl',
108 '../build/scripts/templates/InternalSettingsGenerated.h.tmpl',
112 '<(blink_core_output_dir)/testing/InternalSettingsGenerated.idl',
113 '<(blink_core_output_dir)/testing/InternalSettingsGenerated.cpp',
114 '<(blink_core_output_dir)/testing/InternalSettingsGenerated.h',
118 '../build/scripts/make_internal_settings.py',
121 '<(blink_core_output_dir)/testing',
125 'action_name': 'InternalRuntimeFlags',
127 '<@(scripts_for_in_files)',
128 '../build/scripts/make_internal_runtime_flags.py',
129 '../platform/RuntimeEnabledFeatures.in',
130 '../build/scripts/templates/InternalRuntimeFlags.h.tmpl',
131 '../build/scripts/templates/InternalRuntimeFlags.idl.tmpl',
134 '<(blink_core_output_dir)/testing/InternalRuntimeFlags.idl',
135 '<(blink_core_output_dir)/testing/InternalRuntimeFlags.h',
139 '../build/scripts/make_internal_runtime_flags.py',
140 '../platform/RuntimeEnabledFeatures.in',
142 '<(blink_core_output_dir)/testing',
148 # GN version: //third_party/WebKit/Source/core:make_core_generated
149 'target_name': 'make_core_generated',
151 'hard_dependency': 1,
153 'generated_testing_idls',
154 'core_event_interfaces',
155 '../config.gyp:config',
159 'xml/XPathGrammar.y',
163 'action_name': 'generatePrivateScript',
164 # FIXME: The implementation of Blink-in-JS is not yet mature.
165 # You can use Blink-in-JS in your local experiment, but don't ship it.
167 'private_script_files': [
168 '../bindings/core/v8/PrivateScriptRunner.js',
169 'html/HTMLMarqueeElement.js',
170 'xml/DocumentXMLTreeViewer.js',
173 '../build/scripts/make_private_script_source.py',
174 '<@(_private_script_files)',
177 '<(blink_core_output_dir)/PrivateScriptSources.h',
181 '../build/scripts/make_private_script_source.py',
183 '<@(_private_script_files)'
187 'action_name': 'generatePrivateScriptForTesting',
188 'private_script_files': [
189 'testing/PartialPrivateScriptTest.js',
190 'testing/PrivateScriptTest.js',
193 '../build/scripts/make_private_script_source.py',
194 '<@(_private_script_files)',
197 '<(blink_core_output_dir)/PrivateScriptSourcesForTesting.h',
201 '../build/scripts/make_private_script_source.py',
204 '<@(_private_script_files)'
208 'action_name': 'HTMLEntityTable',
210 'html/parser/create-html-entity-table',
211 'html/parser/HTMLEntityNames.in',
214 '<(blink_core_output_dir)/HTMLEntityTable.cpp'
218 'html/parser/create-html-entity-table',
225 'action_name': 'CSSPropertyNames',
227 '<@(css_properties_files)',
228 '../build/scripts/make_css_property_names.py',
231 '<(blink_core_output_dir)/CSSPropertyNames.cpp',
232 '<(blink_core_output_dir)/CSSPropertyNames.h',
236 '../build/scripts/make_css_property_names.py',
237 'css/CSSProperties.in',
239 '<(blink_core_output_dir)',
240 '--gperf', '<(gperf_exe)',
244 'action_name': 'MediaFeatureNames',
247 'css/MediaFeatureNames.in',
251 '<@(make_names_files)',
252 '../build/scripts/make_media_feature_names.py',
256 '<(blink_core_output_dir)/MediaFeatureNames.cpp',
257 '<(blink_core_output_dir)/MediaFeatureNames.h',
261 '../build/scripts/make_media_feature_names.py',
264 '<(blink_core_output_dir)',
268 'action_name': 'MediaFeatures',
271 'css/MediaFeatureNames.in',
275 '<@(scripts_for_in_files)',
276 '../build/scripts/make_media_features.py',
277 '../build/scripts/templates/MediaFeatures.h.tmpl',
281 '<(blink_core_output_dir)/MediaFeatures.h',
285 '../build/scripts/make_media_features.py',
288 '<(blink_core_output_dir)',
292 'action_name': 'MediaTypeNames',
295 'css/MediaTypeNames.in',
299 '<@(make_names_files)',
303 '<(blink_core_output_dir)/MediaTypeNames.cpp',
304 '<(blink_core_output_dir)/MediaTypeNames.h',
308 '../build/scripts/make_names.py',
311 '<(blink_core_output_dir)',
315 'action_name': 'CSSTokenizerCodepoints',
317 '../build/scripts/make_css_tokenizer_codepoints.py',
320 '<(blink_core_output_dir)/CSSTokenizerCodepoints.cpp',
324 '../build/scripts/make_css_tokenizer_codepoints.py',
326 '<(blink_core_output_dir)',
330 'action_name': 'StylePropertyShorthand',
332 '<@(css_properties_files)',
333 '../build/scripts/make_style_shorthands.py',
334 '../build/scripts/templates/StylePropertyShorthand.cpp.tmpl',
335 '../build/scripts/templates/StylePropertyShorthand.h.tmpl',
338 '<(blink_core_output_dir)/StylePropertyShorthand.cpp',
339 '<(blink_core_output_dir)/StylePropertyShorthand.h',
343 '../build/scripts/make_style_shorthands.py',
344 'css/CSSProperties.in',
346 '<(blink_core_output_dir)',
350 'action_name': 'StyleBuilder',
352 '<@(css_properties_files)',
353 '../build/scripts/make_style_builder.py',
354 '../build/scripts/templates/StyleBuilder.cpp.tmpl',
355 '../build/scripts/templates/StyleBuilderFunctions.cpp.tmpl',
356 '../build/scripts/templates/StyleBuilderFunctions.h.tmpl',
359 '<(blink_core_output_dir)/StyleBuilder.cpp',
360 '<(blink_core_output_dir)/StyleBuilderFunctions.h',
361 '<(blink_core_output_dir)/StyleBuilderFunctions.cpp',
365 '../build/scripts/make_style_builder.py',
366 'css/CSSProperties.in',
368 '<(blink_core_output_dir)',
372 'action_name': 'CSSPropertyMetadata',
374 '<@(css_properties_files)',
375 '../build/scripts/make_css_property_metadata.py',
376 '../build/scripts/templates/CSSPropertyMetadata.cpp.tmpl',
379 '<(blink_core_output_dir)/CSSPropertyMetadata.cpp',
383 '../build/scripts/make_css_property_metadata.py',
384 'css/CSSProperties.in',
386 '<(blink_core_output_dir)',
390 'action_name': 'CSSValueKeywords',
393 'css/CSSValueKeywords.in',
394 'css/SVGCSSValueKeywords.in',
398 '<@(scripts_for_in_files)',
399 '../build/scripts/make_css_value_keywords.py',
403 '<(blink_core_output_dir)/CSSValueKeywords.cpp',
404 '<(blink_core_output_dir)/CSSValueKeywords.h',
408 '../build/scripts/make_css_value_keywords.py',
411 '<(blink_core_output_dir)',
412 '--gperf', '<(gperf_exe)',
416 'action_name': 'HTMLElementFactory',
418 '<@(make_element_factory_files)',
419 'html/HTMLTagNames.in',
420 'html/HTMLAttributeNames.in',
423 '<(blink_core_output_dir)/HTMLElementFactory.cpp',
424 '<(blink_core_output_dir)/HTMLElementFactory.h',
425 '<(blink_core_output_dir)/HTMLNames.cpp',
426 '<(blink_core_output_dir)/HTMLNames.h',
430 '../build/scripts/make_element_factory.py',
431 'html/HTMLTagNames.in',
432 'html/HTMLAttributeNames.in',
434 '<(blink_core_output_dir)',
438 'action_name': 'HTMLElementTypeHelpers',
440 '<@(make_element_type_helpers_files)',
441 'html/HTMLTagNames.in',
444 '<(blink_core_output_dir)/HTMLElementTypeHelpers.h',
448 '../build/scripts/make_element_type_helpers.py',
449 'html/HTMLTagNames.in',
451 '<(blink_core_output_dir)',
455 'action_name': 'SVGNames',
457 '<@(make_element_factory_files)',
458 'svg/SVGTagNames.in',
459 'svg/SVGAttributeNames.in',
462 '<(blink_core_output_dir)/SVGElementFactory.cpp',
463 '<(blink_core_output_dir)/SVGElementFactory.h',
464 '<(blink_core_output_dir)/SVGNames.cpp',
465 '<(blink_core_output_dir)/SVGNames.h',
469 '../build/scripts/make_element_factory.py',
470 'svg/SVGTagNames.in',
471 'svg/SVGAttributeNames.in',
473 '<(blink_core_output_dir)',
477 'action_name': 'SVGElementTypeHelpers',
479 '<@(make_element_type_helpers_files)',
480 'svg/SVGTagNames.in',
483 '<(blink_core_output_dir)/SVGElementTypeHelpers.h',
487 '../build/scripts/make_element_type_helpers.py',
488 'svg/SVGTagNames.in',
490 '<(blink_core_output_dir)',
494 'action_name': 'EventFactory',
496 '<@(make_event_factory_files)',
497 '<(blink_core_output_dir)/EventInterfaces.in',
498 'events/EventAliases.in',
501 '<(blink_core_output_dir)/Event.cpp',
502 '<(blink_core_output_dir)/EventHeaders.h',
506 '../build/scripts/make_event_factory.py',
507 '<(blink_core_output_dir)/EventInterfaces.in',
508 'events/EventAliases.in',
510 '<(blink_core_output_dir)',
514 'action_name': 'EventNames',
516 '<@(make_names_files)',
517 '<(blink_core_output_dir)/EventInterfaces.in',
520 '<(blink_core_output_dir)/EventNames.cpp',
521 '<(blink_core_output_dir)/EventNames.h',
525 '../build/scripts/make_names.py',
526 '<(blink_core_output_dir)/EventInterfaces.in',
528 '<(blink_core_output_dir)',
532 'action_name': 'EventTargetNames',
534 '<@(make_names_files)',
535 'events/EventTargetFactory.in',
538 '<(blink_core_output_dir)/EventTargetNames.cpp',
539 '<(blink_core_output_dir)/EventTargetNames.h',
543 '../build/scripts/make_names.py',
544 'events/EventTargetFactory.in',
546 '<(blink_core_output_dir)',
550 'action_name': 'MathMLNames',
552 '<@(make_qualified_names_files)',
553 'html/parser/MathMLTagNames.in',
554 'html/parser/MathMLAttributeNames.in',
557 '<(blink_core_output_dir)/MathMLNames.cpp',
558 '<(blink_core_output_dir)/MathMLNames.h',
562 '../build/scripts/make_qualified_names.py',
563 'html/parser/MathMLTagNames.in',
564 'html/parser/MathMLAttributeNames.in',
566 '<(blink_core_output_dir)',
570 'action_name': 'FetchInitiatorTypeNames',
572 '<@(make_names_files)',
573 'fetch/FetchInitiatorTypeNames.in',
576 '<(blink_core_output_dir)/fetch/FetchInitiatorTypeNames.cpp',
577 '<(blink_core_output_dir)/fetch/FetchInitiatorTypeNames.h',
581 '../build/scripts/make_names.py',
582 'fetch/FetchInitiatorTypeNames.in',
584 '<(blink_core_output_dir)/fetch',
588 'action_name': 'EventTypeNames',
590 '<@(make_names_files)',
591 'events/EventTypeNames.in',
594 '<(blink_core_output_dir)/EventTypeNames.cpp',
595 '<(blink_core_output_dir)/EventTypeNames.h',
599 '../build/scripts/make_names.py',
600 'events/EventTypeNames.in',
602 '<(blink_core_output_dir)',
606 'action_name': 'HTMLTokenizerNames',
608 '<@(make_names_files)',
609 'html/parser/HTMLTokenizerNames.in',
612 '<(blink_core_output_dir)/HTMLTokenizerNames.cpp',
613 '<(blink_core_output_dir)/HTMLTokenizerNames.h',
617 '../build/scripts/make_names.py',
618 'html/parser/HTMLTokenizerNames.in',
620 '<(blink_core_output_dir)',
624 'action_name': 'InputTypeNames',
626 '<@(make_names_files)',
627 'html/forms/InputTypeNames.in',
630 '<(blink_core_output_dir)/InputTypeNames.cpp',
631 '<(blink_core_output_dir)/InputTypeNames.h',
635 '../build/scripts/make_names.py',
636 'html/forms/InputTypeNames.in',
638 '<(blink_core_output_dir)',
642 'action_name': 'XLinkNames',
644 '<@(make_qualified_names_files)',
648 '<(blink_core_output_dir)/XLinkNames.cpp',
649 '<(blink_core_output_dir)/XLinkNames.h',
653 '../build/scripts/make_qualified_names.py',
656 '<(blink_core_output_dir)',
660 'action_name': 'XMLNSNames',
662 '<@(make_qualified_names_files)',
666 '<(blink_core_output_dir)/XMLNSNames.cpp',
667 '<(blink_core_output_dir)/XMLNSNames.h',
671 '../build/scripts/make_qualified_names.py',
674 '<(blink_core_output_dir)',
678 'action_name': 'XMLNames',
680 '<@(make_qualified_names_files)',
684 '<(blink_core_output_dir)/XMLNames.cpp',
685 '<(blink_core_output_dir)/XMLNames.h',
689 '../build/scripts/make_qualified_names.py',
692 '<(blink_core_output_dir)',
696 'action_name': 'MakeTokenMatcherForViewport',
698 '<@(scripts_for_in_files)',
699 '../build/scripts/make_token_matcher.py',
700 '../core/html/HTMLMetaElement-in.cpp',
703 '<(blink_core_output_dir)/HTMLMetaElement.cpp',
707 '../build/scripts/make_token_matcher.py',
708 '../core/html/HTMLMetaElement-in.cpp',
709 '<(blink_core_output_dir)/HTMLMetaElement.cpp',
713 'action_name': 'HTMLElementLookupTrie',
715 '<@(scripts_for_in_files)',
716 '../build/scripts/make_element_lookup_trie.py',
717 '../build/scripts/templates/ElementLookupTrie.cpp.tmpl',
718 '../build/scripts/templates/ElementLookupTrie.h.tmpl',
719 'html/HTMLTagNames.in',
722 '<(blink_core_output_dir)/HTMLElementLookupTrie.cpp',
723 '<(blink_core_output_dir)/HTMLElementLookupTrie.h',
727 '../build/scripts/make_element_lookup_trie.py',
728 'html/HTMLTagNames.in',
730 '<(blink_core_output_dir)',
736 'rule_name': 'bison',
739 '<(blink_core_output_dir)/<(RULE_INPUT_ROOT).cpp',
740 '<(blink_core_output_dir)/<(RULE_INPUT_ROOT).h'
744 '../build/scripts/rule_bison.py',
745 '<(RULE_INPUT_PATH)',
746 '<(blink_core_output_dir)',