mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
CMake: Install simdutf runtime components as required
Using install(IMPORTED_RUNTIME_ARTIFACTS), we can re-export the shared library and frameworks we imported from outside the build tree into our install treer. This is required for simdutf as it is a dependency of the AK library, and we need liblagom-ak.so to be loadable when doing fuzzer and cross-compile builds for the Lagom tools.
This commit is contained in:
parent
35639ebc77
commit
dfd928a8f8
|
|
@ -61,6 +61,14 @@ find_package(simdutf REQUIRED)
|
|||
swizzle_target_properties_for_swift(simdutf::simdutf)
|
||||
target_link_libraries(AK PRIVATE simdutf::simdutf)
|
||||
|
||||
# FIXME: Make this generic for all imported shared library dependencies and apply globally
|
||||
if (NOT CMAKE_SKIP_INSTALL_RULES AND NOT "${VCPKG_INSTALLED_DIR}" STREQUAL "")
|
||||
install(IMPORTED_RUNTIME_ARTIFACTS simdutf::simdutf
|
||||
LIBRARY COMPONENT Lagom_Runtime NAMELINK_COMPONENT Lagom_Development
|
||||
FRAMEWORK COMPONENT Lagom_Runtime
|
||||
)
|
||||
endif()
|
||||
|
||||
if (ENABLE_SWIFT)
|
||||
generate_clang_module_map(AK
|
||||
GENERATED_FILES
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user