mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Now that we no longer use QFont from LibWeb, we can also stop using QGuiApplication in the WebContent process entirely. This removes a whole bunch of unnecessary work from the event loop, and also allows nice things like running headless-browser while *actually* headless. :^)
33 lines
1.2 KiB
CMake
33 lines
1.2 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
|
|
../AudioCodecPluginLadybird.cpp
|
|
../AudioThread.cpp
|
|
../EventLoopImplementationQt.cpp
|
|
../FontPluginQt.cpp
|
|
../ImageCodecPluginLadybird.cpp
|
|
../RequestManagerQt.cpp
|
|
../Utilities.cpp
|
|
../WebSocketClientManagerLadybird.cpp
|
|
../WebSocketLadybird.cpp
|
|
../WebSocketImplQt.cpp
|
|
main.cpp
|
|
)
|
|
|
|
if (APPLE)
|
|
list(APPEND WEBCONTENT_SOURCES MacOSSetup.mm)
|
|
endif()
|
|
|
|
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)
|
|
if (ANDROID)
|
|
link_android_libs(WebContent)
|
|
endif()
|