Meta: Port recent build changes to gn build

This ports the following commits:

f76c614a84
ddbe6bd7b4
2eaa528a0e
1b40bf9783
9f6ceff7cf
52d6df5ee5
9e22f01eba
bf4e2f3e9c
da2cd73bcf
This commit is contained in:
Sebastian Zaha 2023-08-12 22:44:37 +02:00 committed by Andrew Kaster
parent 4c26b0b047
commit b4df4d66dc
Notes: sideshowbarker 2024-07-17 03:18:29 +09:00
10 changed files with 39 additions and 13 deletions

View file

@ -52,6 +52,14 @@ lagom_tool("GenerateCSSPropertyID") {
]
}
lagom_tool("GenerateCSSPseudoClass") {
sources = [ "GenerateCSSPseudoClass.cpp" ]
deps = [
":headers",
"//Userland/Libraries/LibMain",
]
}
lagom_tool("GenerateCSSTransformFunctions") {
sources = [ "GenerateCSSTransformFunctions.cpp" ]
deps = [

View file

@ -30,6 +30,8 @@ source_set("sources") {
"EventLoopImplementation.h",
"EventLoopImplementationUnix.cpp",
"EventLoopImplementationUnix.h",
"EventReceiver.cpp",
"EventReceiver.h",
"File.cpp",
"File.h",
"Forward.h",
@ -44,15 +46,11 @@ source_set("sources") {
"NetworkResponse.h",
"Notifier.cpp",
"Notifier.h",
"Object.cpp",
"Object.h",
"Process.cpp",
"Process.h",
"ProcessStatisticsReader.cpp",
"ProcessStatisticsReader.h",
"Promise.h",
"Property.cpp",
"Property.h",
"Proxy.h",
"SOCKSProxyClient.cpp",
"SOCKSProxyClient.h",

View file

@ -42,7 +42,6 @@ shared_library("LibJS") {
"Heap/Heap.cpp",
"Heap/HeapBlock.cpp",
"Heap/MarkedVector.cpp",
"Interpreter.cpp",
"Lexer.cpp",
"MarkupGenerator.cpp",
"Module.cpp",

View file

@ -45,7 +45,6 @@ shared_library("LibSQL") {
"BTree.cpp",
"BTreeIterator.cpp",
"Database.cpp",
"HashIndex.cpp",
"Heap.cpp",
"Index.cpp",
"Key.cpp",

View file

@ -223,6 +223,13 @@ embed_as_string_view("generate_default_stylesheet_source") {
namespace = "Web::CSS"
}
embed_as_string_view("generate_mathml_stylesheet_source") {
input = "MathML/Default.css"
output = "$target_gen_dir/MathML/MathMLStyleSheetSource.cpp"
variable_name = "mathml_stylesheet_source"
namespace = "Web::CSS"
}
embed_as_string_view("generate_quirks_mode_stylesheet_source") {
input = "CSS/QuirksMode.css"
output = "$target_gen_dir/CSS/QuirksModeStyleSheetSource.cpp"
@ -230,13 +237,6 @@ embed_as_string_view("generate_quirks_mode_stylesheet_source") {
namespace = "Web::CSS"
}
embed_as_string_view("generate_mathml_stylesheet_source") {
input = "MathML/Default.css"
output = "$target_gen_dir/MathML/MathMLStyleSheetSource.cpp"
variable_name = "mathml_stylesheet_source"
namespace = "Web::MathML"
}
source_set("all_generated") {
generated_deps = [
":generate_aria_roles",
@ -249,6 +249,7 @@ source_set("all_generated") {
":generate_css_transform_functions",
":generate_css_value_id",
":generate_default_stylesheet_source",
":generate_mathml_stylesheet_source",
":generate_quirks_mode_stylesheet_source",
":generate_window_or_worker_interfaces",
]
@ -293,9 +294,11 @@ shared_library("LibWeb") {
"HTML",
"HighResolutionTime",
"Infra",
"Internals",
"IntersectionObserver",
"Layout",
"Loader",
"MathML",
"MimeSniff",
"NavigationTiming",
"Page",

View file

@ -37,6 +37,7 @@ source_set("StyleValues") {
"OverflowStyleValue.cpp",
"PlaceContentStyleValue.cpp",
"PlaceItemsStyleValue.cpp",
"PlaceSelfStyleValue.cpp",
"PositionStyleValue.cpp",
"RadialGradientStyleValue.cpp",
"RectStyleValue.cpp",

View file

@ -0,0 +1,5 @@
source_set("Internals") {
configs += [ "//Userland/Libraries/LibWeb:configs" ]
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
sources = [ "Internals.cpp" ]
}

View file

@ -0,0 +1,8 @@
source_set("MathML") {
configs += [ "//Userland/Libraries/LibWeb:configs" ]
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
sources = [
"MathMLElement.cpp",
"TagNames.cpp",
]
}

View file

@ -20,6 +20,7 @@ source_set("SVG") {
"SVGLength.cpp",
"SVGLineElement.cpp",
"SVGLinearGradientElement.cpp",
"SVGMaskElement.cpp",
"SVGPathElement.cpp",
"SVGPolygonElement.cpp",
"SVGPolylineElement.cpp",

View file

@ -41,6 +41,7 @@ standard_idl_files = [
"//Userland/Libraries/LibWeb/CSS/Screen.idl",
"//Userland/Libraries/LibWeb/CSS/StyleSheet.idl",
"//Userland/Libraries/LibWeb/CSS/StyleSheetList.idl",
"//Userland/Libraries/LibWeb/CSS/VisualViewport.idl",
"//Userland/Libraries/LibWeb/DOM/AbstractRange.idl",
"//Userland/Libraries/LibWeb/DOM/Attr.idl",
"//Userland/Libraries/LibWeb/DOM/AbortController.idl",
@ -198,8 +199,10 @@ standard_idl_files = [
"//Userland/Libraries/LibWeb/HTML/WorkerLocation.idl",
"//Userland/Libraries/LibWeb/HTML/WorkerNavigator.idl",
"//Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl",
"//Userland/Libraries/LibWeb/Internals/Internals.idl",
"//Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl",
"//Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserverEntry.idl",
"//Userland/Libraries/LibWeb/MathML/MathMLElement.idl",
"//Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl",
"//Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.idl",
"//Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.idl",
@ -231,6 +234,7 @@ standard_idl_files = [
"//Userland/Libraries/LibWeb/SVG/SVGLength.idl",
"//Userland/Libraries/LibWeb/SVG/SVGLineElement.idl",
"//Userland/Libraries/LibWeb/SVG/SVGLinearGradientElement.idl",
"//Userland/Libraries/LibWeb/SVG/SVGMaskElement.idl",
"//Userland/Libraries/LibWeb/SVG/SVGPathElement.idl",
"//Userland/Libraries/LibWeb/SVG/SVGPolygonElement.idl",
"//Userland/Libraries/LibWeb/SVG/SVGPolylineElement.idl",