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:
parent
204257526c
commit
5bfc9daba1
3 changed files with 49 additions and 30 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue