| Index: third_party/WebKit/Source/core/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/core/BUILD.gn b/third_party/WebKit/Source/core/BUILD.gn
|
| index 23a9a87d43d82ab810142cadd97d999b2f2c10a2..2ff96bde729d37b07f61b0494b296895b5dcf8d2 100644
|
| --- a/third_party/WebKit/Source/core/BUILD.gn
|
| +++ b/third_party/WebKit/Source/core/BUILD.gn
|
| @@ -55,16 +55,14 @@ if (!is_component_build) {
|
| }
|
| }
|
|
|
| -# GYP version: WebKit/Source/core/core.gyp:webcore_generated
|
| source_set("generated") {
|
| deps = [
|
| - ":make_core_generated",
|
| + ":core_generated",
|
| ":prerequisites",
|
| - "inspector:instrumentation_sources",
|
| - "inspector:protocol_sources",
|
| "//gin",
|
| "//skia",
|
| "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
|
| + "//third_party/WebKit/Source/core/inspector",
|
| "//third_party/iccjpeg",
|
| "//third_party/libpng",
|
| "//third_party/libwebp",
|
| @@ -83,11 +81,11 @@ source_set("generated") {
|
| ]
|
| }
|
|
|
| -# GYP version: WebKit/Source/core/core.gyp:webcore_prerequisites
|
| source_set("prerequisites") {
|
| public_deps = [
|
| "//gpu/command_buffer/client:gles2_c_lib",
|
| "//skia",
|
| + "//third_party/WebKit/Source/core/inspector",
|
| "//third_party/WebKit/Source/wtf",
|
| "//third_party/angle:translator",
|
| "//third_party/iccjpeg",
|
| @@ -106,9 +104,6 @@ source_set("prerequisites") {
|
| "//v8",
|
| ]
|
| deps = [
|
| - ":make_core_generated",
|
| - "inspector:instrumentation_sources",
|
| - "inspector:protocol_sources",
|
| "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
|
|
|
| # FIXME: don't depend on bindings_modules http://crbug.com/358074
|
| @@ -135,8 +130,6 @@ source_set("prerequisites") {
|
| # sources. A group would implicitly forward all direct dependent configs
|
| # through it, but we want to keep our internal targets' public_configs private
|
| # and only forward some of them.
|
| -#
|
| -# GYP version: WebKit/Source/core/core.gyp:webcore
|
| component("core") {
|
| output_name = "blink_core"
|
|
|
| @@ -176,7 +169,6 @@ component("core") {
|
| public_configs = [ ":core_include_dirs" ]
|
| }
|
|
|
| -# GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html
|
| target(core_link_large_target_type, "html") {
|
| sources = rebase_path(webcore_html_files, ".", "//")
|
|
|
| @@ -184,11 +176,11 @@ target(core_link_large_target_type, "html") {
|
| configs += core_config_add
|
|
|
| deps = [
|
| + ":core_generated",
|
| ":prerequisites",
|
| ]
|
| }
|
|
|
| -# GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg
|
| target(core_link_large_target_type, "svg") {
|
| sources = rebase_path(webcore_svg_files, ".", "//")
|
|
|
| @@ -196,11 +188,11 @@ target(core_link_large_target_type, "svg") {
|
| configs += core_config_add
|
|
|
| deps = [
|
| + ":core_generated",
|
| ":prerequisites",
|
| ]
|
| }
|
|
|
| -# GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining
|
| target(core_link_large_target_type, "remaining") {
|
| if (is_win && is_official_build &&
|
| core_link_large_target_type == "split_static_library") {
|
| @@ -226,6 +218,7 @@ target(core_link_large_target_type, "remaining") {
|
| libs = []
|
|
|
| deps = [
|
| + ":core_generated",
|
| ":prerequisites",
|
| ]
|
|
|
| @@ -264,12 +257,10 @@ target(core_link_large_target_type, "remaining") {
|
| }
|
| }
|
|
|
| -# GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_rendering
|
| source_set("rendering") {
|
| # The files that go here are currently in "remaining".
|
| }
|
|
|
| -# GYP version: WebKit/Source/core/core.gyp:webcore_testing
|
| source_set("testing") {
|
| configs += [
|
| "//third_party/WebKit/Source:inside_blink",
|
| @@ -318,150 +309,8 @@ source_set("testing") {
|
| ]
|
| }
|
|
|
| -# GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated
|
| -target(core_link_large_target_type, "core_generated") {
|
| - sources = bindings_core_v8_files
|
| -
|
| - # These files include all the .cpp files generated from the .idl files
|
| - # in webcore_files.
|
| - sources += bindings_core_generated_aggregate_files
|
| - sources += bindings_core_generated_union_type_files
|
| -
|
| - # IDL dictionary impl files generated by IDL compiler
|
| - sources += generated_core_dictionary_files
|
| -
|
| - sources += [
|
| - # Additional .cpp files for HashTools.h
|
| - "$blink_core_output_dir/CSSPropertyNames.cpp",
|
| - "$blink_core_output_dir/CSSValueKeywords.cpp",
|
| -
|
| - # Additional .cpp files from make_core_generated actions.
|
| - "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
|
| - "$blink_core_output_dir/Event.cpp",
|
| - "$blink_core_output_dir/EventHeaders.h",
|
| - "$blink_core_output_dir/EventNames.cpp",
|
| - "$blink_core_output_dir/EventNames.h",
|
| - "$blink_core_output_dir/EventTargetNames.cpp",
|
| - "$blink_core_output_dir/EventTargetNames.h",
|
| - "$blink_core_output_dir/EventTypeNames.cpp",
|
| - "$blink_core_output_dir/EventTypeNames.h",
|
| - "$blink_core_output_dir/HTMLElementFactory.cpp",
|
| - "$blink_core_output_dir/HTMLElementFactory.h",
|
| - "$blink_core_output_dir/HTMLElementLookupTrie.cpp",
|
| - "$blink_core_output_dir/HTMLElementLookupTrie.h",
|
| - "$blink_core_output_dir/HTMLNames.cpp",
|
| - "$blink_core_output_dir/HTMLTokenizerNames.cpp",
|
| - "$blink_core_output_dir/InputTypeNames.cpp",
|
| - "$blink_core_output_dir/MathMLNames.cpp",
|
| - "$blink_core_output_dir/SVGNames.cpp",
|
| - "$blink_core_output_dir/XLinkNames.cpp",
|
| - "$blink_core_output_dir/XMLNSNames.cpp",
|
| - "$blink_core_output_dir/XMLNames.cpp",
|
| - "$blink_core_output_dir/fetch/FetchInitiatorTypeNames.cpp",
|
| - "$blink_core_output_dir/origin_trials/OriginTrials.cpp",
|
| - "$blink_core_output_dir/origin_trials/OriginTrials.h",
|
| -
|
| - # Generated from HTMLEntityNames.in
|
| - "$blink_core_output_dir/HTMLEntityTable.cpp",
|
| -
|
| - # Generated from MediaFeatureNames.in
|
| - "$blink_core_output_dir/MediaFeatureNames.cpp",
|
| -
|
| - # Generated from MediaTypeNames.in
|
| - "$blink_core_output_dir/MediaTypeNames.cpp",
|
| -
|
| - # Generated from HTMLMetaElement-in.cpp
|
| - "$blink_core_output_dir/HTMLMetaElement.cpp",
|
| -
|
| - # Additional .cpp files from the make_core_generated rules.
|
| - "$blink_core_output_dir/XPathGrammar.cpp",
|
| -
|
| - # Additional .cpp files from the inspector:instrumentation_sources list.
|
| - "$blink_core_output_dir/InspectorInstrumentationImpl.cpp",
|
| - "$blink_core_output_dir/InspectorInstrumentationInl.h",
|
| - "$blink_core_output_dir/InspectorOverridesInl.h",
|
| - "$blink_core_output_dir/InstrumentingAgents.h",
|
| -
|
| - # Additional .cpp files for SVG.
|
| - "$blink_core_output_dir/SVGElementFactory.cpp",
|
| -
|
| - # Generated from make_style_shorthands.py
|
| - "$blink_core_output_dir/StylePropertyShorthand.cpp",
|
| -
|
| - # Generated from make_style_builder.py
|
| - "$blink_core_output_dir/StyleBuilder.cpp",
|
| - "$blink_core_output_dir/StyleBuilderFunctions.cpp",
|
| -
|
| - # Generated from make_css_property_metadata.py
|
| - "$blink_core_output_dir/CSSPropertyMetadata.cpp",
|
| -
|
| - # Generated from make_cssom_types.py
|
| - "$blink_core_output_dir/CSSOMTypes.cpp",
|
| -
|
| - # Generated from make_cssom_keywords.py
|
| - "$blink_core_output_dir/CSSOMKeywords.cpp",
|
| - ]
|
| -
|
| - configs -= core_config_remove
|
| - configs += core_config_add
|
| -
|
| - configs += [ "..:inside_blink" ]
|
| -
|
| - public_deps = [
|
| - ":make_core_generated",
|
| - ":prerequisites",
|
| - "inspector:instrumentation_sources",
|
| - "inspector:protocol",
|
| - "//gin",
|
| - "//skia",
|
| - "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
|
| - "//third_party/iccjpeg",
|
| - "//third_party/libpng",
|
| - "//third_party/libwebp",
|
| - "//third_party/libxml",
|
| - "//third_party/libxslt",
|
| - "//third_party/qcms",
|
| - "//third_party/sqlite",
|
| -
|
| - # FIXME: don't depend on bindings/modules http://crbug.com/358074
|
| - "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
|
| - "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated",
|
| - "//third_party/WebKit/Source/platform:make_platform_generated",
|
| - "//third_party/WebKit/Source/wtf",
|
| - "//url",
|
| - "//v8",
|
| - ]
|
| -
|
| - configs += [
|
| - ":core_include_dirs",
|
| -
|
| - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| - "//build/config/compiler:no_size_t_to_int_warning",
|
| - ]
|
| - include_dirs = [ "$root_gen_dir/blink" ]
|
| -
|
| - cflags = []
|
| - defines = []
|
| -
|
| - if (is_win && is_component_build) {
|
| - defines += [ "USING_V8_SHARED" ]
|
| - }
|
| -
|
| - if (is_win) {
|
| - cflags += [
|
| - # In generated bindings code: "switch contains default but no case".
|
| - # 4701 and 4702 are disabled because of issues in Bison-generated
|
| - # XPathGrammar.cpp.
|
| - "/wd4065",
|
| - "/wd4701",
|
| - "/wd4702",
|
| - ]
|
| - }
|
| -}
|
| -
|
| # core_bindings_generated ------------------------------------------------------
|
|
|
| -# GYP version: WebKit/Source/core/core_generated.gyp:core_event_interfaces
|
| generate_event_interfaces("core_event_interfaces") {
|
| sources = core_event_idl_files
|
| output_file = "core/EventInterfaces.in"
|
| @@ -469,7 +318,6 @@ generate_event_interfaces("core_event_interfaces") {
|
|
|
| # generated_testing_idls -------------------------------------------------------
|
|
|
| -# GYP version: WebKit/Source/core/core_generated.gyp:generated_testing_idls
|
| group("generated_testing_idls") {
|
| public_deps = [
|
| ":generated_settings_macros",
|
| @@ -478,7 +326,6 @@ group("generated_testing_idls") {
|
| ]
|
| }
|
|
|
| -# "Settings" action in generated_testing_idls from GYP.
|
| action("generated_settings_macros") {
|
| script = "../build/scripts/make_settings.py"
|
|
|
| @@ -498,7 +345,6 @@ action("generated_settings_macros") {
|
| ]
|
| }
|
|
|
| -# "InternalSettings" action in generated_testing_idls from GYP.
|
| action("generated_testing_idls_settings") {
|
| script = "../build/scripts/make_internal_settings.py"
|
|
|
| @@ -522,7 +368,6 @@ action("generated_testing_idls_settings") {
|
| ]
|
| }
|
|
|
| -# "InternalRuntimeFlags" action in generated_testing_idls from GYP.
|
| action("generated_testing_idls_internal_runtime_flags") {
|
| script = "../build/scripts/make_internal_runtime_flags.py"
|
|
|
| @@ -544,48 +389,6 @@ action("generated_testing_idls_internal_runtime_flags") {
|
| ]
|
| }
|
|
|
| -# make_core_generated ----------------------------------------------------------
|
| -
|
| -# GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated
|
| -group("make_core_generated") {
|
| - public_deps = [
|
| - ":make_core_generated_bison",
|
| - ":make_core_generated_css_primitive_value_unit_trie",
|
| - ":make_core_generated_css_property_metadata",
|
| - ":make_core_generated_css_property_names",
|
| - ":make_core_generated_css_tokenizer_codepoints",
|
| - ":make_core_generated_css_value_keywords",
|
| - ":make_core_generated_cssom_types",
|
| - ":make_core_generated_event_factory",
|
| - ":make_core_generated_event_names",
|
| - ":make_core_generated_event_target_names",
|
| - ":make_core_generated_event_type_names",
|
| - ":make_core_generated_fetch_initiator_type_names",
|
| - ":make_core_generated_html_element_factory",
|
| - ":make_core_generated_html_element_lookup_trie",
|
| - ":make_core_generated_html_element_type_helpers",
|
| - ":make_core_generated_html_entity_table",
|
| - ":make_core_generated_html_tokenizer_names",
|
| - ":make_core_generated_input_type_names",
|
| - ":make_core_generated_make_token_matcher_for_viewport",
|
| - ":make_core_generated_math_ml_names",
|
| - ":make_core_generated_media_feature_names",
|
| - ":make_core_generated_media_features",
|
| - ":make_core_generated_media_type_names",
|
| - ":make_core_generated_origin_trials",
|
| - ":make_core_generated_private_script",
|
| - ":make_core_generated_private_script_for_testing",
|
| - ":make_core_generated_style_builder",
|
| - ":make_core_generated_style_property_shorthand",
|
| - ":make_core_generated_svg_element_type_helpers",
|
| - ":make_core_generated_svg_names",
|
| - ":make_core_generated_xlink_names",
|
| - ":make_core_generated_xml_names",
|
| - ":make_core_generated_xml_ns_names",
|
| - ]
|
| -}
|
| -
|
| -# "CSSPropertyNames" in make_core_generated from GYP.
|
| css_properties("make_core_generated_css_property_names") {
|
| script = "../build/scripts/make_css_property_names.py"
|
| outputs = [
|
| @@ -594,7 +397,6 @@ css_properties("make_core_generated_css_property_names") {
|
| ]
|
| }
|
|
|
| -# "MediaFeatures" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_media_features") {
|
| script = "../build/scripts/make_media_features.py"
|
| in_files = [ "css/MediaFeatureNames.in" ]
|
| @@ -607,7 +409,6 @@ process_in_files("make_core_generated_media_features") {
|
| ]
|
| }
|
|
|
| -# "StylePropertyShorthand" in make_core_generated from GYP.
|
| css_properties("make_core_generated_style_property_shorthand") {
|
| script = "../build/scripts/make_style_shorthands.py"
|
| other_inputs = [
|
| @@ -620,7 +421,6 @@ css_properties("make_core_generated_style_property_shorthand") {
|
| ]
|
| }
|
|
|
| -# "StyleBuilder" in make_core_generated from GYP.
|
| css_properties("make_core_generated_style_builder") {
|
| script = "../build/scripts/make_style_builder.py"
|
| other_inputs = [
|
| @@ -635,7 +435,6 @@ css_properties("make_core_generated_style_builder") {
|
| ]
|
| }
|
|
|
| -# "CSSOMTypes" in make_core_generated from GYP.
|
| css_properties("make_core_generated_cssom_types") {
|
| script = "../build/scripts/make_cssom_types.py"
|
| other_inputs = [
|
| @@ -648,7 +447,6 @@ css_properties("make_core_generated_cssom_types") {
|
| ]
|
| }
|
|
|
| -# "CSSPropertyMetadata" in make_core_generated from GYP.
|
| css_properties("make_core_generated_css_property_metadata") {
|
| script = "../build/scripts/make_css_property_metadata.py"
|
| other_inputs = [ "../build/scripts/templates/CSSPropertyMetadata.cpp.tmpl" ]
|
| @@ -657,7 +455,6 @@ css_properties("make_core_generated_css_property_metadata") {
|
| ]
|
| }
|
|
|
| -# "CSSValueKeywords" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_css_value_keywords") {
|
| script = "../build/scripts/make_css_value_keywords.py"
|
|
|
| @@ -675,7 +472,6 @@ process_in_files("make_core_generated_css_value_keywords") {
|
| ]
|
| }
|
|
|
| -# "HTMLElementFactory" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_html_element_factory") {
|
| script = "../build/scripts/make_element_factory.py"
|
|
|
| @@ -692,7 +488,6 @@ process_in_files("make_core_generated_html_element_factory") {
|
| ]
|
| }
|
|
|
| -# "HTMLElementTypeHelpers" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_html_element_type_helpers") {
|
| script = "../build/scripts/make_element_type_helpers.py"
|
|
|
| @@ -703,7 +498,6 @@ process_in_files("make_core_generated_html_element_type_helpers") {
|
| ]
|
| }
|
|
|
| -# "SVGNames" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_svg_names") {
|
| script = "../build/scripts/make_element_factory.py"
|
|
|
| @@ -720,7 +514,6 @@ process_in_files("make_core_generated_svg_names") {
|
| ]
|
| }
|
|
|
| -# "SVGElementTypeHelpers" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_svg_element_type_helpers") {
|
| script = "../build/scripts/make_element_type_helpers.py"
|
|
|
| @@ -733,7 +526,6 @@ process_in_files("make_core_generated_svg_element_type_helpers") {
|
|
|
| # make_event_factory -----------------------------------------------------------
|
|
|
| -# "EventFactory" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_event_factory") {
|
| script = "../build/scripts/make_event_factory.py"
|
|
|
| @@ -750,7 +542,6 @@ process_in_files("make_core_generated_event_factory") {
|
|
|
| # make_names -------------------------------------------------------------------
|
|
|
| -# "MediaFeatureNames" in make_core_generated from GYP.
|
| process_in_files("make_core_generated_media_feature_names") {
|
| script = "../build/scripts/make_media_feature_names.py"
|
| in_files = [ "css/MediaFeatureNames.in" ]
|
| @@ -761,7 +552,6 @@ process_in_files("make_core_generated_media_feature_names") {
|
| ]
|
| }
|
|
|
| -# "MediaTypeNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_media_type_names") {
|
| in_files = [ "css/MediaTypeNames.in" ]
|
| outputs = [
|
| @@ -770,7 +560,6 @@ make_names("make_core_generated_media_type_names") {
|
| ]
|
| }
|
|
|
| -# "EventNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_event_names") {
|
| in_files = [ "$blink_core_output_dir/EventInterfaces.in" ]
|
| outputs = [
|
| @@ -779,7 +568,6 @@ make_names("make_core_generated_event_names") {
|
| ]
|
| }
|
|
|
| -# "EventTargetNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_event_target_names") {
|
| in_files = [ "events/EventTargetFactory.in" ]
|
| outputs = [
|
| @@ -788,7 +576,6 @@ make_names("make_core_generated_event_target_names") {
|
| ]
|
| }
|
|
|
| -# "FetchInitiatorTypeNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_fetch_initiator_type_names") {
|
| in_files = [ "fetch/FetchInitiatorTypeNames.in" ]
|
| outputs = [
|
| @@ -797,7 +584,6 @@ make_names("make_core_generated_fetch_initiator_type_names") {
|
| ]
|
| }
|
|
|
| -# "EventTypeNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_event_type_names") {
|
| in_files = [ "events/EventTypeNames.in" ]
|
| outputs = [
|
| @@ -806,7 +592,6 @@ make_names("make_core_generated_event_type_names") {
|
| ]
|
| }
|
|
|
| -# "HTMLTokenizerNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_html_tokenizer_names") {
|
| in_files = [ "html/parser/HTMLTokenizerNames.in" ]
|
| outputs = [
|
| @@ -815,7 +600,6 @@ make_names("make_core_generated_html_tokenizer_names") {
|
| ]
|
| }
|
|
|
| -# "InputTypeNames" in make_core_generated from GYP.
|
| make_names("make_core_generated_input_type_names") {
|
| in_files = [ "html/forms/InputTypeNames.in" ]
|
| outputs = [
|
| @@ -826,7 +610,6 @@ make_names("make_core_generated_input_type_names") {
|
|
|
| # make_qualified_names ---------------------------------------------------------
|
|
|
| -# "MathMLNames" in make_core_generated from GYP.
|
| make_qualified_names("make_core_generated_math_ml_names") {
|
| in_files = [
|
| "html/parser/MathMLTagNames.in",
|
| @@ -838,7 +621,6 @@ make_qualified_names("make_core_generated_math_ml_names") {
|
| ]
|
| }
|
|
|
| -# "XLinkNames" in make_core_generated from GYP.
|
| make_qualified_names("make_core_generated_xlink_names") {
|
| in_files = [ "svg/xlinkattrs.in" ]
|
| outputs = [
|
| @@ -847,7 +629,6 @@ make_qualified_names("make_core_generated_xlink_names") {
|
| ]
|
| }
|
|
|
| -# "XMLNSNames" in make_core_generated from GYP.
|
| make_qualified_names("make_core_generated_xml_ns_names") {
|
| in_files = [ "xml/xmlnsattrs.in" ]
|
| outputs = [
|
| @@ -856,7 +637,6 @@ make_qualified_names("make_core_generated_xml_ns_names") {
|
| ]
|
| }
|
|
|
| -# "XMLNames" in make_core_generated from GYP.
|
| make_qualified_names("make_core_generated_xml_names") {
|
| in_files = [ "xml/xmlattrs.in" ]
|
| outputs = [
|
| @@ -867,7 +647,6 @@ make_qualified_names("make_core_generated_xml_names") {
|
|
|
| # make_token_matcher -----------------------------------------------------------
|
|
|
| -# "MakeTokenMatcherForViewport" in make_core_generated from GYP.
|
| make_token_matcher("make_core_generated_make_token_matcher_for_viewport") {
|
| input_file = "html/HTMLMetaElement-in.cpp"
|
| output_file = "$blink_core_output_dir/HTMLMetaElement.cpp"
|
| @@ -875,13 +654,12 @@ make_token_matcher("make_core_generated_make_token_matcher_for_viewport") {
|
|
|
| # One-off scripts --------------------------------------------------------------
|
|
|
| -# "generatePrivateScript" in make_core_generated from GYP.
|
| # FIXME: The implementation of Blink-in-JS is not yet mature.
|
| # You can use Blink-in-JS in your local experiment, but don't ship it.
|
| # crbug.com/341031
|
| action("make_core_generated_private_script") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "../build/scripts/make_private_script_source.py"
|
|
|
| inputs = [
|
| @@ -901,7 +679,7 @@ action("make_core_generated_private_script") {
|
|
|
| action("make_core_generated_private_script_for_testing") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "../build/scripts/make_private_script_source.py"
|
|
|
| inputs = [
|
| @@ -919,10 +697,9 @@ action("make_core_generated_private_script_for_testing") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| -# "HTMLEntityTable" in make_core_generated from GYP.
|
| action("make_core_generated_html_entity_table") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "html/parser/create-html-entity-table"
|
|
|
| inputs = [
|
| @@ -938,10 +715,9 @@ action("make_core_generated_html_entity_table") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| -# "CSSTokenizerCodepoints" in make_core_generated from GYP.
|
| action("make_core_generated_css_tokenizer_codepoints") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "../build/scripts/make_css_tokenizer_codepoints.py"
|
|
|
| outputs = [
|
| @@ -956,10 +732,9 @@ action("make_core_generated_css_tokenizer_codepoints") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| -# "CSSPrimitiveValueUnitTrie" in make_core_generated from GYP.
|
| action("make_core_generated_css_primitive_value_unit_trie") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "../build/scripts/make_css_primitive_value_unit_trie.py"
|
|
|
| input_file = "css/CSSPrimitiveValueUnits.in"
|
| @@ -980,10 +755,9 @@ action("make_core_generated_css_primitive_value_unit_trie") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| -# "HTMLElementLookupTrie" in make_core_generated from GYP.
|
| action("make_core_generated_html_element_lookup_trie") {
|
| visibility = [] # Allow re-assignment of list.
|
| - visibility = [ ":make_core_generated" ]
|
| + visibility = [ ":*" ]
|
| script = "../build/scripts/make_element_lookup_trie.py"
|
|
|
| input_file = "html/HTMLTagNames.in"
|
| @@ -1006,7 +780,6 @@ action("make_core_generated_html_element_lookup_trie") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| -# "OriginTrials" action in make_core_generated from GYP.
|
| action("make_core_generated_origin_trials") {
|
| script = "../build/scripts/make_origin_trials.py"
|
|
|
| @@ -1028,7 +801,6 @@ action("make_core_generated_origin_trials") {
|
| ]
|
| }
|
|
|
| -# The bison rules from make_core_generated.
|
| action_foreach("make_core_generated_bison") {
|
| script = "../build/scripts/rule_bison.py"
|
| sources = [
|
| @@ -1047,6 +819,121 @@ action_foreach("make_core_generated_bison") {
|
| deps = make_core_generated_deps
|
| }
|
|
|
| +# Compiles the code generated by the targets above.
|
| +target(core_link_small_target_type, "core_generated") {
|
| + sources = bindings_core_v8_files
|
| +
|
| + # These files include all the .cpp files generated from the .idl files
|
| + # in webcore_files.
|
| + sources += bindings_core_generated_aggregate_files
|
| + sources += bindings_core_generated_union_type_files
|
| +
|
| + # IDL dictionary impl files generated by IDL compiler
|
| + sources += generated_core_dictionary_files
|
| +
|
| + # Targets from above that generate outputs that need to be compiled.
|
| + # All sources declared as outputs from these targets will be compiled into this
|
| + # target.
|
| + targets_generating_sources = [
|
| + ":make_core_generated_bison",
|
| + ":make_core_generated_css_primitive_value_unit_trie",
|
| + ":make_core_generated_css_property_metadata",
|
| + ":make_core_generated_css_property_names",
|
| + ":make_core_generated_cssom_types",
|
| + ":make_core_generated_event_factory",
|
| + ":make_core_generated_event_names",
|
| + ":make_core_generated_event_target_names",
|
| + ":make_core_generated_event_type_names",
|
| + ":make_core_generated_fetch_initiator_type_names",
|
| + ":make_core_generated_html_element_factory",
|
| + ":make_core_generated_html_element_lookup_trie",
|
| + ":make_core_generated_html_entity_table",
|
| + ":make_core_generated_html_tokenizer_names",
|
| + ":make_core_generated_input_type_names",
|
| + ":make_core_generated_make_token_matcher_for_viewport",
|
| + ":make_core_generated_math_ml_names",
|
| + ":make_core_generated_media_feature_names",
|
| + ":make_core_generated_media_type_names",
|
| + ":make_core_generated_origin_trials",
|
| + ":make_core_generated_style_builder",
|
| + ":make_core_generated_style_property_shorthand",
|
| + ":make_core_generated_svg_names",
|
| + ":make_core_generated_xlink_names",
|
| + ":make_core_generated_xml_names",
|
| + ":make_core_generated_xml_ns_names",
|
| + ":make_core_generated_private_script",
|
| + ":make_core_generated_html_element_type_helpers",
|
| + ":make_core_generated_css_value_keywords",
|
| + ":make_core_generated_media_features",
|
| + ":make_core_generated_svg_element_type_helpers",
|
| + ":make_core_generated_private_script_for_testing",
|
| + ]
|
| +
|
| + # Add all sources generated by the targets above.
|
| + foreach(current, targets_generating_sources) {
|
| + sources += get_target_outputs(current)
|
| + }
|
| + public_deps = targets_generating_sources
|
| + public_deps += [
|
| + # This target's generated source is #included into another source file.
|
| + # So we don't want to list it in the "generating sources" list above,
|
| + # but it does need to be listed as a dependency here.
|
| + ":make_core_generated_css_tokenizer_codepoints",
|
| + ]
|
| +
|
| + configs -= core_config_remove
|
| + configs += core_config_add + [ "..:inside_blink" ]
|
| +
|
| + # Dependencies required to compile the sources.
|
| + public_deps += [
|
| + ":prerequisites",
|
| + "//gin",
|
| + "//skia",
|
| + "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
|
| + "//third_party/iccjpeg",
|
| + "//third_party/libpng",
|
| + "//third_party/libwebp",
|
| + "//third_party/libxml",
|
| + "//third_party/libxslt",
|
| + "//third_party/qcms",
|
| + "//third_party/sqlite",
|
| +
|
| + # FIXME: don't depend on bindings/modules http://crbug.com/358074
|
| + "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
|
| + "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated",
|
| + "//third_party/WebKit/Source/platform:make_platform_generated",
|
| + "//third_party/WebKit/Source/wtf",
|
| + "//url",
|
| + "//v8",
|
| + ]
|
| +
|
| + configs += [
|
| + ":core_include_dirs",
|
| +
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + "//build/config/compiler:no_size_t_to_int_warning",
|
| + ]
|
| + include_dirs = [ "$root_gen_dir/blink" ]
|
| +
|
| + cflags = []
|
| + defines = []
|
| +
|
| + if (is_win && is_component_build) {
|
| + defines += [ "USING_V8_SHARED" ]
|
| + }
|
| +
|
| + if (is_win) {
|
| + cflags += [
|
| + # In generated bindings code: "switch contains default but no case".
|
| + # 4701 and 4702 are disabled because of issues in Bison-generated
|
| + # XPathGrammar.cpp.
|
| + "/wd4065",
|
| + "/wd4701",
|
| + "/wd4702",
|
| + ]
|
| + }
|
| +}
|
| +
|
| # Fuzzer for blink::TextResourceDecoder.
|
| fuzzer_test("text_resource_decoder_fuzzer") {
|
| sources = [
|
|
|