Skip to content

Commit

Permalink
Build BoringSSL test tool
Browse files Browse the repository at this point in the history
Adds GN code to always build BoringSSL test tool

b/360241262
  • Loading branch information
kaidokert committed Aug 16, 2024
1 parent 05e73c4 commit 17d07be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions third_party/boringssl/BUILD.generated.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
tool_sources = [
"src/tool/args.cc",
"src/tool/ciphers.cc",
"src/tool/const.cc",
"src/tool/digest.cc",
"src/tool/file.cc",
"src/tool/generate_ed25519.cc",
"src/tool/genrsa.cc",
"src/tool/internal.h",
"src/tool/pkcs12.cc",
"src/tool/rand.cc",
"src/tool/sign.cc",
"src/tool/speed.cc",
"src/tool/tool.cc",
"src/tool/transport_common.cc",
"src/tool/transport_common.h",
]

12 changes: 12 additions & 0 deletions third_party/boringssl/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import("//starboard/sabi/sabi.gni")
import("//third_party/boringssl/buildfiles.gni")
import("//starboard/build/config/os_definitions.gni")
import("BUILD.generated.gni")

declare_args() {
asm_target_arch = target_cpu
Expand Down Expand Up @@ -177,3 +178,14 @@ static_library("crypto_full") {
configs += [ "//starboard/build/config:speed" ]
}
}

if (is_starboard) {
target(final_executable_type, "boringssl_tool") {
testonly = true
sources = tool_sources
deps = [
":crypto",
"//starboard:starboard_group",
]
}
}
1 change: 1 addition & 0 deletions third_party/boringssl/src/tool/tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#ifdef STARBOARD
#include <starboard/client_porting/wrap_main/wrap_main.h>
#define OPENSSL_NO_SOCK // avoid linking errors
#endif

#if defined(OPENSSL_WINDOWS)
Expand Down

0 comments on commit 17d07be

Please sign in to comment.