mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
Before this commit, LibCore/System.h exposed only part of System::stat API on Windows. Namely, users of Core::System::stat had to #include <dirent.h> in order to check the return value of stat. It is OK for low-level libs like LibCore/LibFileSystem, but S_ISDIR is also used in LibWeb\Loader\GeneratedPagesLoader.cpp. We want to avoid platform #ifdefs in LibWeb.
7 lines
189 B
CMake
7 lines
189 B
CMake
set (SOURCES FileSystem.cpp)
|
|
if (NOT WIN32)
|
|
list(APPEND SOURCES TempFile.cpp)
|
|
endif()
|
|
|
|
serenity_lib(LibFileSystem filesystem)
|
|
target_link_libraries(LibFileSystem PRIVATE LibCoreMinimal)
|