mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
2cb3ae132a
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.
14 lines
587 B
CMake
14 lines
587 B
CMake
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)
|