mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
RequestServer: Remove CMake dependency on LibWebView
We really don't need to link LibWebView and all its deps into RS. Fix up the CMake to properly depend on the generated IPC files instead.
This commit is contained in:
parent
1a6b4aaa49
commit
6785a01c6e
|
|
@ -7,16 +7,22 @@ set(SOURCES
|
|||
WebSocketImplCurl.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
RequestClientEndpoint.h
|
||||
RequestServerEndpoint.h
|
||||
)
|
||||
|
||||
set(RS_LIB_TYPE STATIC)
|
||||
if (ANDROID)
|
||||
add_library(requestserverservice SHARED
|
||||
list(APPEND SOURCES
|
||||
${LADYBIRD_SOURCE_DIR}/UI/Android/src/main/cpp/RequestServerService.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/UI/Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
|
||||
${SOURCES}
|
||||
)
|
||||
else()
|
||||
add_library(requestserverservice STATIC ${SOURCES})
|
||||
set(RS_LIB_TYPE SHARED)
|
||||
endif()
|
||||
|
||||
ladybird_lib(requestserverservice TYPE ${RS_LIB_TYPE})
|
||||
|
||||
find_package(PkgConfig)
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
|
|
@ -26,7 +32,7 @@ target_include_directories(requestserverservice PRIVATE ${CMAKE_CURRENT_BINARY_D
|
|||
target_include_directories(requestserverservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Services/)
|
||||
|
||||
target_link_libraries(RequestServer PRIVATE requestserverservice)
|
||||
target_link_libraries(requestserverservice PUBLIC LibCore LibDNS LibMain LibCrypto LibFileSystem LibIPC LibMain LibTLS LibWebView LibWebSocket LibURL LibTextCodec LibThreading CURL::libcurl)
|
||||
target_link_libraries(requestserverservice PUBLIC LibCore LibDNS LibMain LibCrypto LibFileSystem LibIPC LibMain LibTLS LibWebSocket LibURL LibTextCodec LibThreading CURL::libcurl)
|
||||
target_link_libraries(requestserverservice PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user