mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
Ladybird: Install an impl library for WebContent when ENABLE_QT=OFF
This should allow out of tree chromes to prototype other LibWeb platform plugins easier when using Lagom as a find_package dependency.
This commit is contained in:
parent
184056cf6a
commit
88082bfada
2 changed files with 16 additions and 2 deletions
|
@ -10,7 +10,6 @@ set(WEBCONTENT_SOURCES
|
|||
../HelperProcess.cpp
|
||||
../ImageCodecPlugin.cpp
|
||||
../Utilities.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
if (ENABLE_QT)
|
||||
|
@ -25,11 +24,18 @@ if (ENABLE_QT)
|
|||
../Qt/WebSocketClientManagerQt.cpp
|
||||
../Qt/WebSocketQt.cpp
|
||||
../Qt/WebSocketImplQt.cpp
|
||||
main.cpp
|
||||
)
|
||||
target_link_libraries(WebContent PRIVATE Qt::Core Qt::Network Qt::Multimedia)
|
||||
target_compile_definitions(WebContent PRIVATE HAVE_QT=1)
|
||||
else()
|
||||
add_executable(WebContent ${WEBCONTENT_SOURCES})
|
||||
# FIXME: Remove when chromes are upstreamed
|
||||
add_library(webcontent STATIC ${WEBCONTENT_SOURCES})
|
||||
target_include_directories(webcontent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
||||
target_include_directories(webcontent PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
|
||||
add_executable(WebContent main.cpp)
|
||||
target_link_libraries(WebContent PRIVATE webcontent)
|
||||
endif()
|
||||
|
||||
target_include_directories(WebContent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
||||
|
@ -41,4 +47,7 @@ endif()
|
|||
|
||||
if (HAVE_PULSEAUDIO)
|
||||
target_compile_definitions(WebContent PRIVATE HAVE_PULSEAUDIO=1)
|
||||
if (TARGET webcontent)
|
||||
target_compile_definitions(webcontent PRIVATE HAVE_PULSEAUDIO=1)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -37,6 +37,11 @@ foreach (application IN LISTS ladybird_applications)
|
|||
endforeach()
|
||||
list(REMOVE_DUPLICATES all_required_lagom_libraries)
|
||||
|
||||
# Install webcontent impl library if it exists
|
||||
if (TARGET webcontent)
|
||||
list(APPEND all_required_lagom_libraries webcontent)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${all_required_lagom_libraries}
|
||||
EXPORT ladybirdTargets
|
||||
COMPONENT ladybird_Runtime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue