mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
Meta: Add gn build rules for LibWeb
This commit is contained in:
parent
7b3d0fb002
commit
85c8cd5205
60 changed files with 1966 additions and 0 deletions
159
Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn
Normal file
159
Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn
Normal file
|
@ -0,0 +1,159 @@
|
|||
source_set("HTML") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [
|
||||
"Canvas",
|
||||
"CrossOrigin",
|
||||
"CustomElements",
|
||||
"EventLoop",
|
||||
"Parser",
|
||||
"Scripting",
|
||||
"SyntaxHighlighter",
|
||||
"//Userland/Libraries/LibWeb:all_generated",
|
||||
]
|
||||
sources = [
|
||||
"AnimatedBitmapDecodedImageData.cpp",
|
||||
"AttributeNames.cpp",
|
||||
"AudioTrack.cpp",
|
||||
"AudioTrackList.cpp",
|
||||
"BrowsingContext.cpp",
|
||||
"BrowsingContextGroup.cpp",
|
||||
"CORSSettingAttribute.cpp",
|
||||
"CanvasGradient.cpp",
|
||||
"CanvasPattern.cpp",
|
||||
"CanvasRenderingContext2D.cpp",
|
||||
"CloseEvent.cpp",
|
||||
"DOMParser.cpp",
|
||||
"DOMStringMap.cpp",
|
||||
"DecodedImageData.cpp",
|
||||
"DocumentState.cpp",
|
||||
"ErrorEvent.cpp",
|
||||
"EventHandler.cpp",
|
||||
"EventNames.cpp",
|
||||
"Focus.cpp",
|
||||
"FormAssociatedElement.cpp",
|
||||
"FormControlInfrastructure.cpp",
|
||||
"FormDataEvent.cpp",
|
||||
"GlobalEventHandlers.cpp",
|
||||
"HTMLAnchorElement.cpp",
|
||||
"HTMLAreaElement.cpp",
|
||||
"HTMLAudioElement.cpp",
|
||||
"HTMLBRElement.cpp",
|
||||
"HTMLBaseElement.cpp",
|
||||
"HTMLBlinkElement.cpp",
|
||||
"HTMLBodyElement.cpp",
|
||||
"HTMLButtonElement.cpp",
|
||||
"HTMLCanvasElement.cpp",
|
||||
"HTMLDListElement.cpp",
|
||||
"HTMLDataElement.cpp",
|
||||
"HTMLDataListElement.cpp",
|
||||
"HTMLDetailsElement.cpp",
|
||||
"HTMLDialogElement.cpp",
|
||||
"HTMLDirectoryElement.cpp",
|
||||
"HTMLDivElement.cpp",
|
||||
"HTMLDocument.cpp",
|
||||
"HTMLElement.cpp",
|
||||
"HTMLEmbedElement.cpp",
|
||||
"HTMLFieldSetElement.cpp",
|
||||
"HTMLFontElement.cpp",
|
||||
"HTMLFormElement.cpp",
|
||||
"HTMLFrameElement.cpp",
|
||||
"HTMLFrameSetElement.cpp",
|
||||
"HTMLHRElement.cpp",
|
||||
"HTMLHeadElement.cpp",
|
||||
"HTMLHeadingElement.cpp",
|
||||
"HTMLHtmlElement.cpp",
|
||||
"HTMLHyperlinkElementUtils.cpp",
|
||||
"HTMLIFrameElement.cpp",
|
||||
"HTMLImageElement.cpp",
|
||||
"HTMLInputElement.cpp",
|
||||
"HTMLLIElement.cpp",
|
||||
"HTMLLabelElement.cpp",
|
||||
"HTMLLegendElement.cpp",
|
||||
"HTMLLinkElement.cpp",
|
||||
"HTMLMapElement.cpp",
|
||||
"HTMLMarqueeElement.cpp",
|
||||
"HTMLMediaElement.cpp",
|
||||
"HTMLMenuElement.cpp",
|
||||
"HTMLMetaElement.cpp",
|
||||
"HTMLMeterElement.cpp",
|
||||
"HTMLModElement.cpp",
|
||||
"HTMLOListElement.cpp",
|
||||
"HTMLObjectElement.cpp",
|
||||
"HTMLOptGroupElement.cpp",
|
||||
"HTMLOptionElement.cpp",
|
||||
"HTMLOptionsCollection.cpp",
|
||||
"HTMLOutputElement.cpp",
|
||||
"HTMLParagraphElement.cpp",
|
||||
"HTMLParamElement.cpp",
|
||||
"HTMLPictureElement.cpp",
|
||||
"HTMLPreElement.cpp",
|
||||
"HTMLProgressElement.cpp",
|
||||
"HTMLQuoteElement.cpp",
|
||||
"HTMLScriptElement.cpp",
|
||||
"HTMLSelectElement.cpp",
|
||||
"HTMLSlotElement.cpp",
|
||||
"HTMLSourceElement.cpp",
|
||||
"HTMLSpanElement.cpp",
|
||||
"HTMLStyleElement.cpp",
|
||||
"HTMLSummaryElement.cpp",
|
||||
"HTMLTableCaptionElement.cpp",
|
||||
"HTMLTableCellElement.cpp",
|
||||
"HTMLTableColElement.cpp",
|
||||
"HTMLTableElement.cpp",
|
||||
"HTMLTableRowElement.cpp",
|
||||
"HTMLTableSectionElement.cpp",
|
||||
"HTMLTemplateElement.cpp",
|
||||
"HTMLTextAreaElement.cpp",
|
||||
"HTMLTimeElement.cpp",
|
||||
"HTMLTitleElement.cpp",
|
||||
"HTMLTrackElement.cpp",
|
||||
"HTMLUListElement.cpp",
|
||||
"HTMLUnknownElement.cpp",
|
||||
"HTMLVideoElement.cpp",
|
||||
"History.cpp",
|
||||
"ImageData.cpp",
|
||||
"ImageRequest.cpp",
|
||||
"ListOfAvailableImages.cpp",
|
||||
"Location.cpp",
|
||||
"MediaError.cpp",
|
||||
"MessageChannel.cpp",
|
||||
"MessageEvent.cpp",
|
||||
"MessagePort.cpp",
|
||||
"MimeType.cpp",
|
||||
"MimeTypeArray.cpp",
|
||||
"Navigable.cpp",
|
||||
"NavigableContainer.cpp",
|
||||
"Navigator.cpp",
|
||||
"NavigatorID.cpp",
|
||||
"PageTransitionEvent.cpp",
|
||||
"Path2D.cpp",
|
||||
"Plugin.cpp",
|
||||
"PluginArray.cpp",
|
||||
"PotentialCORSRequest.cpp",
|
||||
"PromiseRejectionEvent.cpp",
|
||||
"RemoteBrowsingContext.cpp",
|
||||
"SessionHistoryEntry.cpp",
|
||||
"SharedImageRequest.cpp",
|
||||
"SourceSet.cpp",
|
||||
"Storage.cpp",
|
||||
"StructuredSerialize.cpp",
|
||||
"SubmitEvent.cpp",
|
||||
"TagNames.cpp",
|
||||
"TextMetrics.cpp",
|
||||
"TimeRanges.cpp",
|
||||
"Timer.cpp",
|
||||
"TrackEvent.cpp",
|
||||
"TraversableNavigable.cpp",
|
||||
"VideoTrack.cpp",
|
||||
"VideoTrackList.cpp",
|
||||
"Window.cpp",
|
||||
"WindowEventHandlers.cpp",
|
||||
"WindowOrWorkerGlobalScope.cpp",
|
||||
"WindowProxy.cpp",
|
||||
"Worker.cpp",
|
||||
"WorkerDebugConsoleClient.cpp",
|
||||
"WorkerGlobalScope.cpp",
|
||||
"WorkerLocation.cpp",
|
||||
"WorkerNavigator.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
source_set("Canvas") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"CanvasDrawImage.cpp",
|
||||
"CanvasPath.cpp",
|
||||
"CanvasPathClipper.cpp",
|
||||
"CanvasState.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
source_set("CrossOrigin") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"AbstractOperations.cpp",
|
||||
"Reporting.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
source_set("CustomElements") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"CustomElementName.cpp",
|
||||
"CustomElementReactionNames.cpp",
|
||||
"CustomElementRegistry.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
source_set("EventLoop") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"EventLoop.cpp",
|
||||
"Task.cpp",
|
||||
"TaskQueue.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
source_set("Parser") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"Entities.cpp",
|
||||
"HTMLEncodingDetection.cpp",
|
||||
"HTMLParser.cpp",
|
||||
"HTMLToken.cpp",
|
||||
"HTMLTokenizer.cpp",
|
||||
"ListOfActiveFormattingElements.cpp",
|
||||
"StackOfOpenElements.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
source_set("Scripting") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
sources = [
|
||||
"ClassicScript.cpp",
|
||||
"Environments.cpp",
|
||||
"ExceptionReporter.cpp",
|
||||
"Fetching.cpp",
|
||||
"ModuleMap.cpp",
|
||||
"ModuleScript.cpp",
|
||||
"Script.cpp",
|
||||
"TemporaryExecutionContext.cpp",
|
||||
"WindowEnvironmentSettingsObject.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
source_set("SyntaxHighlighter") {
|
||||
configs += [ "//Userland/Libraries/LibWeb:configs" ]
|
||||
deps = [ "//Userland/Libraries/LibWeb:all_generated" ]
|
||||
include_dirs = [
|
||||
"//Userland/", # For LibSyntax needing LibGUI needing WindowServer types
|
||||
]
|
||||
sources = [ "SyntaxHighlighter.cpp" ]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue