Skip to content

Commit

Permalink
LibCrypto: Link with OpenSSL
Browse files Browse the repository at this point in the history
Add OpenSSL with vcpkg and link with LibCrypto using CMake.

Also added a placeholder GN setup.
  • Loading branch information
devgianlu authored and alimpfard committed Dec 22, 2024
1 parent b6561f5 commit 002a93a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/LibCrypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions Meta/gn/build/libs/openssl/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import("//Meta/gn/build/libs/third_party.gni")

third_party_dependency("openssl") {
libs = [ "openssl" ]
}
1 change: 1 addition & 0 deletions Meta/gn/secondary/Userland/Libraries/LibCrypto/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ shared_library("LibCrypto") {
cflags_cc = [ "-Wvla" ]
deps = [
"//AK",
"//Meta/gn/build/libs/openssl",
"//Userland/Libraries/LibCore",
]
sources = [
Expand Down
1 change: 1 addition & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"name": "mman",
"platform": "windows"
},
"openssl",
{
"name": "pthread",
"platform": "windows"
Expand Down

0 comments on commit 002a93a

Please sign in to comment.