mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +00:00
Meta: Add gn rules for dependencies of LibWeb
There's a lot of them, and LibWeb is a massive set of files to build as well, so let's add these first :^).
This commit is contained in:
parent
13a5606cdc
commit
7b3d0fb002
15 changed files with 427 additions and 0 deletions
43
Meta/gn/secondary/Userland/Libraries/LibTLS/BUILD.gn
Normal file
43
Meta/gn/secondary/Userland/Libraries/LibTLS/BUILD.gn
Normal file
|
@ -0,0 +1,43 @@
|
|||
import("//Meta/gn/build/download_cache.gni")
|
||||
import("//Meta/gn/build/download_file.gni")
|
||||
|
||||
declare_args() {
|
||||
# If true, Download root CA certificate bundle from curl.se
|
||||
# Data will be downloaded to $cache_path/CACERT and used by LibTLS
|
||||
enable_cacert_download = true
|
||||
}
|
||||
|
||||
cacert_cache = cache_path + "CACERT/"
|
||||
|
||||
if (enable_cacert_download) {
|
||||
download_file("ca_certificates_download") {
|
||||
version = "2023-01-10"
|
||||
url = "https://curl.se/ca/cacert-" + version + ".pem"
|
||||
output = "$root_build_dir/cacert.pem"
|
||||
version_file = cacert_cache + "version.txt"
|
||||
}
|
||||
# FIXME: Copy file to /etc/cacert.pem on serenity
|
||||
}
|
||||
|
||||
shared_library("LibTLS") {
|
||||
output_name = "tls"
|
||||
include_dirs = [ "//Userland/Libraries" ]
|
||||
cflags_cc = [ "-Wvla" ]
|
||||
sources = [
|
||||
"Certificate.cpp",
|
||||
"Handshake.cpp",
|
||||
"HandshakeCertificate.cpp",
|
||||
"HandshakeClient.cpp",
|
||||
"HandshakeServer.cpp",
|
||||
"Record.cpp",
|
||||
"Socket.cpp",
|
||||
"TLSv12.cpp",
|
||||
]
|
||||
deps = [
|
||||
":ca_certificates_download",
|
||||
"//AK",
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibCrypto",
|
||||
"//Userland/Libraries/LibFileSystem",
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue