mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 3919a1dcc0
			
		
	
	
		3919a1dcc0
		
	
	
	
	
		
			
			Previously, Browser loaded icons from the disk every time an icon was set. In addition to making more calls to the disk and decoding more images, this makes error propagation impossible. This change moves all icon loading to the start of the program.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			750 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			750 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| serenity_component(
 | |
|     Browser
 | |
|     RECOMMENDED
 | |
|     TARGETS Browser
 | |
|     DEPENDS ImageDecoder RequestServer WebContent WebSocket
 | |
| )
 | |
| 
 | |
| compile_gml(BrowserWindow.gml BrowserWindowGML.h browser_window_gml)
 | |
| compile_gml(EditBookmark.gml EditBookmarkGML.h edit_bookmark_gml)
 | |
| compile_gml(Tab.gml TabGML.h tab_gml)
 | |
| 
 | |
| set(SOURCES
 | |
|     BookmarksBarWidget.cpp
 | |
|     BrowserWindow.cpp
 | |
|     BrowserWindowGML.h
 | |
|     ConsoleWidget.cpp
 | |
|     CookieJar.cpp
 | |
|     DownloadWidget.cpp
 | |
|     EditBookmarkGML.h
 | |
|     History.cpp
 | |
|     IconBag.cpp
 | |
|     InspectorWidget.cpp
 | |
|     Tab.cpp
 | |
|     TabGML.h
 | |
|     WindowActions.cpp
 | |
|     main.cpp
 | |
| )
 | |
| 
 | |
| serenity_app(Browser ICON app-browser)
 | |
| target_link_libraries(Browser LibWeb LibProtocol LibGUI LibDesktop LibConfig LibMain)
 | |
| link_with_unicode_data(Browser)
 |