mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:05:07 +00:00

This transitions from synchronous IPC calls to asynchronous IPC calls provided through a synchronous interface in LibFileSystemAccessClient which allows the parent Application to stay responsive. It achieves this with Promise which is pumping the Application event loop while waiting for the Dialog to respond with the user's action. LibFileSystemAccessClient provides a lazy singleton which also ensures that FileSystemAccessServer is running in the event of a crash. This also transitions TextEditor into using LibFileSystemAccessClient.
19 lines
531 B
CMake
19 lines
531 B
CMake
serenity_component(
|
|
FileSystemAccessServer
|
|
REQUIRED
|
|
TARGETS FileSystemAccessServer
|
|
)
|
|
|
|
compile_ipc(FileSystemAccessServer.ipc FileSystemAccessServerEndpoint.h)
|
|
compile_ipc(FileSystemAccessClient.ipc FileSystemAccessClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ClientConnection.cpp
|
|
main.cpp
|
|
FileSystemAccessServerEndpoint.h
|
|
FileSystemAccessClientEndpoint.h
|
|
)
|
|
|
|
serenity_bin(FileSystemAccessServer)
|
|
target_link_libraries(FileSystemAccessServer LibCore LibIPC LibGUI)
|
|
add_dependencies(FileSystemAccessServer WindowServer)
|