mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Ali Mohammad Pur
parent
b6561f5e2b
commit
002a93a33c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user