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

Unified Diff: Source/core/BUILD.gn

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebuilding fixed Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/BUILD.gn
diff --git a/Source/core/BUILD.gn b/Source/core/BUILD.gn
index 820701c5bfe9f16b006a19d28fe5962322971310..201b63e4dea1ef7518855669c0be05e569eacb73 100644
--- a/Source/core/BUILD.gn
+++ b/Source/core/BUILD.gn
@@ -2,9 +2,34 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//third_party/WebKit/Source/bindings/bindings.gni")
+import("//third_party/WebKit/Source/config.gni")
+import("//third_party/WebKit/Source/build/scripts/scripts.gni")
+
+blink_gen_dir = "$root_gen_dir/blink"
+# The blink_gen_dir relative to the root build directory. We use this a log.
+rel_blink_gen_dir = rebase_path(blink_gen_dir, root_build_dir)
+
+# TODO(GYP) when we add real targets to this file, don't forget to enable:
+# - wexit_time_destructors
+# - optimize: max (check what this does on Android before using).
+
+config("core_include_dirs") {
+ include_dirs = [
+ "..",
+ "../..",
+ blink_gen_dir,
+ bindings_output_dir,
+ ]
+ if (is_android && use_openmax_dl_fft) {
+ include_dirs += [ "//third_party/openmax_dl" ]
+ }
+}
+
group("generated") {
deps = [
- "../wtf",
+ ":make_core_generated",
+ ":prerequisites",
"inspector:debugger_script_source",
"inspector:inspector_overlay_page",
"inspector:protocol_sources",
@@ -17,12 +42,12 @@ group("generated") {
"//third_party/libwebp",
"//third_party/qcms",
"//third_party/sqlite",
+ "//third_party/WebKit/Source/bindings",
+ "//third_party/WebKit/Source/wtf",
"//url",
# TODO(GYP)
#"//v8",
#'webcore_prerequisites',
- #'core_generated.gyp:make_core_generated',
- #'../bindings/generated_bindings.gyp:generated_bindings',
#'../platform/platform_generated.gyp:make_platform_generated',
#'<(DEPTH)/gin/gin.gyp:gin',
#'<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
@@ -30,3 +55,766 @@ group("generated") {
#'<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
]
}
+
+group("prerequisites") {
+ deps = [
+ ":make_core_generated",
+ "inspector:debugger_script_source",
+ "inspector:injected_canvas_script_source",
+ "inspector:injected_script_source",
+ "inspector:inspector_overlay_page",
+ "inspector:protocol_sources",
+ "inspector:instrumentation_sources",
+ "//third_party/WebKit/Source/bindings",
+ "//third_party/WebKit/Source/platform",
+ "//third_party/WebKit/Source/wtf",
+ "//gpu/command_buffer/client:gles2_c_lib",
+ "//skia",
+ "//third_party/iccjpeg",
+ "//third_party/libpng",
+ "//third_party/libwebp",
+ #"//third_party/libxml",
+ #"//third_party/libxslt",
+ #"//third_party/npapi",
+ "//third_party/ots",
+ "//third_party/qcms",
+ "//third_party/sqlite",
+ "//third_party/zlib",
+ "//url",
+ #"//v8",
+ #'<(angle_path)/src/build_angle.gyp:translator',
+ ]
+
+ direct_dependent_configs = [
+ "//third_party/WebKit/Source:config",
+ ]
+}
+
+# Corresponds to core.gyp:webcore
+#
+# Note that this is a source set rather than a group, even though it has no
+# sources. A group would implicitly forward all direct dependent configs
+# through it, but we want to keep our internal targets'
+# direct_dependent_configs private and only forward some of them.
+source_set("core") {
+ exported_deps = [
+ #":core_generated", # TODO(GYP)
+ "//skia",
+ #"//third_party/npapi", # TODO(GYP)
+ "//third_party/qcms",
+ "//third_party/WebKit/Source/wtf",
+ "//url",
+ #"//v8", # TODO(GYP)
+ ]
+
+ deps = [
+ # TODO(GYP)
+ #":dom",
+ #":html",
+ #":remaining",
+ #":rendering",
+ #":svg",
+ ] + exported_deps
+
+ forward_dependent_configs_from = exported_deps
+
+ direct_dependent_configs = [ ":core_include_dirs" ]
+
+ # TODO(GYP) IPP libraries pkg-config. These seem to be experimental and used
+ # only on x86 Android.
+}
+
+# core_generated ---------------------------------------------------------------
+
+group("generated_testing_idls") {
+ deps = [
+ ":generated_testing_idls_settings",
+ ":generated_testing_idls_internal_runtime_flags",
+ ]
+}
+
+# "Settings" action in generated_testing_idls from GYP.
+action("generated_testing_idls_settings") {
+ script = "../build/scripts/make_settings.py"
+
+ source_prereqs = scripts_for_in_files + [
+ "../build/scripts/make_settings.py",
+ "../build/scripts/templates/InternalSettingsGenerated.idl.tmpl",
+ "../build/scripts/templates/InternalSettingsGenerated.cpp.tmpl",
+ "../build/scripts/templates/InternalSettingsGenerated.h.tmpl",
+ "../build/scripts/templates/SettingsMacros.h.tmpl",
+ "frame/Settings.in",
+ ]
+ outputs = [
+ "$blink_gen_dir/SettingsMacros.h",
+ "$blink_gen_dir/InternalSettingsGenerated.idl",
+ "$blink_gen_dir/InternalSettingsGenerated.cpp",
+ ]
+
+ args = [
+ rebase_path("frame/Settings.in", root_build_dir),
+ "--output_dir", rel_blink_gen_dir,
+ ]
+}
+
+# "InternalRuntimeFlags" action in generated_testing_idls from GYP.
+action("generated_testing_idls_internal_runtime_flags") {
+ script = "../build/scripts/make_internal_runtime_flags.py"
+
+ source_prereqs = scripts_for_in_files + [
+ "../build/scripts/make_internal_runtime_flags.py",
+ "../platform/RuntimeEnabledFeatures.in",
+ "../build/scripts/templates/InternalRuntimeFlags.h.tmpl",
+ "../build/scripts/templates/InternalRuntimeFlags.idl.tmpl",
+ ]
+ outputs = [
+ "$blink_gen_dir/InternalRuntimeFlags.idl",
+ "$blink_gen_dir/InternalRuntimeFlags.h",
+ ]
+
+ args = [
+ rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
+ "--output_dir", rel_blink_gen_dir,
+ ]
+}
+
+# make_core_generated ----------------------------------------------------------
+
+# The GYP target make_core_generated has some deps and a bunch of actions on
+# it, which means that the deps will be resolved before the actions run. Here
+# we have separate targets for each action. Its not clear which actions depend
+# on these deps, so for GYP compatibility, all of the below actions should
+# depend on the following deps.
+make_core_generated_deps = [
+ ":generated_testing_idls",
+ "//third_party/WebKit/Source/bindings:core_bindings_generated",
+]
+
+group("make_core_generated") {
+ deps = [
+ ":make_core_generated_xml_viewer_css",
+ ":make_core_generated_css_property_names",
+ ":make_core_generated_media_feature_names",
+ ":make_core_generated_media_features",
+ ":make_core_generated_style_property_shorthand",
+ ":make_core_generated_style_builder",
+ ":make_core_generated_css_value_keywords",
+ ":make_core_generated_html_element_factory",
+ ":make_core_generated_html_element_type_helpers",
+ ":make_core_generated_svg_names",
+ ":make_core_generated_svg_element_type_helpers",
+ ":make_core_generated_event_factory",
+ ":make_core_generated_event_target_factory",
+ ":make_core_generated_media_type_names",
+ ":make_core_generated_event_names",
+ ":make_core_generated_event_target_names",
+ ":make_core_generated_fetch_initiator_type_names",
+ ":make_core_generated_event_type_names",
+ ":make_core_generated_html_tokenizer_names",
+ ":make_core_generated_input_type_names",
+ ":make_core_generated_math_ml_names",
+ ":make_core_generated_xlink_names",
+ ":make_core_generated_xml_names",
+ ":make_core_generated_make_token_matcher",
+ ":make_core_generated_make_parser",
+ ":make_core_generated_make_token_matcher_for_viewport",
+ ":make_core_generated_xml_viewer_css",
+ ":make_core_generated_xml_viewer_js",
+ ":make_core_generated_html_entity_table",
+ ":make_core_generated_media_query_tokenizer_codepoints",
+ ":make_core_generated_user_agent_style_sheets",
+ ":make_core_generated_html_element_lookup_trie",
+ ":make_core_generated_bison",
+ ]
+}
+
+# Template to run most of the scripts used by the core_generated actions that
+# process ".in" files.
+# script: script to run.
+# in_files: ".in" files to pass to the script
+# other_inputs: (optional) other input files the script depends on
+# defaults to "scripts_for_in_files" (if specified, we assume
+# that the contents of "scripts_for_in_files" are included in
+# this list specified since this is how these lists are filled
+# from the GYP build.
+# outputs: expected results relative to the blink_gen_dir
+# other_args: (optional) other arguements to pass to the script.
+template("process_in_files") {
+ action(target_name) {
+ visibility = ":make_core_generated"
+ script = invoker.script
+
+ source_prereqs = invoker.in_files
+ if (defined(invoker.other_inputs)) {
+ source_prereqs += invoker.other_inputs
+ } else {
+ source_prereqs += scripts_for_in_files
+ }
+ outputs = rebase_path(invoker.outputs, ".", blink_gen_dir)
+
+ args = rebase_path(invoker.in_files, root_build_dir) + [
+ "--output_dir", rel_blink_gen_dir,
+ ]
+ if (defined(invoker.other_args)) {
+ args += invoker.other_args
+ }
+
+ deps = make_core_generated_deps
+ }
+}
+
+# "CSSPropertyNames" in make_core_generated from GYP.
+process_in_files("make_core_generated_css_property_names") {
+ script = "../build/scripts/make_css_property_names.py"
+ in_files = [
+ "css/CSSPropertyNames.in",
+ "css/SVGCSSPropertyNames.in",
+ ]
+ outputs = [
+ "CSSPropertyNames.cpp",
+ "CSSPropertyNames.h",
+ ]
+ other_args = [ "--defines", feature_defines_string ]
+}
+
+# "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",
+ ]
+ other_inputs = [
+ "../build/scripts/make_media_features.py",
+ "../build/scripts/templates/MediaFeatures.h.tmpl",
+ ]
+ outputs = [
+ "MediaFeatures.h",
+ ]
+ other_args = [ "--defines", feature_defines_string ]
+}
+
+# "StylePropertyShorthand" in make_core_generated from GYP.
+process_in_files("make_core_generated_style_property_shorthand") {
+ script = "../build/scripts/make_style_shorthands.py"
+ in_files = [
+ "css/CSSShorthands.in",
+ ]
+ other_inputs = [
+ "../build/scripts/templates/StylePropertyShorthand.cpp.tmpl",
+ "../build/scripts/templates/StylePropertyShorthand.h.tmpl",
+ ]
+ outputs = [
+ "StylePropertyShorthand.cpp",
+ "StylePropertyShorthand.h",
+ ]
+}
+
+# "StyleBuilder" in make_core_generated from GYP.
+process_in_files("make_core_generated_style_builder") {
+ script = "../build/scripts/make_style_builder.py"
+
+ in_files = [
+ "css/CSSProperties.in",
+ ]
+ other_inputs = [
+ "../build/scripts/templates/StyleBuilder.cpp.tmpl",
+ "../build/scripts/templates/StyleBuilderFunctions.cpp.tmpl",
+ "../build/scripts/templates/StyleBuilderFunctions.h.tmpl",
+ ]
+ outputs = [
+ "StyleBuilder.cpp",
+ "StyleBuilderFunctions.h",
+ "StyleBuilderFunctions.cpp",
+ ]
+}
+
+# "CSSValueKeywords" in make_core_generated from GYP.
+process_in_files("make_core_generated_css_value_keywords") {
+ script = "../build/scripts/make_css_value_keywords.py"
+
+ in_files = [
+ "css/CSSValueKeywords.in",
+ "css/SVGCSSValueKeywords.in",
+ ]
+ outputs = [
+ "CSSValueKeywords.cpp",
+ "CSSValueKeywords.h",
+ ]
+ other_args = [
+ "--gperf", gperf_exe,
+ "--defines", feature_defines_string
+ ]
+}
+
+# "HTMLElementFactory" in make_core_generated from GYP.
+process_in_files("make_core_generated_html_element_factory") {
+ script = "../build/scripts/make_element_factory.py"
+
+ in_files = [
+ "html/HTMLTagNames.in",
+ "html/HTMLAttributeNames.in",
+ ]
+ other_inputs = make_element_factory_files
+ outputs = [
+ "HTMLElementFactory.cpp",
+ "HTMLElementFactory.h",
+ "HTMLNames.cpp",
+ "HTMLNames.h",
+ "V8HTMLElementWrapperFactory.cpp",
+ "V8HTMLElementWrapperFactory.h",
+ ]
+}
+
+# "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"
+
+ in_files = [
+ "html/HTMLTagNames.in",
+ ]
+ other_inputs = make_element_type_helpers_files
+ outputs = [
+ "HTMLElementTypeHelpers.h",
+ ]
+}
+
+# "SVGNames" in make_core_generated from GYP.
+process_in_files("make_core_generated_svg_names") {
+ script = "../build/scripts/make_element_factory.py"
+
+ in_files = [
+ "svg/SVGTagNames.in",
+ "svg/SVGAttributeNames.in",
+ ]
+ other_inputs = make_element_factory_files
+ outputs = [
+ "SVGElementFactory.cpp",
+ "SVGElementFactory.h",
+ "SVGNames.cpp",
+ "SVGNames.h",
+ "V8SVGElementWrapperFactory.cpp",
+ "V8SVGElementWrapperFactory.h",
+ ]
+}
+
+# "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"
+
+ in_files = [
+ "svg/SVGTagNames.in",
+ ]
+ other_inputs = make_element_type_helpers_files
+ outputs = [
+ "SVGElementTypeHelpers.h",
+ ]
+}
+
+# "EventFactory" in make_core_generated from GYP.
+process_in_files("make_core_generated_event_factory") {
+ script = "../build/scripts/make_event_factory.py"
+
+ in_files = [
+ "$blink_gen_dir/EventInterfaces.in",
+ "events/EventAliases.in",
+ ]
+ other_inputs = make_event_factory_files
+ outputs = [
+ "Event.cpp",
+ "EventHeaders.h",
+ "EventInterfaces.h",
+ ]
+}
+
+# "EventTargetFactory" in make_core_generated from GYP.
+process_in_files("make_core_generated_event_target_factory") {
+ script = "../build/scripts/make_event_factory.py"
+
+ in_files = [
+ "events/EventTargetFactory.in",
+ ]
+ other_inputs = make_event_factory_files
+ outputs = [
+ "EventTargetHeaders.h",
+ "EventTargetInterfaces.h",
+ ]
+}
+
+# "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",
+ ]
+ other_inputs = make_names_files
+ outputs = [
+ "MediaFeatureNames.cpp",
+ "MediaFeatureNames.h",
+ ]
+ other_args = [ "--defines", feature_defines_string ]
+}
+
+# make_names -------------------------------------------------------------------
+
+# Template to run the make_names script. This is a special case of
+# process_in_files.
+# in_files: files to pass to the script
+# outputs: expected results relative to the blink_gen_dir
+template("make_names") {
+ process_in_files(target_name) {
+ script = "../build/scripts/make_names.py"
+ in_files = invoker.in_files
+ other_inputs = make_names_files
+ outputs = invoker.outputs
+ other_args = [ "--defines", feature_defines_string ]
+ }
+}
+
+# "MediaTypeNames" in make_core_generated from GYP.
+make_names("make_core_generated_media_type_names") {
+ in_files = [
+ "css/MediaTypeNames.in",
+ ]
+ outputs = [
+ "MediaTypeNames.cpp",
+ "MediaTypeNames.h",
+ ]
+}
+
+# "EventNames" in make_core_generated from GYP.
+make_names("make_core_generated_event_names") {
+ in_files = [
+ "$blink_gen_dir/EventInterfaces.in",
+ ]
+ outputs = [
+ "EventNames.cpp",
+ "EventNames.h",
+ ]
+}
+
+# "EventTargetNames" in make_core_generated from GYP.
+make_names("make_core_generated_event_target_names") {
+ in_files = [
+ "events/EventTargetFactory.in",
+ ]
+ outputs = [
+ "EventTargetNames.cpp",
+ "EventTargetNames.h",
+ ]
+}
+
+# "FetchInitiatorTypeNames" in make_core_generated from GYP.
+make_names("make_core_generated_fetch_initiator_type_names") {
+ in_files = [
+ "fetch/FetchInitiatorTypeNames.in",
+ ]
+ outputs = [
+ "FetchInitiatorTypeNames.cpp",
+ "FetchInitiatorTypeNames.h",
+ ]
+}
+
+# "EventTypeNames" in make_core_generated from GYP.
+make_names("make_core_generated_event_type_names") {
+ in_files = [
+ "events/EventTypeNames.in",
+ ]
+ outputs = [
+ "EventTypeNames.cpp",
+ "EventTypeNames.h",
+ ]
+}
+
+# "HTMLTokenizerNames" in make_core_generated from GYP.
+make_names("make_core_generated_html_tokenizer_names") {
+ in_files = [
+ "html/parser/HTMLTokenizerNames.in",
+ ]
+ outputs = [
+ "HTMLTokenizerNames.cpp",
+ "HTMLTokenizerNames.h",
+ ]
+}
+
+# "InputTypeNames" in make_core_generated from GYP.
+make_names("make_core_generated_input_type_names") {
+ in_files = [
+ "html/forms/InputTypeNames.in",
+ ]
+ outputs = [
+ "InputTypeNames.cpp",
+ "InputTypeNames.h",
+ ]
+}
+
+# make_qualified_names ---------------------------------------------------------
+
+# Calls the make_qualified_names script.
+# in_files: list of ".in" files to process.
+# outputs: list of output files relative to blink_gen_dir.
+template("make_qualified_names") {
+ process_in_files(target_name) {
+ script = "../build/scripts/make_qualified_names.py"
+ in_files = invoker.in_files
+ other_inputs = make_qualified_names_files
+ outputs = invoker.outputs
+ other_args = [ "--defines", feature_defines_string ]
+ }
+}
+
+# "MathMLNames" in make_core_generated from GYP.
+make_qualified_names("make_core_generated_math_ml_names") {
+ in_files = [
+ "html/parser/MathMLTagNames.in",
+ "html/parser/MathMLAttributeNames.in",
+ ]
+ outputs = [
+ "MathMLNames.cpp",
+ "MathMLNames.h",
+ ]
+}
+
+# "XLinkNames" in make_core_generated from GYP.
+make_qualified_names("make_core_generated_xlink_names") {
+ in_files = [
+ "svg/xlinkattrs.in",
+ ]
+ outputs = [
+ "XLinkNames.cpp",
+ "XLinkNames.h",
+ ]
+}
+
+# "XMLNSNames" in make_core_generated from GYP.
+make_qualified_names("make_core_generated_xml_ns_names") {
+ in_files = [
+ "xml/xmlnsattrs.in",
+ ]
+ outputs = [
+ "XMLNSNames.cpp",
+ "XMLNSNames.h",
+ ]
+}
+
+# "XMLNames" in make_core_generated from GYP.
+make_qualified_names("make_core_generated_xml_names") {
+ in_files = [
+ "xml/xmlattrs.in",
+ ]
+ outputs = [
+ "XMLNames.cpp",
+ "XMLNames.h",
+ ]
+}
+
+# make_token_matcher -----------------------------------------------------------
+
+# Calls the make_token_matcher script.
+# input_file: The "*-in.cpp" file
+# output_file: The output file (relative to the build_gen_dir)
+template("make_token_matcher") {
+ action(target_name) {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/make_token_matcher.py"
+
+ source_prereqs = scripts_for_in_files + [ invoker.input_file ]
+ outputs = [
+ rebase_path(invoker.output_file, ".", blink_gen_dir)
+ ]
+
+ args = [
+ rebase_path(invoker.input_file, root_build_dir),
+ rebase_path(invoker.output_file, root_build_dir, blink_gen_dir),
+ ]
+
+ deps = make_core_generated_deps
+ }
+}
+
+# "MakeTokenMatcher" in make_core_generated from GYP.
+make_token_matcher("make_core_generated_make_token_matcher") {
+ input_file = "css/CSSTokenizer-in.cpp"
+ output_file = "CSSTokenizer.cpp"
+}
+
+# "MakeParser" in make_core_generated from GYP.
+make_token_matcher("make_core_generated_make_parser") {
+ input_file = "css/parser/BisonCSSParser-in.cpp"
+ output_file = "BisonCSSParser.cpp"
+}
+
+# "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 = "HTMLMetaElement.cpp"
+}
+
+# One-off scripts --------------------------------------------------------------
+
+# "generateXMLViewerCSS" in make_core_generated from GYP.
+action("make_core_generated_xml_viewer_css") {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/xxd.py"
+
+ source_prereqs = [
+ "xml/XMLViewer.css",
+ ]
+ outputs = [
+ "$blink_gen_dir/XMLViewerCSS.h",
+ ]
+
+ args = [
+ "XMLViewer_css",
+ rebase_path(source_prereqs[0], root_build_dir),
+ rebase_path(outputs[0], root_build_dir),
+ ]
+
+ deps = make_core_generated_deps
+}
+
+# "generateXMLViewerJS" in make_core_generated from GYP.
+action("make_core_generated_xml_viewer_js") {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/xxd.py"
+
+ source_prereqs = [
+ "xml/XMLViewer.js",
+ ]
+ outputs = [
+ "$blink_gen_dir/XMLViewerJS.h",
+ ]
+
+ args = [
+ "XMLViewer_js",
+ rebase_path(source_prereqs[0], root_build_dir),
+ rebase_path(outputs[0], root_build_dir),
+ ]
+
+ deps = make_core_generated_deps
+}
+
+# "HTMLEntityTable" in make_core_generated from GYP.
+action("make_core_generated_html_entity_table") {
+ visibility = ":make_core_generated"
+ script = "html/parser/create-html-entity-table"
+
+ source_prereqs = [
+ "html/parser/HTMLEntityNames.in",
+ ]
+ outputs = [
+ "$blink_gen_dir/HTMLEntityTable.cpp",
+ ]
+
+ args = [ "-o" ] + rebase_path(outputs, root_build_dir)
+ args += rebase_path(source_prereqs, root_build_dir)
+
+ deps = make_core_generated_deps
+}
+
+# "MediaQueryTokenizerCodepoints" in make_core_generated from GYP.
+action("make_core_generated_media_query_tokenizer_codepoints") {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/make_mediaquery_tokenizer_codepoints.py"
+
+ outputs = [
+ "$blink_gen_dir/MediaQueryTokenizerCodepoints.cpp",
+ ]
+
+ args = [
+ "--output_dir", rel_blink_gen_dir,
+ "--defines", feature_defines_string
+ ]
+
+ deps = make_core_generated_deps
+}
+
+# "UserAgentStyleSheets" in make_core_generated from GYP.
+action("make_core_generated_user_agent_style_sheets") {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/action_useragentstylesheets.py"
+
+ scripts = [
+ "css/make-css-file-arrays.pl",
+ "../build/scripts/preprocessor.pm",
+ ]
+ stylesheets = [
+ "css/html.css",
+ "css/quirks.css",
+ "css/view-source.css",
+ "css/themeChromium.css",
+ "css/themeChromiumAndroid.css",
+ "css/themeChromiumLinux.css",
+ "css/themeChromiumSkia.css",
+ "css/themeMac.css",
+ "css/themeWin.css",
+ "css/themeWinQuirks.css",
+ "css/svg.css",
+ "css/mathml.css",
+ "css/mediaControls.css",
+ "css/mediaControlsAndroid.css",
+ "css/fullscreen.css",
+ "css/xhtmlmp.css",
+ "css/viewportAndroid.css",
+ ]
+
+ source_prereqs = scripts + stylesheets
+ outputs = [
+ "$blink_gen_dir/UserAgentStyleSheets.h",
+ "$blink_gen_dir/UserAgentStyleSheetsData.cpp",
+ ]
+
+ args =
+ rebase_path(outputs, root_build_dir) +
+ rebase_path(stylesheets, root_build_dir) +
+ [ "--" ] +
+ rebase_path(scripts, root_build_dir) +
+ [ "--", "--defines", feature_defines_string ] +
+ [ preprocessor ] +
+ [ "--perl", perl_exe ]
+
+ deps = make_core_generated_deps
+}
+
+# "HTMLElementLookupTrie" in make_core_generated from GYP.
+action("make_core_generated_html_element_lookup_trie") {
+ visibility = ":make_core_generated"
+ script = "../build/scripts/make_element_lookup_trie.py"
+
+ input_file = "html/HTMLTagNames.in"
+ source_prereqs = scripts_for_in_files + [
+ input_file,
+ "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
+ "../build/scripts/templates/ElementLookupTrie.h.tmpl",
+ ]
+ outputs = [
+ "$blink_gen_dir/HTMLElementLookupTrie.cpp",
+ "$blink_gen_dir/HTMLElementLookupTrie.h",
+ ]
+
+ args = [
+ rebase_path(input_file, root_build_dir),
+ "--output_dir", rel_blink_gen_dir,
+ ]
+
+ deps = make_core_generated_deps
+}
+
+# The bison rules from make_core_generated.
+action_foreach("make_core_generated_bison") {
+ script = "../build/scripts/rule_bison.py"
+ sources = [
+ "css/CSSGrammar.y",
+ "xml/XPathGrammar.y",
+ ]
+ outputs = [
+ "$blink_gen_dir/{{source_name_part}}.cpp",
+ "$blink_gen_dir/{{source_name_part}}.h",
+ ]
+ args = [
+ "{{source}}",
+ rel_blink_gen_dir,
+ bison_exe,
+ ]
+
+ deps = make_core_generated_deps
+}
« Source/bindings/bindings.gni ('K') | « Source/config.gni ('k') | Source/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698