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:
devgianlu 2024-12-20 09:06:14 +01:00 committed by Ali Mohammad Pur
parent b6561f5e2b
commit 002a93a33c
Notes: github-actions[bot] 2024-12-22 17:54:58 +00:00
4 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -0,0 +1,5 @@
import("//Meta/gn/build/libs/third_party.gni")
third_party_dependency("openssl") {
libs = [ "openssl" ]
}

View file

@ -4,6 +4,7 @@ shared_library("LibCrypto") {
cflags_cc = [ "-Wvla" ]
deps = [
"//AK",
"//Meta/gn/build/libs/openssl",
"//Userland/Libraries/LibCore",
]
sources = [

View file

@ -80,6 +80,7 @@
"name": "mman",
"platform": "windows"
},
"openssl",
{
"name": "pthread",
"platform": "windows"