mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
RequestServer: Move all RequestServer configuration to Services
This commit is contained in:
parent
6208abc221
commit
528dd4fcbe
Notes:
github-actions[bot]
2024-11-09 16:56:30 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/528dd4fcbe6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2251
4 changed files with 12 additions and 12 deletions
|
@ -132,7 +132,6 @@ else()
|
|||
endif()
|
||||
|
||||
add_subdirectory(Headless)
|
||||
add_subdirectory(RequestServer)
|
||||
add_subdirectory(WebContent)
|
||||
add_subdirectory(WebWorker)
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
add_subdirectory(ImageDecoder)
|
||||
add_subdirectory(RequestServer)
|
||||
add_subdirectory(WebDriver)
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
set(REQUESTSERVER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/RequestServer)
|
||||
|
||||
set(CMAKE_AUTOMOC OFF)
|
||||
set(CMAKE_AUTORCC OFF)
|
||||
set(CMAKE_AUTOUIC OFF)
|
||||
|
||||
set(REQUESTSERVER_SOURCES
|
||||
${REQUESTSERVER_SOURCE_DIR}/ConnectionFromClient.cpp
|
||||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
)
|
||||
|
||||
if (ANDROID)
|
||||
add_library(requestserverservice SHARED
|
||||
${REQUESTSERVER_SOURCES}
|
||||
../Android/src/main/cpp/RequestServerService.cpp
|
||||
../Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
|
||||
../Utilities.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/Ladybird/Android/src/main/cpp/RequestServerService.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/Ladybird/Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
|
||||
${LADYBIRD_SOURCE_DIR}/Ladybird/Utilities.cpp
|
||||
${SOURCES}
|
||||
)
|
||||
else()
|
||||
add_library(requestserverservice STATIC ${REQUESTSERVER_SOURCES})
|
||||
add_library(requestserverservice STATIC ${SOURCES})
|
||||
endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
add_executable(RequestServer main.cpp)
|
||||
target_link_libraries(RequestServer PRIVATE requestserverservice)
|
||||
|
||||
target_include_directories(requestserverservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
|
||||
target_include_directories(requestserverservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services/)
|
||||
target_include_directories(requestserverservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
|
||||
target_link_libraries(RequestServer PRIVATE requestserverservice)
|
||||
target_link_libraries(requestserverservice PUBLIC LibCore LibMain LibCrypto LibFileSystem LibIPC LibMain LibTLS LibWebView LibWebSocket LibURL LibTextCodec LibThreading CURL::libcurl)
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
# Solaris has socket and networking related functions in two extra libraries
|
||||
target_link_libraries(requestserverservice PUBLIC nsl socket)
|
Loading…
Reference in a new issue