mirror of https://github.com/nodejs/node.git
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
parent
22f4482587
commit
68c8472ed9
|
@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue