2022-04-30 10:46:33 +02:00
|
|
|
set(SOURCES
|
2022-12-28 17:26:23 -06:00
|
|
|
AccessibilityTreeModel.cpp
|
2023-05-21 08:52:03 -05:00
|
|
|
AriaPropertiesStateModel.cpp
|
2023-08-29 11:44:18 -04:00
|
|
|
ConsoleClient.cpp
|
2023-08-31 07:07:07 -04:00
|
|
|
CookieJar.cpp
|
|
|
|
Database.cpp
|
2022-04-30 11:13:33 +02:00
|
|
|
DOMTreeModel.cpp
|
2023-08-31 07:07:07 -04:00
|
|
|
History.cpp
|
2022-04-30 12:06:30 +02:00
|
|
|
RequestServerAdapter.cpp
|
2023-08-28 14:47:29 -04:00
|
|
|
SourceHighlighter.cpp
|
2022-04-30 11:15:31 +02:00
|
|
|
StylePropertiesModel.cpp
|
2023-10-13 09:43:16 -04:00
|
|
|
URL.cpp
|
2023-09-11 17:49:57 +04:00
|
|
|
UserAgent.cpp
|
2023-01-12 19:27:17 +00:00
|
|
|
ViewImplementation.cpp
|
2022-04-30 10:46:33 +02:00
|
|
|
WebContentClient.cpp
|
2022-04-30 11:26:21 +02:00
|
|
|
WebSocketClientAdapter.cpp
|
2022-04-30 10:46:33 +02:00
|
|
|
)
|
|
|
|
|
2023-08-30 07:27:45 -04:00
|
|
|
if (SERENITYOS)
|
|
|
|
list(APPEND SOURCES OutOfProcessWebView.cpp)
|
|
|
|
endif()
|
|
|
|
|
2023-08-24 11:01:09 +01:00
|
|
|
embed_as_string_view(
|
|
|
|
"NativeStyleSheetSource.cpp"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/Native.css"
|
|
|
|
"NativeStyleSheetSource.cpp"
|
|
|
|
"native_stylesheet_source"
|
|
|
|
NAMESPACE "WebView"
|
|
|
|
)
|
|
|
|
|
2022-04-30 10:46:33 +02:00
|
|
|
set(GENERATED_SOURCES
|
|
|
|
../../Services/RequestServer/RequestClientEndpoint.h
|
|
|
|
../../Services/RequestServer/RequestServerEndpoint.h
|
|
|
|
../../Services/WebContent/WebContentClientEndpoint.h
|
|
|
|
../../Services/WebContent/WebContentServerEndpoint.h
|
2023-08-30 07:27:45 -04:00
|
|
|
../../Services/WebContent/WebDriverClientEndpoint.h
|
|
|
|
../../Services/WebContent/WebDriverServerEndpoint.h
|
|
|
|
../../Services/WebSocket/WebSocketClientEndpoint.h
|
|
|
|
../../Services/WebSocket/WebSocketServerEndpoint.h
|
2023-08-24 11:01:09 +01:00
|
|
|
NativeStyleSheetSource.cpp
|
2022-04-30 10:46:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
serenity_lib(LibWebView webview)
|
2023-10-13 09:43:16 -04:00
|
|
|
target_link_libraries(LibWebView PRIVATE LibCore LibFileSystem LibGfx LibGUI LibIPC LibProtocol LibPublicSuffix LibJS LibWeb LibSQL)
|
2023-08-30 07:27:45 -04:00
|
|
|
|
|
|
|
if (SERENITYOS)
|
|
|
|
target_link_libraries(LibWebView PRIVATE LibFileSystemAccessClient)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT SERENITYOS)
|
|
|
|
foreach(header ${GENERATED_SOURCES})
|
|
|
|
get_filename_component(extension ${header} EXT)
|
|
|
|
if (NOT "${extension}" STREQUAL ".h")
|
|
|
|
continue()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_filename_component(subdirectory ${header} DIRECTORY)
|
|
|
|
string(REGEX REPLACE "^\\.\\./\\.\\./" "" subdirectory "${subdirectory}")
|
|
|
|
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${header}" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${subdirectory}")
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
install(FILES "${SERENITY_PROJECT_ROOT}/Userland/Services/RequestServer/ConnectionCache.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RequestServer")
|
|
|
|
endif()
|