2023-10-14 09:07:38 -04:00
|
|
|
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/public_suffix.cmake)
|
|
|
|
|
2022-04-30 10:46:33 +02:00
|
|
|
set(SOURCES
|
2023-11-19 10:42:11 -05:00
|
|
|
Attribute.cpp
|
2023-08-31 07:07:07 -04:00
|
|
|
CookieJar.cpp
|
|
|
|
Database.cpp
|
|
|
|
History.cpp
|
2023-11-23 12:26:38 -05:00
|
|
|
InspectorClient.cpp
|
2022-04-30 12:06:30 +02:00
|
|
|
RequestServerAdapter.cpp
|
2023-10-19 15:50:39 -04:00
|
|
|
SearchEngine.cpp
|
2024-01-06 13:13:59 -07:00
|
|
|
SocketPair.cpp
|
2023-08-28 14:47:29 -04:00
|
|
|
SourceHighlighter.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
|
2023-10-14 09:07:38 -04:00
|
|
|
${PUBLIC_SUFFIX_SOURCES}
|
2022-04-30 10:46:33 +02:00
|
|
|
)
|
|
|
|
|
2023-10-14 09:07:38 -04:00
|
|
|
set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
|
|
|
|
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
|
2024-02-23 11:59:11 -07:00
|
|
|
${GENERATED_SOURCES}
|
2022-04-30 10:46:33 +02:00
|
|
|
../../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
|
2023-08-24 11:01:09 +01:00
|
|
|
NativeStyleSheetSource.cpp
|
2022-04-30 10:46:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
serenity_lib(LibWebView webview)
|
2024-03-18 16:22:27 +13:00
|
|
|
target_link_libraries(LibWebView PRIVATE LibCore LibFileSystem LibGfx LibIPC LibProtocol LibJS LibWeb LibSQL LibUnicode LibURL)
|
2023-10-14 09:07:38 -04:00
|
|
|
target_compile_definitions(LibWebView PRIVATE ENABLE_PUBLIC_SUFFIX=$<BOOL:${ENABLE_PUBLIC_SUFFIX_DOWNLOAD}>)
|
2023-08-30 07:27:45 -04:00
|
|
|
|
|
|
|
if (SERENITYOS)
|
2023-11-04 11:58:13 -04:00
|
|
|
target_link_libraries(LibWebView PRIVATE LibFileSystemAccessClient LibGUI)
|
2023-08-30 07:27:45 -04:00
|
|
|
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()
|