mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02: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.
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(WEBCONTENT_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebContent/)
 | |
| 
 | |
| set(WEBCONTENT_SOURCES
 | |
|     ${WEBCONTENT_SOURCE_DIR}/ConnectionFromClient.cpp
 | |
|     ${WEBCONTENT_SOURCE_DIR}/ConsoleGlobalEnvironmentExtensions.cpp
 | |
|     ${WEBCONTENT_SOURCE_DIR}/PageHost.cpp
 | |
|     ${WEBCONTENT_SOURCE_DIR}/WebContentConsoleClient.cpp
 | |
|     ${WEBCONTENT_SOURCE_DIR}/WebDriverConnection.cpp
 | |
|     ../FontPlugin.cpp
 | |
|     ../HelperProcess.cpp
 | |
|     ../ImageCodecPlugin.cpp
 | |
|     ../Utilities.cpp
 | |
|     ../Qt/AudioCodecPluginQt.cpp
 | |
|     ../Qt/AudioThread.cpp
 | |
|     ../Qt/EventLoopImplementationQt.cpp
 | |
|     ../Qt/EventLoopImplementationQtEventTarget.cpp
 | |
|     ../Qt/RequestManagerQt.cpp
 | |
|     ../Qt/StringUtils.cpp
 | |
|     ../Qt/WebSocketClientManagerQt.cpp
 | |
|     ../Qt/WebSocketQt.cpp
 | |
|     ../Qt/WebSocketImplQt.cpp
 | |
|     main.cpp
 | |
| )
 | |
| 
 | |
| qt_add_executable(WebContent ${WEBCONTENT_SOURCES})
 | |
| 
 | |
| target_include_directories(WebContent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
 | |
| target_include_directories(WebContent PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
 | |
| target_link_libraries(WebContent PRIVATE Qt::Core Qt::Network Qt::Multimedia LibAudio LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket LibProtocol LibSQL LibWebView)
 | |
| if (ANDROID)
 | |
|     link_android_libs(WebContent)
 | |
| endif()
 | |
| 
 | |
| if (HAVE_PULSEAUDIO)
 | |
|     target_compile_definitions(WebContent PRIVATE HAVE_PULSEAUDIO=1)
 | |
| endif()
 |