mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibCrypto: Link with OpenSSL
Add OpenSSL with vcpkg and link with LibCrypto using CMake. Also added a placeholder GN setup.
This commit is contained in:
parent
b6561f5e2b
commit
002a93a33c
Notes:
github-actions[bot]
2024-12-22 17:54:58 +00:00
Author: https://github.com/devgianlu Commit: https://github.com/LadybirdBrowser/ladybird/commit/002a93a33cc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2989 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/rmg-x
4 changed files with 10 additions and 0 deletions
|
@ -39,3 +39,6 @@ set(SOURCES
|
|||
|
||||
serenity_lib(LibCrypto crypto)
|
||||
target_link_libraries(LibCrypto PRIVATE LibCore)
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
target_link_libraries(LibCrypto PUBLIC OpenSSL::Crypto)
|
||||
|
|
5
Meta/gn/build/libs/openssl/BUILD.gn
Normal file
5
Meta/gn/build/libs/openssl/BUILD.gn
Normal file
|
@ -0,0 +1,5 @@
|
|||
import("//Meta/gn/build/libs/third_party.gni")
|
||||
|
||||
third_party_dependency("openssl") {
|
||||
libs = [ "openssl" ]
|
||||
}
|
|
@ -4,6 +4,7 @@ shared_library("LibCrypto") {
|
|||
cflags_cc = [ "-Wvla" ]
|
||||
deps = [
|
||||
"//AK",
|
||||
"//Meta/gn/build/libs/openssl",
|
||||
"//Userland/Libraries/LibCore",
|
||||
]
|
||||
sources = [
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
"name": "mman",
|
||||
"platform": "windows"
|
||||
},
|
||||
"openssl",
|
||||
{
|
||||
"name": "pthread",
|
||||
"platform": "windows"
|
||||
|
|
Loading…
Add table
Reference in a new issue