mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:22:45 +00:00 
			
		
		
		
	 16c47ccff6
			
		
	
	
		16c47ccff6
		
	
	
	
	
		
			
			The EventLoop is now a wrapper around an EventLoopImplementation. Our old EventLoop code has moved into EventLoopImplementationUnix and continues to work as before. The main difference is that all the separate thread_local variables have been collected into a file-local ThreadData data structure. The goal here is to allow running Core::EventLoop with a totally different backend, such as Qt for Ladybird.
		
			
				
	
	
		
			68 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     AnonymousBuffer.cpp
 | |
|     ArgsParser.cpp
 | |
|     Command.cpp
 | |
|     ConfigFile.cpp
 | |
|     DateTime.cpp
 | |
|     DeprecatedFile.cpp
 | |
|     Directory.cpp
 | |
|     DirectoryEntry.cpp
 | |
|     DirIterator.cpp
 | |
|     ElapsedTimer.cpp
 | |
|     Event.cpp
 | |
|     EventLoop.cpp
 | |
|     EventLoopImplementation.cpp
 | |
|     EventLoopImplementationUnix.cpp
 | |
|     File.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
 | |
|     Socket.cpp
 | |
|     SOCKSProxyClient.cpp
 | |
|     StandardPaths.cpp
 | |
|     System.cpp
 | |
|     SystemServerTakeover.cpp
 | |
|     TCPServer.cpp
 | |
|     ThreadEventQueue.cpp
 | |
|     Timer.cpp
 | |
|     UDPServer.cpp
 | |
|     Version.cpp
 | |
| )
 | |
| if (NOT ANDROID AND NOT WIN32 AND NOT EMSCRIPTEN)
 | |
|     list(APPEND SOURCES
 | |
|         Account.cpp
 | |
|         FilePermissionsMask.cpp
 | |
|         GetPassword.cpp
 | |
|         Group.cpp
 | |
|         LocalServer.cpp
 | |
|     )
 | |
| endif()
 | |
| 
 | |
| # FIXME: Implement Core::FileWatcher for macOS, *BSD, and Windows.
 | |
| if (SERENITYOS)
 | |
|     list(APPEND SOURCES FileWatcherSerenity.cpp)
 | |
| elseif (LINUX AND NOT EMSCRIPTEN)
 | |
|     list(APPEND SOURCES FileWatcherLinux.cpp)
 | |
| elseif (APPLE)
 | |
|     list(APPEND SOURCES FileWatcherMacOS.mm)
 | |
| else()
 | |
|     list(APPEND SOURCES FileWatcherUnimplemented.cpp)
 | |
| endif()
 | |
| 
 | |
| serenity_lib(LibCore core)
 | |
| target_link_libraries(LibCore PRIVATE LibCrypt LibSystem)
 | |
| 
 | |
| if (APPLE)
 | |
|     target_link_libraries(LibCore PUBLIC "-framework CoreFoundation")
 | |
|     target_link_libraries(LibCore PUBLIC "-framework CoreServices")
 | |
|     target_link_libraries(LibCore PUBLIC "-framework Foundation")
 | |
| endif()
 |