2020-05-06 15:40:06 +00:00
|
|
|
set(SOURCES
|
2021-01-16 16:18:58 +00:00
|
|
|
AnonymousBuffer.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
ArgsParser.cpp
|
2020-09-15 18:45:21 +00:00
|
|
|
Command.cpp
|
2022-10-13 20:07:09 +00:00
|
|
|
ConfigFile.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
DateTime.cpp
|
2022-04-10 16:28:43 +00:00
|
|
|
Directory.cpp
|
2023-03-02 15:39:07 +00:00
|
|
|
DirectoryEntry.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
DirIterator.cpp
|
|
|
|
ElapsedTimer.cpp
|
|
|
|
Event.cpp
|
|
|
|
EventLoop.cpp
|
2023-04-24 10:25:14 +00:00
|
|
|
EventLoopImplementation.cpp
|
|
|
|
EventLoopImplementationUnix.cpp
|
2023-08-06 16:09:39 +00:00
|
|
|
EventReceiver.cpp
|
2023-02-09 02:02:46 +00:00
|
|
|
File.cpp
|
2021-07-22 03:04:24 +00:00
|
|
|
LockFile.cpp
|
2021-11-23 10:32:25 +00:00
|
|
|
MappedFile.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
MimeData.cpp
|
|
|
|
NetworkJob.cpp
|
|
|
|
Notifier.cpp
|
2021-08-05 23:04:11 +00:00
|
|
|
Process.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
ProcessStatisticsReader.cpp
|
2023-10-02 20:36:53 +00:00
|
|
|
Resource.cpp
|
|
|
|
ResourceImplementation.cpp
|
|
|
|
ResourceImplementationFile.cpp
|
2021-09-12 13:54:57 +00:00
|
|
|
SecretString.cpp
|
2022-09-06 04:10:46 +00:00
|
|
|
SessionManagement.cpp
|
2023-02-08 22:05:44 +00:00
|
|
|
Socket.cpp
|
2022-04-05 23:44:18 +00:00
|
|
|
SOCKSProxyClient.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
StandardPaths.cpp
|
2021-11-23 09:59:50 +00:00
|
|
|
System.cpp
|
2022-01-15 11:56:48 +00:00
|
|
|
SystemServerTakeover.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
TCPServer.cpp
|
2023-04-23 17:45:12 +00:00
|
|
|
ThreadEventQueue.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Timer.cpp
|
|
|
|
UDPServer.cpp
|
2021-08-29 09:54:59 +00:00
|
|
|
Version.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
)
|
2022-11-20 03:23:14 +00:00
|
|
|
if (NOT ANDROID AND NOT WIN32 AND NOT EMSCRIPTEN)
|
2022-10-13 20:07:09 +00:00
|
|
|
list(APPEND SOURCES
|
|
|
|
Account.cpp
|
|
|
|
FilePermissionsMask.cpp
|
|
|
|
GetPassword.cpp
|
|
|
|
Group.cpp
|
|
|
|
)
|
2022-07-11 07:06:29 +00:00
|
|
|
endif()
|
2023-07-19 15:55:49 +00:00
|
|
|
if (NOT WIN32 AND NOT EMSCRIPTEN)
|
|
|
|
list(APPEND SOURCES LocalServer.cpp)
|
|
|
|
endif()
|
2020-05-06 15:40:06 +00:00
|
|
|
|
2023-01-17 19:43:36 +00:00
|
|
|
# FIXME: Implement Core::FileWatcher for macOS, *BSD, and Windows.
|
2023-01-17 18:49:21 +00:00
|
|
|
if (SERENITYOS)
|
|
|
|
list(APPEND SOURCES FileWatcherSerenity.cpp)
|
2023-01-17 19:43:36 +00:00
|
|
|
elseif (LINUX AND NOT EMSCRIPTEN)
|
|
|
|
list(APPEND SOURCES FileWatcherLinux.cpp)
|
2023-01-18 19:03:14 +00:00
|
|
|
elseif (APPLE)
|
|
|
|
list(APPEND SOURCES FileWatcherMacOS.mm)
|
2023-01-17 18:49:21 +00:00
|
|
|
else()
|
|
|
|
list(APPEND SOURCES FileWatcherUnimplemented.cpp)
|
|
|
|
endif()
|
|
|
|
|
2020-05-06 15:40:06 +00:00
|
|
|
serenity_lib(LibCore core)
|
2022-10-21 19:43:56 +00:00
|
|
|
target_link_libraries(LibCore PRIVATE LibCrypt LibSystem)
|
2023-01-18 19:03:14 +00:00
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
target_link_libraries(LibCore PUBLIC "-framework CoreFoundation")
|
|
|
|
target_link_libraries(LibCore PUBLIC "-framework CoreServices")
|
|
|
|
target_link_libraries(LibCore PUBLIC "-framework Foundation")
|
|
|
|
endif()
|
2023-09-14 05:19:25 +00:00
|
|
|
|
|
|
|
if (ANDROID)
|
|
|
|
target_link_libraries(LibCore PRIVATE log)
|
|
|
|
endif()
|