mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00

Depending on what OS LibCore is being built for (either SerenityOS or not-SerenityOS), the library does not just wrap functions from LibC, but it also implements syscalls itself. Therefore, it needs to link against LibSystem, as that is the only library that is allowed to do syscalls. When cross-compiling the OS this is currently not an issue because LibC links against LibSystem, and CMake passes that dependency through transitively by accident. However, on Lagom, LibC is just a dummy INTERFACE library, so the LibSystem dependency is never pulled in, resulting in undefined symbols whenever we build LibCore on SerenityOS as a part of Lagom.
48 lines
925 B
CMake
48 lines
925 B
CMake
set(SOURCES
|
|
AnonymousBuffer.cpp
|
|
ArgsParser.cpp
|
|
Command.cpp
|
|
ConfigFile.cpp
|
|
DateTime.cpp
|
|
Directory.cpp
|
|
DirIterator.cpp
|
|
ElapsedTimer.cpp
|
|
Event.cpp
|
|
EventLoop.cpp
|
|
File.cpp
|
|
FileWatcher.cpp
|
|
IODevice.cpp
|
|
LockFile.cpp
|
|
MappedFile.cpp
|
|
MimeData.cpp
|
|
NetworkJob.cpp
|
|
Notifier.cpp
|
|
Object.cpp
|
|
Process.cpp
|
|
ProcessStatisticsReader.cpp
|
|
Property.cpp
|
|
SecretString.cpp
|
|
SessionManagement.cpp
|
|
SOCKSProxyClient.cpp
|
|
StandardPaths.cpp
|
|
Stream.cpp
|
|
System.cpp
|
|
SystemServerTakeover.cpp
|
|
TCPServer.cpp
|
|
TempFile.cpp
|
|
Timer.cpp
|
|
UDPServer.cpp
|
|
Version.cpp
|
|
)
|
|
if (NOT ANDROID AND NOT WIN32)
|
|
list(APPEND SOURCES
|
|
Account.cpp
|
|
FilePermissionsMask.cpp
|
|
GetPassword.cpp
|
|
Group.cpp
|
|
LocalServer.cpp
|
|
)
|
|
endif()
|
|
|
|
serenity_lib(LibCore core)
|
|
target_link_libraries(LibCore LibC LibCrypt LibSystem)
|