1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

LibCore: Move FileWatcher implementations into separate files

Rather than one big file with (eventually) all implementations for each
OS, let's keep OS-specific implementations in their own files.
This commit is contained in:
Timothy Flynn 2023-01-17 13:49:21 -05:00 committed by Tim Flynn
parent 204257526c
commit 5bfc9daba1
3 changed files with 49 additions and 30 deletions

View file

@ -10,7 +10,6 @@ set(SOURCES
Event.cpp
EventLoop.cpp
File.cpp
FileWatcher.cpp
IODevice.cpp
LockFile.cpp
MappedFile.cpp
@ -45,5 +44,12 @@ if (NOT ANDROID AND NOT WIN32 AND NOT EMSCRIPTEN)
)
endif()
# FIXME: Implement Core::FileWatcher for Linux, macOS, *BSD, and Windows.
if (SERENITYOS)
list(APPEND SOURCES FileWatcherSerenity.cpp)
else()
list(APPEND SOURCES FileWatcherUnimplemented.cpp)
endif()
serenity_lib(LibCore core)
target_link_libraries(LibCore PRIVATE LibCrypt LibSystem)