mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 04:32:51 +00:00
This was accidentally broken in
ac40197047
, after which we started
installing headers into a `LibCrypt` subdirectory instead.
`serenity_install_headers("")` is really the only thing that we need
from `serenity_libc`, so just replicate that manually.
15 lines
526 B
CMake
15 lines
526 B
CMake
|
|
# HACK ALERT!
|
|
# To avoid a circular dependency chain with LibCrypt --> LibCrypto --> LibCore --> LibCrypt
|
|
# We include the SHA2 implementation from LibCrypto here manually
|
|
add_library(LibCryptSHA2 OBJECT ../LibCrypto/Hash/SHA2.cpp)
|
|
set_target_properties(LibCryptSHA2 PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
|
set_target_properties(LibCryptSHA2 PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
|
|
|
|
set(SOURCES
|
|
crypt.cpp
|
|
)
|
|
|
|
serenity_lib(LibCrypt crypt)
|
|
serenity_install_headers("")
|
|
target_link_libraries(LibCrypt PRIVATE LibCryptSHA2)
|