mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:17:45 +00:00
Ladybird: Implement SQLServer for Ladybird :^)
This adds a SQLServer binary for Ladybird to make use of Serenity's SQL implementation. This has to use the same IPC socket handling that was used to make WebContent and WebDriver work out-of-process. Unlike Serenity, Ladybird creates a new SQLServer instance for each Ladybird instance. In the future, we should try to make sure there is only one SQLServer instance at a time, and allow multiple Ladybird instances to communicate with it.
This commit is contained in:
parent
a0cd260410
commit
2cb3ae132a
6 changed files with 127 additions and 10 deletions
14
Ladybird/SQLServer/CMakeLists.txt
Normal file
14
Ladybird/SQLServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
set(SQL_SERVER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/SQLServer)
|
||||
|
||||
set(SQL_SERVER_SOURCES
|
||||
${SQL_SERVER_SOURCE_DIR}/ConnectionFromClient.cpp
|
||||
${SQL_SERVER_SOURCE_DIR}/DatabaseConnection.cpp
|
||||
${SQL_SERVER_SOURCE_DIR}/SQLStatement.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
qt_add_executable(SQLServer ${SQL_SERVER_SOURCES})
|
||||
|
||||
target_include_directories(SQLServer PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
||||
target_include_directories(SQLServer PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
target_link_libraries(SQLServer PRIVATE Qt::Core Qt::Gui Qt::Network LibCore LibIPC LibSQL LibMain)
|
Loading…
Add table
Add a link
Reference in a new issue