build: fix GN build for cares/uv deps

PR-URL: https://github.com/nodejs/node/pull/55477
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
Cheng 2024-10-23 12:48:59 +09:00 committed by GitHub
parent f6cfdb918e
commit e90704cd9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -38,7 +38,10 @@ template("cares_gn_build") {
]
}
include_dirs = [ "src/lib" ]
include_dirs = [
"src/lib",
"src/lib/include",
]
if (is_win) {
include_dirs += [ "config/win32" ]
} else if (is_linux) {
@ -55,9 +58,6 @@ template("cares_gn_build") {
}
sources = gypi_values.cares_sources_common
if (is_win) {
sources += gypi_values.cares_sources_win
}
if (is_linux) {
sources += [ "config/linux/ares_config.h" ]
}

View File

@ -40,6 +40,7 @@ template("uv_gn_build") {
"-Wno-extra-semi",
"-Wno-implicit-fallthrough",
"-Wno-missing-braces",
"-Wno-sign-compare",
"-Wno-string-conversion",
"-Wno-shadow",
"-Wno-unreachable-code",

View File

@ -68,6 +68,7 @@ template("node_gn_build") {
"-Wno-extra-semi",
"-Wno-implicit-fallthrough",
"-Wno-macro-redefined",
"-Wno-missing-braces",
"-Wno-return-type",
"-Wno-shadow",
"-Wno-sometimes-uninitialized",