mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +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)
|
serenity_lib(LibCrypto crypto)
|
||||||
target_link_libraries(LibCrypto PRIVATE LibCore)
|
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" ]
|
cflags_cc = [ "-Wvla" ]
|
||||||
deps = [
|
deps = [
|
||||||
"//AK",
|
"//AK",
|
||||||
|
"//Meta/gn/build/libs/openssl",
|
||||||
"//Userland/Libraries/LibCore",
|
"//Userland/Libraries/LibCore",
|
||||||
]
|
]
|
||||||
sources = [
|
sources = [
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
"name": "mman",
|
"name": "mman",
|
||||||
"platform": "windows"
|
"platform": "windows"
|
||||||
},
|
},
|
||||||
|
"openssl",
|
||||||
{
|
{
|
||||||
"name": "pthread",
|
"name": "pthread",
|
||||||
"platform": "windows"
|
"platform": "windows"
|
||||||
|
|||||||
Reference in New Issue
Block a user