Meta: Port recent changes to the GN build

59aaef08d9 LibMedia: Rename LibVideo to LibMedia
aa2f5df0a9 AK: Add a helper to detect which CPU features are supported
0bbf42bca7 LibJS: Introduce the CanonicalizeKeyedCollectionKey AO
e06d74c314 LibWeb: Give DOM Elements a CountersSet
07fe3e57c6 LibWeb: Implement CounterStyleValue
1bc896fa60 LibWeb: Implement counter-[increment,reset,set] properties
78a22f5098 LibWeb: Replace templated retarget function with a regul...
e4fa0e7f63 LibWeb: Implement fetch record from the fetch spec
a8c4f34bff LibWeb: Create separate DedicatedWorkerGlobalScope class

Also add Services to include_dirs for LibWeb. This is necessary
due to the <WebWorker/DedicatedWorkerHost.h> include added in #24870.
This commit is contained in:
Nico Weber 2024-08-19 11:36:27 -04:00
parent a3258d4094
commit 5b15951518
11 changed files with 24 additions and 11 deletions

View file

@ -41,6 +41,8 @@ shared_library("AK") {
"ByteReader.h",
"ByteString.cpp",
"ByteString.h",
"CPUFeatures.cpp",
"CPUFeatures.h",
"CharacterTypes.h",
"Checked.h",
"CheckedFormatString.h",

View file

@ -399,6 +399,7 @@ if (current_os != "mac") {
"//Userland/Libraries/LibJS",
"//Userland/Libraries/LibLine",
"//Userland/Libraries/LibMarkdown",
"//Userland/Libraries/LibMedia",
"//Userland/Libraries/LibProtocol",
"//Userland/Libraries/LibRIFF",
"//Userland/Libraries/LibRegex",
@ -409,7 +410,6 @@ if (current_os != "mac") {
"//Userland/Libraries/LibTextCodec",
"//Userland/Libraries/LibThreading",
"//Userland/Libraries/LibURL",
"//Userland/Libraries/LibVideo",
"//Userland/Libraries/LibWasm",
"//Userland/Libraries/LibWeb",
"//Userland/Libraries/LibWebSocket",
@ -440,6 +440,7 @@ if (current_os != "mac") {
"$root_out_dir/lib/liblagom-js.dylib",
"$root_out_dir/lib/liblagom-line.dylib",
"$root_out_dir/lib/liblagom-markdown.dylib",
"$root_out_dir/lib/liblagom-media.dylib",
"$root_out_dir/lib/liblagom-protocol.dylib",
"$root_out_dir/lib/liblagom-regex.dylib",
"$root_out_dir/lib/liblagom-riff.dylib",
@ -450,7 +451,6 @@ if (current_os != "mac") {
"$root_out_dir/lib/liblagom-threading.dylib",
"$root_out_dir/lib/liblagom-tls.dylib",
"$root_out_dir/lib/liblagom-url.dylib",
"$root_out_dir/lib/liblagom-video.dylib",
"$root_out_dir/lib/liblagom-wasm.dylib",
"$root_out_dir/lib/liblagom-web.dylib",
"$root_out_dir/lib/liblagom-websocket.dylib",

View file

@ -172,6 +172,7 @@ shared_library("LibJS") {
"Runtime/IteratorPrototype.cpp",
"Runtime/JSONObject.cpp",
"Runtime/JobCallback.cpp",
"Runtime/KeyedCollections.cpp",
"Runtime/Map.cpp",
"Runtime/MapConstructor.cpp",
"Runtime/MapIterator.cpp",

View file

@ -1,5 +1,5 @@
shared_library("LibVideo") {
output_name = "video"
shared_library("LibMedia") {
output_name = "media"
include_dirs = [ "//Userland/Libraries" ]
deps = [
@ -17,11 +17,11 @@ shared_library("LibVideo") {
"Containers/Matroska/MatroskaDemuxer.cpp",
"Containers/Matroska/Reader.cpp",
"PlaybackManager.cpp",
"VP9/Decoder.cpp",
"VP9/Parser.cpp",
"VP9/ProbabilityTables.cpp",
"VP9/SyntaxElementCounter.cpp",
"VP9/TreeParser.cpp",
"Video/VP9/Decoder.cpp",
"Video/VP9/Parser.cpp",
"Video/VP9/ProbabilityTables.cpp",
"Video/VP9/SyntaxElementCounter.cpp",
"Video/VP9/TreeParser.cpp",
"VideoFrame.cpp",
]
}

View file

@ -277,6 +277,7 @@ source_set("all_generated") {
config("configs") {
include_dirs = [
"//Userland/Libraries",
"//Userland/Services",
"$target_gen_dir/..",
]
configs = [ "//AK:ak_headers" ]
@ -357,6 +358,7 @@ shared_library("LibWeb") {
"//Userland/Libraries/LibJS",
"//Userland/Libraries/LibLocale",
"//Userland/Libraries/LibMarkdown",
"//Userland/Libraries/LibMedia",
"//Userland/Libraries/LibRegex",
"//Userland/Libraries/LibSoftGPU",
"//Userland/Libraries/LibSyntax",
@ -364,7 +366,6 @@ shared_library("LibWeb") {
"//Userland/Libraries/LibTextCodec",
"//Userland/Libraries/LibURL",
"//Userland/Libraries/LibUnicode",
"//Userland/Libraries/LibVideo",
"//Userland/Libraries/LibWasm",
"//Userland/Libraries/LibXML",
] + idl_sources_targets

View file

@ -29,6 +29,7 @@ source_set("CSS") {
"CSSTransition.cpp",
"CalculatedOr.cpp",
"Clip.cpp",
"CountersSet.cpp",
"Display.cpp",
"EdgeRect.cpp",
"Flex.cpp",

View file

@ -11,6 +11,8 @@ source_set("StyleValues") {
"ColorStyleValue.cpp",
"ConicGradientStyleValue.cpp",
"ContentStyleValue.cpp",
"CounterDefinitionsStyleValue.cpp",
"CounterStyleValue.cpp",
"DisplayStyleValue.cpp",
"EasingStyleValue.cpp",
"EdgeStyleValue.cpp",

View file

@ -53,6 +53,7 @@ source_set("DOM") {
"StyleElementUtils.cpp",
"Text.cpp",
"TreeWalker.cpp",
"Utils.cpp",
"XMLDocument.cpp",
]
}

View file

@ -9,6 +9,7 @@ source_set("Infrastructure") {
"FetchAlgorithms.cpp",
"FetchController.cpp",
"FetchParams.cpp",
"FetchRecord.cpp",
"FetchTimingInfo.cpp",
"HTTP.cpp",
"IncrementalReadLoopReadRequest.cpp",

View file

@ -31,6 +31,7 @@ source_set("HTML") {
"DataTransfer.cpp",
"Dates.cpp",
"DecodedImageData.cpp",
"DedicatedWorkerGlobalScope.cpp",
"DocumentState.cpp",
"ElementInternals.cpp",
"EmbedderPolicy.cpp",

View file

@ -15,7 +15,10 @@ namespace_idl_files = [
"//Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl",
]
global_idl_files = [ "//Userland/Libraries/LibWeb/HTML/Window.idl" ]
global_idl_files = [
"//Userland/Libraries/LibWeb/HTML/DedicatedWorkerGlobalScope.idl",
"//Userland/Libraries/LibWeb/HTML/Window.idl",
]
# Standard idl files are neither iterable, namespaces, or global
standard_idl_files = [