Newer
Older
minerva / Userland / Services / WebContent / CMakeLists.txt
@minerva minerva on 13 Jul 1 KB Initial commit
include(accelerated_graphics)

minerva_component(
    WebContent
    TARGETS WebContent
    DEPENDS ImageDecoder RequestServer
)

compile_ipc(WebContentServer.ipc WebContentServerEndpoint.h)
compile_ipc(WebContentClient.ipc WebContentClientEndpoint.h)

compile_ipc(WebDriverClient.ipc WebDriverClientEndpoint.h)
compile_ipc(WebDriverServer.ipc WebDriverServerEndpoint.h)

set(SOURCES
    ConnectionFromClient.cpp
    ConsoleGlobalEnvironmentExtensions.cpp
    ImageCodecPluginMinerva.cpp
    PageClient.cpp
    PageHost.cpp
    WebContentConsoleClient.cpp
    WebDriverConnection.cpp
    main.cpp
)

set(GENERATED_SOURCES
    WebContentClientEndpoint.h
    WebContentServerEndpoint.h
    WebDriverClientEndpoint.h
    WebDriverServerEndpoint.h
)

minerva_bin(WebContent)
target_link_libraries(WebContent PRIVATE LibCore LibFileSystem LibIPC LibGfx LibAudio LibImageDecoderClient LibJS LibWebView LibWeb LibLocale LibMain LibURL)

if (HAS_ACCELERATED_GRAPHICS)
    target_compile_definitions(WebContent PRIVATE HAS_ACCELERATED_GRAPHICS)
    target_link_libraries(WebContent PRIVATE LibAccelGfx)
endif()