mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:12:45 +00:00 
			
		
		
		
	 391beef707
			
		
	
	
		391beef707
		
	
	
	
	
		
			
			This will help a lot with developing chromes for different UI frameworks where we can see which helper classes and processes are really using Qt vs just using it to get at helper data. As a bonus, remove Qt dependency from WebDriver.
		
			
				
	
	
		
			72 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| import("//Ladybird/link_qt.gni")
 | |
| import("//Ladybird/moc_qt_objects.gni")
 | |
| import("//Meta/gn/build/libs/pulse/enable.gni")
 | |
| 
 | |
| moc_qt_objects("generate_moc") {
 | |
|   sources = [
 | |
|     "//Ladybird/Qt/AudioCodecPluginQt.h",
 | |
|     "//Ladybird/Qt/AudioThread.h",
 | |
|     "//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
 | |
|     "//Ladybird/Qt/RequestManagerQt.h",
 | |
|   ]
 | |
| }
 | |
| 
 | |
| link_qt("WebContent_qt") {
 | |
|   qt_components = [
 | |
|     "Core",
 | |
|     "Network",
 | |
|     "Multimedia",
 | |
|   ]
 | |
| }
 | |
| 
 | |
| executable("WebContent") {
 | |
|   configs += [
 | |
|     "//Ladybird:ladybird_config",
 | |
|     ":WebContent_qt",
 | |
|   ]
 | |
|   include_dirs = [
 | |
|     "//Userland/Services",
 | |
|     "//Ladybird",
 | |
|   ]
 | |
|   deps = [
 | |
|     ":generate_moc",
 | |
|     "//AK",
 | |
|     "//Meta/gn/build/libs/pulse",
 | |
|     "//Userland/Libraries/LibCore",
 | |
|     "//Userland/Libraries/LibFileSystem",
 | |
|     "//Userland/Libraries/LibGfx",
 | |
|     "//Userland/Libraries/LibIPC",
 | |
|     "//Userland/Libraries/LibJS",
 | |
|     "//Userland/Libraries/LibMain",
 | |
|     "//Userland/Libraries/LibProtocol",
 | |
|     "//Userland/Libraries/LibWeb",
 | |
|     "//Userland/Libraries/LibWebSocket",
 | |
|     "//Userland/Libraries/LibWebView",
 | |
|     "//Userland/Libraries/LibWebView:WebContentClientEndpoint",
 | |
|     "//Userland/Libraries/LibWebView:WebContentServerEndpoint",
 | |
|     "//Userland/Libraries/LibWebView:WebDriverClientEndpoint",
 | |
|     "//Userland/Libraries/LibWebView:WebDriverServerEndpoint",
 | |
|   ]
 | |
|   sources = [
 | |
|     "//Ladybird/FontPlugin.cpp",
 | |
|     "//Ladybird/HelperProcess.cpp",
 | |
|     "//Ladybird/ImageCodecPlugin.cpp",
 | |
|     "//Ladybird/Qt/AudioCodecPluginQt.cpp",
 | |
|     "//Ladybird/Qt/AudioThread.cpp",
 | |
|     "//Ladybird/Qt/EventLoopImplementationQt.cpp",
 | |
|     "//Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp",
 | |
|     "//Ladybird/Qt/RequestManagerQt.cpp",
 | |
|     "//Ladybird/Qt/StringUtils.cpp",
 | |
|     "//Ladybird/Qt/WebSocketClientManagerQt.cpp",
 | |
|     "//Ladybird/Qt/WebSocketImplQt.cpp",
 | |
|     "//Ladybird/Qt/WebSocketQt.cpp",
 | |
|     "//Ladybird/Utilities.cpp",
 | |
|     "//Userland/Services/WebContent/ConnectionFromClient.cpp",
 | |
|     "//Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp",
 | |
|     "//Userland/Services/WebContent/PageHost.cpp",
 | |
|     "//Userland/Services/WebContent/WebContentConsoleClient.cpp",
 | |
|     "//Userland/Services/WebContent/WebDriverConnection.cpp",
 | |
|     "main.cpp",
 | |
|   ]
 | |
|   sources += get_target_outputs(":generate_moc")
 | |
| }
 |