mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 17:12:12 +00:00

This tokenizes a page's source to produce HTML with syntax highlighting. The first implementation here is rather simple; we do not yet implement code folding, line numbers, etc. The goal is for this to be used as the View Source implementation for all Ladybird chromes.
31 lines
919 B
CMake
31 lines
919 B
CMake
set(SOURCES
|
|
AccessibilityTreeModel.cpp
|
|
AriaPropertiesStateModel.cpp
|
|
DOMTreeModel.cpp
|
|
OutOfProcessWebView.cpp
|
|
RequestServerAdapter.cpp
|
|
SourceHighlighter.cpp
|
|
StylePropertiesModel.cpp
|
|
ViewImplementation.cpp
|
|
WebContentClient.cpp
|
|
WebSocketClientAdapter.cpp
|
|
)
|
|
|
|
embed_as_string_view(
|
|
"NativeStyleSheetSource.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/Native.css"
|
|
"NativeStyleSheetSource.cpp"
|
|
"native_stylesheet_source"
|
|
NAMESPACE "WebView"
|
|
)
|
|
|
|
set(GENERATED_SOURCES
|
|
../../Services/RequestServer/RequestClientEndpoint.h
|
|
../../Services/RequestServer/RequestServerEndpoint.h
|
|
../../Services/WebContent/WebContentClientEndpoint.h
|
|
../../Services/WebContent/WebContentServerEndpoint.h
|
|
NativeStyleSheetSource.cpp
|
|
)
|
|
|
|
serenity_lib(LibWebView webview)
|
|
target_link_libraries(LibWebView PRIVATE LibCore LibFileSystemAccessClient LibGfx LibGUI LibIPC LibProtocol LibWeb)
|