Skip to content

Commit

Permalink
build: update GN build files for ngtcp2
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
zcbenz authored and targos committed Feb 15, 2024
1 parent e8fffeb commit 9da0926
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions deps/ngtcp2/unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ template("ngtcp2_gn_build") {
"_WINDOWS",
"HAVE_CONFIG_H",
]
} else {
defines += [
"HAVE_UNISTD_H",
]
}
if (is_linux) {
defines += [
Expand All @@ -53,16 +57,19 @@ 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" ]
}

if (is_clang || !is_win) {
cflags_c = [
"-Wno-extra-semi",
"-Wno-implicit-fallthrough",
# Remove after https://github.com/ngtcp2/ngtcp2/issues/1050 is fixed.
"-Wno-sometimes-uninitialized",
]
}
}
Expand Down

0 comments on commit 9da0926

Please sign in to comment.