From 2299fe148141f75617d1623c94937088c7416087 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 11 Aug 2023 19:38:31 -0600 Subject: [PATCH] Ladybird: Install headers for WebContent when used externally --- Ladybird/WebContent/CMakeLists.txt | 14 ++++++++++++++ Ladybird/cmake/InstallRules.cmake | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/Ladybird/WebContent/CMakeLists.txt b/Ladybird/WebContent/CMakeLists.txt index 2b08e793a67..30fd22e39d6 100644 --- a/Ladybird/WebContent/CMakeLists.txt +++ b/Ladybird/WebContent/CMakeLists.txt @@ -34,6 +34,20 @@ else() target_include_directories(webcontent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/) target_include_directories(webcontent PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..) target_link_libraries(webcontent PRIVATE LibAudio LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket LibProtocol LibSQL LibWebView) + target_sources(webcontent PUBLIC FILE_SET ladybird TYPE HEADERS + BASE_DIRS ${SERENITY_SOURCE_DIR} + FILES ../FontPlugin.h + ../ImageCodecPlugin.h + ) + target_sources(webcontent PUBLIC FILE_SET server TYPE HEADERS + BASE_DIRS ${SERENITY_SOURCE_DIR}/Userland/Services + FILES ${WEBCONTENT_SOURCE_DIR}/ConnectionFromClient.h + ${WEBCONTENT_SOURCE_DIR}/ConsoleGlobalEnvironmentExtensions.h + ${WEBCONTENT_SOURCE_DIR}/Forward.h + ${WEBCONTENT_SOURCE_DIR}/PageHost.h + ${WEBCONTENT_SOURCE_DIR}/WebContentConsoleClient.h + ${WEBCONTENT_SOURCE_DIR}/WebDriverConnection.h + ) add_executable(WebContent main.cpp) target_link_libraries(WebContent PRIVATE webcontent) diff --git a/Ladybird/cmake/InstallRules.cmake b/Ladybird/cmake/InstallRules.cmake index 0582a9ffe02..da24a6425df 100644 --- a/Ladybird/cmake/InstallRules.cmake +++ b/Ladybird/cmake/InstallRules.cmake @@ -49,6 +49,10 @@ install(TARGETS ${all_required_lagom_libraries} COMPONENT ladybird_Runtime NAMELINK_COMPONENT ladybird_Development DESTINATION ${CMAKE_INSTALL_LIBDIR} + FILE_SET server + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILE_SET ladybird + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) write_basic_package_version_file(