1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

AK: Move install rules into AK's CMakeLists

This commit is contained in:
Andrew Kaster 2025-05-19 13:48:33 -06:00 committed by Tim Flynn
parent 5418165690
commit da106177b4
Notes: github-actions[bot] 2025-05-19 22:38:38 +00:00
2 changed files with 16 additions and 16 deletions

View file

@ -80,3 +80,19 @@ elseif (APPLE)
endif()
target_link_options(AK ${ASSERTION_HANDLER_VISIBILITY} LINKER:-U,_ak_assertion_handler)
endif()
# Manually install AK headers
if (ENABLE_INSTALL_HEADERS)
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMPONENT Lagom_Development
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h"
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/Debug.h
${CMAKE_CURRENT_BINARY_DIR}/Backtrace.h
COMPONENT Lagom_Development
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/AK"
)
endif()

View file

@ -342,22 +342,6 @@ add_serenity_subdirectory(Libraries/LibFileSystem)
# This is used by the BindingsGenerator so needs to always be built.
add_serenity_subdirectory(Libraries/LibIDL)
# Manually install AK headers
if (ENABLE_INSTALL_HEADERS)
install(
DIRECTORY "${SERENITY_PROJECT_ROOT}/AK"
COMPONENT Lagom_Development
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h"
)
install(FILES
${Lagom_BINARY_DIR}/AK/Debug.h
${Lagom_BINARY_DIR}/AK/Backtrace.h
COMPONENT Lagom_Development
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/AK"
)
endif()
# Code Generators and other host tools
if (BUILD_LAGOM_TOOLS)
add_subdirectory(Tools)