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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//third_party/WebKit/Source/bindings/bindings.gni")
7 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
8 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
9 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
10 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni")
11 import("//third_party/WebKit/Source/config.gni")
12 import("//third_party/WebKit/Source/core/core.gni")
13 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
14 import("//third_party/WebKit/Source/platform/platform_generated.gni")
16 visibility = [ "//third_party/WebKit/Source/*" ]
18 rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir)
20 # Compute the optimization level. The GYP code sets "optimize: max" which sets
21 # speed-over-size optimization for official builds on Windows only. The GN's
22 # build optimize_max config applies this optimization on all platforms, so
23 # compute how to modify the config list to duplicate the GYP behavior.
25 core_config_remove = [ "//build/config/compiler:no_optimize" ]
26 core_config_add = core_config_remove # NOP
28 core_config_remove = [ "//build/config/compiler:optimize" ]
30 if (is_win && is_official_build) {
31 core_config_add = [ "//build/config/compiler:optimize_max" ]
33 core_config_add = core_config_remove # NOP
37 # Core targets also get wexit time destructors.
38 core_config_add += [ "//build/config/compiler:wexit_time_destructors" ]
40 config("core_include_dirs") {
43 "$root_gen_dir/blink",
45 if (is_android && use_openmax_dl_fft) {
46 include_dirs += [ "//third_party/openmax_dl" ]
50 # GYP version: WebKit/Source/core/core.gyp:webcore_generated
51 source_set("generated") {
53 ":make_core_generated",
55 "inspector:protocol_sources",
56 "inspector:instrumentation_sources",
59 "//third_party/iccjpeg",
60 "//third_party/libpng",
61 "//third_party/libwebp",
62 "//third_party/libxml",
63 "//third_party/libxslt",
64 "//third_party/npapi",
66 "//third_party/sqlite",
67 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
68 # FIXME: don't depend on bindings/modules http://crbug.com/358074
69 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
70 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated",
71 "//third_party/WebKit/Source/platform:make_platform_generated",
72 "//third_party/WebKit/Source/wtf",
78 # GYP version: WebKit/Source/core/core.gyp:webcore_prerequisites
79 source_set("prerequisites") {
81 "//third_party/WebKit/Source/wtf",
82 "//gpu/command_buffer/client:gles2_c_lib",
84 "//third_party/angle:translator",
85 "//third_party/iccjpeg",
86 "//third_party/libpng",
87 "//third_party/libwebp",
88 "//third_party/libxml",
89 "//third_party/libxslt",
90 "//third_party/npapi",
93 "//third_party/sqlite",
99 ":make_core_generated",
100 "inspector:protocol_sources",
101 "inspector:instrumentation_sources",
102 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
103 # FIXME: don't depend on bindings_modules http://crbug.com/358074
104 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated",
105 "//third_party/WebKit/Source/platform",
109 ":core_include_dirs",
110 "//third_party/WebKit/Source:config",
111 "//third_party/WebKit/Source:inside_blink",
114 if (use_openmax_dl_fft) {
116 "//third_party/openmax_dl/dl"
121 # Note that this is a source set rather than a group, even though it has no
122 # sources. A group would implicitly forward all direct dependent configs
123 # through it, but we want to keep our internal targets' public_configs private
124 # and only forward some of them.
126 # GYP version: WebKit/Source/core/core.gyp:webcore
128 visibility = [] # Allow re-assignment of list.
129 visibility = [ "//third_party/WebKit/*" ]
131 configs -= core_config_remove
132 configs += core_config_add
137 "//third_party/npapi",
138 "//third_party/qcms",
139 "//third_party/WebKit/Source/platform",
140 "//third_party/WebKit/Source/wtf",
153 ":core_include_dirs",
156 # TODO(GYP) IPP libraries pkg-config. These seem to be experimental and used
157 # only on x86 Android. See also below. There should be one pkg-config call
158 # that creates a config used in both of these cases.
161 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom
163 sources = rebase_path(webcore_dom_files, ".", "//")
165 configs -= core_config_remove
166 configs += core_config_add
169 cflags = [ "/wd4267" ] # size_t to int truncation.
177 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html
179 sources = rebase_path(webcore_html_files, ".", "//")
181 configs -= core_config_remove
182 configs += core_config_add
189 # Shard this target into parts to work around linker limitations.
190 # on link time code generation builds.
191 #['OS=="win" and buildtype=="Official"', {
196 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg
198 sources = rebase_path(webcore_svg_files, ".", "//")
200 configs -= core_config_remove
201 configs += core_config_add
208 # Shard this taret into parts to work around linker limitations.
209 # on link time code generation builds.
210 #['OS=="win" and buildtype=="Official"', {
215 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining
216 source_set("remaining") {
217 # This is currently a mashup of "webcore_rendering" and "webcore_remaining"
218 # in GYP. The file list variable is the same and then GYP filters on wether
219 # the path starts with "rendering/" or not. We should tweak the .gypis a bit
220 # to separate out the rendering files.
221 sources = rebase_path(webcore_files, ".", "//")
223 configs -= core_config_remove
224 configs += core_config_add
240 "rendering/RenderThemeChromiumFontProviderWin.cpp",
243 if (!is_linux && !is_android) {
245 "rendering/RenderThemeChromiumFontProviderLinux.cpp",
250 # Due to a bug in gcc 4.6 in android NDK, we got warnings about
251 # uninitialized variable.
252 # TODO: try removing now that we are on GCC 4.8.
253 cflags += [ "-Wno-uninitialized" ]
254 } else { # !is_android
256 "rendering/RenderThemeChromiumAndroid.cpp",
257 "rendering/RenderThemeChromiumAndroid.h",
263 "rendering/RenderThemeChromiumFontProvider.cpp",
264 "rendering/RenderThemeChromiumFontProvider.h",
265 "rendering/RenderThemeChromiumSkia.cpp",
266 "rendering/RenderThemeChromiumSkia.h",
268 libs += [ "Carbon.framework" ]
269 # Some Mac-specific parts of WebKit won't compile without having this
270 # prefix header injected.
273 rebase_path("../build/mac/Prefix.h", root_build_dir),
277 "editing/SmartReplaceCF.cpp",
282 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_rendering
283 source_set("rendering") {
284 # The files that go here are currently in "remaining".
287 # GYP version: WebKit/Source/core/core.gyp:webcore_testing
288 source_set("testing") {
290 "//third_party/WebKit/Source:inside_blink",
291 "//third_party/WebKit/Source:config",
299 sources = generated_core_testing_dictionary_files + webcore_testing_files
301 "$bindings_core_v8_output_dir/V8DictionaryTest.cpp",
302 "$bindings_core_v8_output_dir/V8DictionaryTest.h",
303 "$bindings_core_v8_output_dir/V8GarbageCollectedScriptWrappable.cpp",
304 "$bindings_core_v8_output_dir/V8GarbageCollectedScriptWrappable.h",
305 "$bindings_core_v8_output_dir/V8GCObservation.cpp",
306 "$bindings_core_v8_output_dir/V8GCObservation.h",
307 "$bindings_core_v8_output_dir/V8PrivateScriptTest.cpp",
308 "$bindings_core_v8_output_dir/V8PrivateScriptTest.h",
309 "$bindings_core_v8_output_dir/V8TypeConversions.cpp",
310 "$bindings_core_v8_output_dir/V8TypeConversions.h",
311 "$bindings_core_v8_output_dir/V8UnionTypesTest.cpp",
312 "$bindings_core_v8_output_dir/V8UnionTypesTest.h",
313 "$bindings_core_v8_output_dir/V8Internals.cpp",
314 "$bindings_core_v8_output_dir/V8Internals.h",
315 "$bindings_core_v8_output_dir/V8InternalProfilers.cpp",
316 "$bindings_core_v8_output_dir/V8InternalProfilers.h",
317 "$bindings_core_v8_output_dir/V8InternalSettings.cpp",
318 "$bindings_core_v8_output_dir/V8InternalSettings.h",
319 "$bindings_core_v8_output_dir/V8InternalSettingsGenerated.cpp",
320 "$bindings_core_v8_output_dir/V8InternalSettingsGenerated.h",
321 "$bindings_core_v8_output_dir/V8InternalRuntimeFlags.cpp",
322 "$bindings_core_v8_output_dir/V8InternalRuntimeFlags.h",
323 "$bindings_core_v8_output_dir/V8LayerRect.cpp",
324 "$bindings_core_v8_output_dir/V8LayerRect.h",
325 "$bindings_core_v8_output_dir/V8LayerRectList.cpp",
326 "$bindings_core_v8_output_dir/V8LayerRectList.h",
327 "$bindings_core_v8_output_dir/V8RefCountedScriptWrappable.cpp",
328 "$bindings_core_v8_output_dir/V8RefCountedScriptWrappable.h",
329 "$bindings_core_v8_output_dir/V8InternalDictionary.cpp",
330 "$bindings_core_v8_output_dir/V8InternalDictionary.h",
334 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated
335 source_set("core_generated") {
336 sources = bindings_core_v8_files
337 # These files include all the .cpp files generated from the .idl files
339 sources += bindings_core_generated_aggregate_files
340 sources += bindings_core_generated_union_type_files
341 # IDL dictionary impl files generated by IDL compiler
342 sources += generated_core_dictionary_files
345 # Additional .cpp files for HashTools.h
346 "$blink_core_output_dir/CSSPropertyNames.cpp",
347 "$blink_core_output_dir/CSSValueKeywords.cpp",
349 # Additional .cpp files from make_core_generated actions.
350 "$blink_core_output_dir/Event.cpp",
351 "$blink_core_output_dir/EventHeaders.h",
352 "$blink_core_output_dir/EventNames.cpp",
353 "$blink_core_output_dir/EventNames.h",
354 "$blink_core_output_dir/EventTargetNames.cpp",
355 "$blink_core_output_dir/EventTargetNames.h",
356 "$blink_core_output_dir/EventTypeNames.cpp",
357 "$blink_core_output_dir/EventTypeNames.h",
358 "$blink_core_output_dir/FetchInitiatorTypeNames.cpp",
359 "$blink_core_output_dir/HTMLElementFactory.cpp",
360 "$blink_core_output_dir/HTMLElementFactory.h",
361 "$blink_core_output_dir/HTMLElementLookupTrie.cpp",
362 "$blink_core_output_dir/HTMLElementLookupTrie.h",
363 "$blink_core_output_dir/HTMLNames.cpp",
364 "$blink_core_output_dir/HTMLTokenizerNames.cpp",
365 "$blink_core_output_dir/InputTypeNames.cpp",
366 "$blink_core_output_dir/MathMLNames.cpp",
367 "$blink_core_output_dir/SVGNames.cpp",
368 "$blink_core_output_dir/UserAgentStyleSheetsData.cpp",
369 "$blink_core_output_dir/XLinkNames.cpp",
370 "$blink_core_output_dir/XMLNSNames.cpp",
371 "$blink_core_output_dir/XMLNames.cpp",
373 # Generated from HTMLEntityNames.in
374 "$blink_core_output_dir/HTMLEntityTable.cpp",
376 # Generated from MediaFeatureNames.in
377 "$blink_core_output_dir/MediaFeatureNames.cpp",
379 # Generated from MediaTypeNames.in
380 "$blink_core_output_dir/MediaTypeNames.cpp",
382 # Generated from BisonCSSTokenizer-in.cpp
383 "$blink_core_output_dir/BisonCSSTokenizer.cpp",
385 # Generated from BisonCSSParser-in.cpp
386 "$blink_core_output_dir/BisonCSSParser.cpp",
388 # Generated from HTMLMetaElement-in.cpp
389 "$blink_core_output_dir/HTMLMetaElement.cpp",
391 # Additional .cpp files from the make_core_generated rules.
392 "$blink_core_output_dir/CSSGrammar.cpp",
393 "$blink_core_output_dir/XPathGrammar.cpp",
395 # Additional .cpp files from the inspector_protocol_sources list.
396 "$blink_core_output_dir/InspectorFrontend.cpp",
397 "$blink_core_output_dir/InspectorBackendDispatcher.cpp",
398 "$blink_core_output_dir/InspectorTypeBuilder.cpp",
400 # Additional .cpp files from the inspector_instrumentation_sources list.
401 "$blink_core_output_dir/InspectorCanvasInstrumentationInl.h",
402 "$blink_core_output_dir/InspectorConsoleInstrumentationInl.h",
403 "$blink_core_output_dir/InspectorInstrumentationInl.h",
404 "$blink_core_output_dir/InspectorOverridesInl.h",
405 "$blink_core_output_dir/InstrumentingAgentsInl.h",
406 "$blink_core_output_dir/InspectorInstrumentationImpl.cpp",
408 # Additional .cpp files for SVG.
409 "$blink_core_output_dir/SVGElementFactory.cpp",
411 # Generated from make_style_shorthands.py
412 "$blink_core_output_dir/StylePropertyShorthand.cpp",
414 # Generated from make_style_builder.py
415 "$blink_core_output_dir/StyleBuilder.cpp",
416 "$blink_core_output_dir/StyleBuilderFunctions.cpp",
418 # Generated from make_css_property_metadata.py
419 "$blink_core_output_dir/CSSPropertyMetadata.cpp",
422 configs -= core_config_remove
423 configs += core_config_add
430 ":make_core_generated",
432 "inspector:protocol_sources",
433 "inspector:instrumentation_sources",
436 "//third_party/iccjpeg",
437 "//third_party/libpng",
438 "//third_party/libwebp",
439 "//third_party/libxml",
440 "//third_party/libxslt",
441 "//third_party/npapi",
442 "//third_party/qcms",
443 "//third_party/sqlite",
444 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
445 # FIXME: don't depend on bindings/modules http://crbug.com/358074
446 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
447 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated",
448 "//third_party/WebKit/Source/platform:make_platform_generated",
449 "//third_party/WebKit/Source/wtf",
454 configs += [ ":core_include_dirs" ]
456 "$root_gen_dir/blink",
462 if (is_win && component_mode == "shared_library") {
463 defines += [ "USING_V8_SHARED" ]
468 # In generated bindings code: "switch contains default but no case".
469 # Disable c4267 warnings until we fix size_t to int truncations.
470 # 4701 and 4702 are disabled because of issues in Bison-generated
471 # XPathGrammar.cpp and CSSGrammar.cpp.
479 # TODO(GYP) More IPP libraries, see above.
480 #if ((is_linux || is_android) && use_webaudio_ipp)
481 # ["OS in ("linux", "android") and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines", {
483 # "<!@(pkg-config --cflags-only-I ipp)",
489 # core_bindings_generated ------------------------------------------------------
491 # GYP version: WebKit/Source/core/core_generated.gyp:core_event_interfaces
492 generate_event_interfaces("core_event_interfaces") {
493 sources = core_event_idl_files
494 output_file = "core/EventInterfaces.in"
497 # generated_testing_idls -------------------------------------------------------
499 # GYP version: WebKit/Source/core/core_generated.gyp:generated_testing_idls
500 group("generated_testing_idls") {
502 ":generated_testing_idls_settings",
503 ":generated_testing_idls_internal_runtime_flags",
507 # "Settings" action in generated_testing_idls from GYP.
508 action("generated_testing_idls_settings") {
509 script = "../build/scripts/make_settings.py"
511 inputs = scripts_for_in_files + [
512 "../build/scripts/make_settings.py",
513 "../build/scripts/templates/InternalSettingsGenerated.idl.tmpl",
514 "../build/scripts/templates/InternalSettingsGenerated.cpp.tmpl",
515 "../build/scripts/templates/InternalSettingsGenerated.h.tmpl",
516 "../build/scripts/templates/SettingsMacros.h.tmpl",
520 "$blink_core_output_dir/SettingsMacros.h",
521 "$blink_core_output_dir/InternalSettingsGenerated.idl",
522 "$blink_core_output_dir/InternalSettingsGenerated.cpp",
523 "$blink_core_output_dir/InternalSettingsGenerated.h",
527 rebase_path("frame/Settings.in", root_build_dir),
528 "--output_dir", rel_blink_core_gen_dir,
532 # "InternalRuntimeFlags" action in generated_testing_idls from GYP.
533 action("generated_testing_idls_internal_runtime_flags") {
534 script = "../build/scripts/make_internal_runtime_flags.py"
536 inputs = scripts_for_in_files + [
537 "../build/scripts/make_internal_runtime_flags.py",
538 "../platform/RuntimeEnabledFeatures.in",
539 "../build/scripts/templates/InternalRuntimeFlags.h.tmpl",
540 "../build/scripts/templates/InternalRuntimeFlags.idl.tmpl",
543 "$blink_core_output_dir/InternalRuntimeFlags.idl",
544 "$blink_core_output_dir/InternalRuntimeFlags.h",
548 rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
549 "--output_dir", rel_blink_core_gen_dir,
553 # make_core_generated ----------------------------------------------------------
555 # GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated
556 group("make_core_generated") {
558 ":make_core_generated_private_script",
559 ":make_core_generated_private_script_for_testing",
560 ":make_core_generated_html_entity_table",
561 ":make_core_generated_css_property_names",
562 ":make_core_generated_css_tokenizer_codepoints",
563 ":make_core_generated_media_feature_names",
564 ":make_core_generated_media_features",
565 ":make_core_generated_media_type_names",
566 ":make_core_generated_style_property_shorthand",
567 ":make_core_generated_style_builder",
568 ":make_core_generated_css_value_keywords",
569 ":make_core_generated_html_element_factory",
570 ":make_core_generated_html_element_type_helpers",
571 ":make_core_generated_svg_names",
572 ":make_core_generated_svg_element_type_helpers",
573 ":make_core_generated_event_factory",
574 ":make_core_generated_event_names",
575 ":make_core_generated_event_target_names",
576 ":make_core_generated_math_ml_names",
577 ":make_core_generated_user_agent_style_sheets",
578 ":make_core_generated_fetch_initiator_type_names",
579 ":make_core_generated_event_type_names",
580 ":make_core_generated_html_tokenizer_names",
581 ":make_core_generated_input_type_names",
582 ":make_core_generated_xlink_names",
583 ":make_core_generated_xml_ns_names",
584 ":make_core_generated_xml_names",
585 ":make_core_generated_make_token_matcher",
586 ":make_core_generated_make_parser",
587 ":make_core_generated_make_token_matcher_for_viewport",
588 ":make_core_generated_html_element_lookup_trie",
589 ":make_core_generated_bison",
593 # "CSSPropertyNames" in make_core_generated from GYP.
594 css_properties("make_core_generated_css_property_names") {
595 script = "../build/scripts/make_css_property_names.py"
597 "$blink_core_output_dir/CSSPropertyNames.cpp",
598 "$blink_core_output_dir/CSSPropertyNames.h",
602 # "MediaFeatures" in make_core_generated from GYP.
603 process_in_files("make_core_generated_media_features") {
604 script = "../build/scripts/make_media_features.py"
606 "css/MediaFeatureNames.in",
609 "../build/scripts/make_media_features.py",
610 "../build/scripts/templates/MediaFeatures.h.tmpl",
613 "$blink_core_output_dir/MediaFeatures.h",
617 # "StylePropertyShorthand" in make_core_generated from GYP.
618 css_properties("make_core_generated_style_property_shorthand") {
619 script = "../build/scripts/make_style_shorthands.py"
621 "../build/scripts/templates/StylePropertyShorthand.cpp.tmpl",
622 "../build/scripts/templates/StylePropertyShorthand.h.tmpl",
625 "$blink_core_output_dir/StylePropertyShorthand.cpp",
626 "$blink_core_output_dir/StylePropertyShorthand.h",
630 # "StyleBuilder" in make_core_generated from GYP.
631 css_properties("make_core_generated_style_builder") {
632 script = "../build/scripts/make_style_builder.py"
634 "../build/scripts/templates/StyleBuilder.cpp.tmpl",
635 "../build/scripts/templates/StyleBuilderFunctions.cpp.tmpl",
636 "../build/scripts/templates/StyleBuilderFunctions.h.tmpl",
639 "$blink_core_output_dir/StyleBuilder.cpp",
640 "$blink_core_output_dir/StyleBuilderFunctions.h",
641 "$blink_core_output_dir/StyleBuilderFunctions.cpp",
645 # "CSSPropertyMetadata" in make_core_generated from GYP.
646 css_properties("make_core_generated_css_property_metadata") {
647 script = "../build/scripts/make_css_property_metadata.py"
649 "../build/scripts/templates/CSSPropertyMetadata.cpp.tmpl",
652 "$blink_core_output_dir/CSSPropertyMetadata.cpp",
656 # "CSSValueKeywords" in make_core_generated from GYP.
657 process_in_files("make_core_generated_css_value_keywords") {
658 script = "../build/scripts/make_css_value_keywords.py"
661 "css/CSSValueKeywords.in",
662 "css/SVGCSSValueKeywords.in",
665 "$blink_core_output_dir/CSSValueKeywords.cpp",
666 "$blink_core_output_dir/CSSValueKeywords.h",
669 "--gperf", gperf_exe,
673 # "HTMLElementFactory" in make_core_generated from GYP.
674 process_in_files("make_core_generated_html_element_factory") {
675 script = "../build/scripts/make_element_factory.py"
678 "html/HTMLTagNames.in",
679 "html/HTMLAttributeNames.in",
681 other_inputs = make_element_factory_files
683 "$blink_core_output_dir/HTMLElementFactory.cpp",
684 "$blink_core_output_dir/HTMLElementFactory.h",
685 "$blink_core_output_dir/HTMLNames.cpp",
686 "$blink_core_output_dir/HTMLNames.h",
690 # "HTMLElementTypeHelpers" in make_core_generated from GYP.
691 process_in_files("make_core_generated_html_element_type_helpers") {
692 script = "../build/scripts/make_element_type_helpers.py"
695 "html/HTMLTagNames.in",
697 other_inputs = make_element_type_helpers_files
699 "$blink_core_output_dir/HTMLElementTypeHelpers.h",
703 # "SVGNames" in make_core_generated from GYP.
704 process_in_files("make_core_generated_svg_names") {
705 script = "../build/scripts/make_element_factory.py"
708 "svg/SVGTagNames.in",
709 "svg/SVGAttributeNames.in",
711 other_inputs = make_element_factory_files
713 "$blink_core_output_dir/SVGElementFactory.cpp",
714 "$blink_core_output_dir/SVGElementFactory.h",
715 "$blink_core_output_dir/SVGNames.cpp",
716 "$blink_core_output_dir/SVGNames.h",
720 # "SVGElementTypeHelpers" in make_core_generated from GYP.
721 process_in_files("make_core_generated_svg_element_type_helpers") {
722 script = "../build/scripts/make_element_type_helpers.py"
725 "svg/SVGTagNames.in",
727 other_inputs = make_element_type_helpers_files
729 "$blink_core_output_dir/SVGElementTypeHelpers.h",
733 # make_event_factory -----------------------------------------------------------
735 # "EventFactory" in make_core_generated from GYP.
736 process_in_files("make_core_generated_event_factory") {
737 script = "../build/scripts/make_event_factory.py"
740 "$blink_core_output_dir/EventInterfaces.in",
741 "events/EventAliases.in",
743 other_inputs = make_event_factory_files
745 "$blink_core_output_dir/Event.cpp",
746 "$blink_core_output_dir/EventHeaders.h",
750 # make_names -------------------------------------------------------------------
752 # "MediaFeatureNames" in make_core_generated from GYP.
753 process_in_files("make_core_generated_media_feature_names") {
754 script = "../build/scripts/make_media_feature_names.py"
756 "css/MediaFeatureNames.in",
758 other_inputs = make_names_files
760 "$blink_core_output_dir/MediaFeatureNames.cpp",
761 "$blink_core_output_dir/MediaFeatureNames.h",
765 # "MediaTypeNames" in make_core_generated from GYP.
766 make_names("make_core_generated_media_type_names") {
768 "css/MediaTypeNames.in",
771 "$blink_core_output_dir/MediaTypeNames.cpp",
772 "$blink_core_output_dir/MediaTypeNames.h",
776 # "EventNames" in make_core_generated from GYP.
777 make_names("make_core_generated_event_names") {
779 "$blink_core_output_dir/EventInterfaces.in",
782 "$blink_core_output_dir/EventNames.cpp",
783 "$blink_core_output_dir/EventNames.h",
787 # "EventTargetNames" in make_core_generated from GYP.
788 make_names("make_core_generated_event_target_names") {
790 "events/EventTargetFactory.in",
793 "$blink_core_output_dir/EventTargetNames.cpp",
794 "$blink_core_output_dir/EventTargetNames.h",
798 # "FetchInitiatorTypeNames" in make_core_generated from GYP.
799 make_names("make_core_generated_fetch_initiator_type_names") {
801 "fetch/FetchInitiatorTypeNames.in",
804 "$blink_core_output_dir/FetchInitiatorTypeNames.cpp",
805 "$blink_core_output_dir/FetchInitiatorTypeNames.h",
809 # "EventTypeNames" in make_core_generated from GYP.
810 make_names("make_core_generated_event_type_names") {
812 "events/EventTypeNames.in",
815 "$blink_core_output_dir/EventTypeNames.cpp",
816 "$blink_core_output_dir/EventTypeNames.h",
820 # "HTMLTokenizerNames" in make_core_generated from GYP.
821 make_names("make_core_generated_html_tokenizer_names") {
823 "html/parser/HTMLTokenizerNames.in",
826 "$blink_core_output_dir/HTMLTokenizerNames.cpp",
827 "$blink_core_output_dir/HTMLTokenizerNames.h",
831 # "InputTypeNames" in make_core_generated from GYP.
832 make_names("make_core_generated_input_type_names") {
834 "html/forms/InputTypeNames.in",
837 "$blink_core_output_dir/InputTypeNames.cpp",
838 "$blink_core_output_dir/InputTypeNames.h",
842 # make_qualified_names ---------------------------------------------------------
844 # "MathMLNames" in make_core_generated from GYP.
845 make_qualified_names("make_core_generated_math_ml_names") {
847 "html/parser/MathMLTagNames.in",
848 "html/parser/MathMLAttributeNames.in",
851 "$blink_core_output_dir/MathMLNames.cpp",
852 "$blink_core_output_dir/MathMLNames.h",
856 # "XLinkNames" in make_core_generated from GYP.
857 make_qualified_names("make_core_generated_xlink_names") {
862 "$blink_core_output_dir/XLinkNames.cpp",
863 "$blink_core_output_dir/XLinkNames.h",
867 # "XMLNSNames" in make_core_generated from GYP.
868 make_qualified_names("make_core_generated_xml_ns_names") {
873 "$blink_core_output_dir/XMLNSNames.cpp",
874 "$blink_core_output_dir/XMLNSNames.h",
878 # "XMLNames" in make_core_generated from GYP.
879 make_qualified_names("make_core_generated_xml_names") {
884 "$blink_core_output_dir/XMLNames.cpp",
885 "$blink_core_output_dir/XMLNames.h",
889 # make_token_matcher -----------------------------------------------------------
891 # "MakeTokenMatcher" in make_core_generated from GYP.
892 make_token_matcher("make_core_generated_make_token_matcher") {
893 input_file = "css/parser/BisonCSSTokenizer-in.cpp"
894 output_file = "$blink_core_output_dir/BisonCSSTokenizer.cpp"
897 # "MakeParser" in make_core_generated from GYP.
898 make_token_matcher("make_core_generated_make_parser") {
899 input_file = "css/parser/BisonCSSParser-in.cpp"
900 output_file = "$blink_core_output_dir/BisonCSSParser.cpp"
903 # "MakeTokenMatcherForViewport" in make_core_generated from GYP.
904 make_token_matcher("make_core_generated_make_token_matcher_for_viewport") {
905 input_file = "html/HTMLMetaElement-in.cpp"
906 output_file = "$blink_core_output_dir/HTMLMetaElement.cpp"
909 # One-off scripts --------------------------------------------------------------
911 # "generatePrivateScript" in make_core_generated from GYP.
912 # FIXME: The implementation of Blink-in-JS is not yet mature.
913 # You can use Blink-in-JS in your local experiment, but don't ship it.
915 action("make_core_generated_private_script") {
916 visibility = [] # Allow re-assignment of list.
917 visibility = [ ":make_core_generated" ]
918 script = "../build/scripts/make_private_script_source.py"
921 "../bindings/core/v8/PrivateScriptRunner.js",
922 "html/HTMLMarqueeElement.js",
923 "html/shadow/PluginPlaceholderElement.js",
924 "xml/DocumentXMLTreeViewer.js",
927 "$blink_core_output_dir/PrivateScriptSources.h",
930 args = rebase_path(outputs, root_build_dir)
931 args += rebase_path(inputs, root_build_dir)
933 deps = make_core_generated_deps
936 action("make_core_generated_private_script_for_testing") {
937 visibility = [] # Allow re-assignment of list.
938 visibility = [ ":make_core_generated" ]
939 script = "../build/scripts/make_private_script_source.py"
942 "testing/PartialPrivateScriptTest.js",
943 "testing/PrivateScriptTest.js",
946 "$blink_core_output_dir/PrivateScriptSourcesForTesting.h",
949 args = [ "--for-testing" ]
950 args += rebase_path(outputs, root_build_dir)
951 args += rebase_path(inputs, root_build_dir)
953 deps = make_core_generated_deps
956 # "HTMLEntityTable" in make_core_generated from GYP.
957 action("make_core_generated_html_entity_table") {
958 visibility = [] # Allow re-assignment of list.
959 visibility = [ ":make_core_generated" ]
960 script = "html/parser/create-html-entity-table"
963 "html/parser/HTMLEntityNames.in",
966 "$blink_core_output_dir/HTMLEntityTable.cpp",
969 args = [ "-o" ] + rebase_path(outputs, root_build_dir)
970 args += rebase_path(inputs, root_build_dir)
972 deps = make_core_generated_deps
975 # "CSSTokenizerCodepoints" in make_core_generated from GYP.
976 action("make_core_generated_css_tokenizer_codepoints") {
977 visibility = [] # Allow re-assignment of list.
978 visibility = [ ":make_core_generated" ]
979 script = "../build/scripts/make_css_tokenizer_codepoints.py"
982 "$blink_core_output_dir/CSSTokenizerCodepoints.cpp",
986 "--output_dir", rel_blink_core_gen_dir,
989 deps = make_core_generated_deps
992 # "UserAgentStyleSheets" in make_core_generated from GYP.
993 action("make_core_generated_user_agent_style_sheets") {
994 visibility = [] # Allow re-assignment of list.
995 visibility = [ ":make_core_generated" ]
996 script = "../build/scripts/make-file-arrays.py"
1001 "css/view-source.css",
1002 "css/themeChromium.css",
1003 "css/themeChromiumAndroid.css",
1004 "css/themeChromiumLinux.css",
1005 "css/themeChromiumSkia.css",
1006 "css/themeInputMultipleFields.css",
1009 "css/themeWinQuirks.css",
1011 "css/navigationTransitions.css",
1013 "css/mediaControls.css",
1014 "css/mediaControlsAndroid.css",
1015 "css/fullscreen.css",
1017 "css/viewportAndroid.css",
1021 "$blink_core_output_dir/UserAgentStyleSheets.h",
1022 "$blink_core_output_dir/UserAgentStyleSheetsData.cpp",
1026 [ "--namespace", "blink" ] +
1027 [ "--out-h=" + rebase_path(outputs[0], root_build_dir) ] +
1028 [ "--out-cpp=" + rebase_path(outputs[1], root_build_dir) ] +
1029 rebase_path(inputs, root_build_dir)
1031 deps = make_core_generated_deps
1034 # "HTMLElementLookupTrie" in make_core_generated from GYP.
1035 action("make_core_generated_html_element_lookup_trie") {
1036 visibility = [] # Allow re-assignment of list.
1037 visibility = [ ":make_core_generated" ]
1038 script = "../build/scripts/make_element_lookup_trie.py"
1040 input_file = "html/HTMLTagNames.in"
1041 inputs = scripts_for_in_files + [
1043 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
1044 "../build/scripts/templates/ElementLookupTrie.h.tmpl",
1047 "$blink_core_output_dir/HTMLElementLookupTrie.cpp",
1048 "$blink_core_output_dir/HTMLElementLookupTrie.h",
1052 rebase_path(input_file, root_build_dir),
1053 "--output_dir", rel_blink_core_gen_dir,
1056 deps = make_core_generated_deps
1059 # The bison rules from make_core_generated.
1060 action_foreach("make_core_generated_bison") {
1061 script = "../build/scripts/rule_bison.py"
1063 "css/parser/CSSGrammar.y",
1064 "xml/XPathGrammar.y",
1067 "$blink_core_output_dir/{{source_name_part}}.cpp",
1068 "$blink_core_output_dir/{{source_name_part}}.h",
1072 rel_blink_core_gen_dir,
1076 deps = make_core_generated_deps