mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Install headers for WebContent when used externally
This commit is contained in:
parent
e28d883f8d
commit
2299fe1481
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/2299fe1481
2 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue