build: update GN build files for ngtcp2

PR-URL: https://github.com/nodejs/node/pull/51313
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
pull/51377/head
Cheng Zhao 2024-01-05 10:30:32 +09:00 committed by GitHub
parent 22f4482587
commit 68c8472ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,10 @@ template("ngtcp2_gn_build") {
"_WINDOWS",
"HAVE_CONFIG_H",
]
} else {
defines += [
"HAVE_UNISTD_H",
]
}
if (is_linux) {
defines += [
@ -53,9 +57,10 @@ template("ngtcp2_gn_build") {
"nghttp3/lib/"
]
sources = gypi_values.nghttp3_sources + gypi_values.ngtcp2_sources
sources = gypi_values.nghttp3_sources +
gypi_values.ngtcp2_sources +
gypi_values.ngtcp2_sources_quictls
if (node_use_openssl) {
sources += gypi_values.ngtcp2_sources_openssl
deps = [ "../openssl" ]
}
@ -63,6 +68,8 @@ template("ngtcp2_gn_build") {
cflags_c = [
"-Wno-extra-semi",
"-Wno-implicit-fallthrough",
# Remove after https://github.com/ngtcp2/ngtcp2/issues/1050 is fixed.
"-Wno-sometimes-uninitialized",
]
}
}