mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
build: fix node_use_sqlite for GN builds
PR-URL: https://github.com/nodejs/node/pull/59017 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
This commit is contained in:
parent
f3adc11e37
commit
21eac793cd
2 changed files with 12 additions and 1 deletions
3
node.gni
3
node.gni
|
@ -42,6 +42,9 @@ declare_args() {
|
||||||
# The variable is called "openssl" for parity with node's GYP build.
|
# The variable is called "openssl" for parity with node's GYP build.
|
||||||
node_use_openssl = true
|
node_use_openssl = true
|
||||||
|
|
||||||
|
# Build node with SQLite support.
|
||||||
|
node_use_sqlite = true
|
||||||
|
|
||||||
# Use the specified path to system CA (PEM format) in addition to
|
# Use the specified path to system CA (PEM format) in addition to
|
||||||
# the BoringSSL supplied CA store or compiled-in Mozilla CA copy.
|
# the BoringSSL supplied CA store or compiled-in Mozilla CA copy.
|
||||||
node_openssl_system_ca_path = ""
|
node_openssl_system_ca_path = ""
|
||||||
|
|
|
@ -22,6 +22,11 @@ template("node_gn_build") {
|
||||||
} else {
|
} else {
|
||||||
defines += [ "HAVE_OPENSSL=0" ]
|
defines += [ "HAVE_OPENSSL=0" ]
|
||||||
}
|
}
|
||||||
|
if (node_use_sqlite) {
|
||||||
|
defines += [ "HAVE_SQLITE=1" ]
|
||||||
|
} else {
|
||||||
|
defines += [ "HAVE_SQLITE=0" ]
|
||||||
|
}
|
||||||
if (node_use_amaro) {
|
if (node_use_amaro) {
|
||||||
defines += [ "HAVE_AMARO=1" ]
|
defines += [ "HAVE_AMARO=1" ]
|
||||||
} else {
|
} else {
|
||||||
|
@ -159,7 +164,6 @@ template("node_gn_build") {
|
||||||
"deps/nghttp2",
|
"deps/nghttp2",
|
||||||
"deps/ngtcp2",
|
"deps/ngtcp2",
|
||||||
"deps/postject",
|
"deps/postject",
|
||||||
"deps/sqlite",
|
|
||||||
"deps/uvwasi",
|
"deps/uvwasi",
|
||||||
"deps/zstd",
|
"deps/zstd",
|
||||||
"//third_party/zlib",
|
"//third_party/zlib",
|
||||||
|
@ -193,6 +197,10 @@ template("node_gn_build") {
|
||||||
public_deps += [ "$node_openssl_path" ]
|
public_deps += [ "$node_openssl_path" ]
|
||||||
sources += gypi_values.node_crypto_sources
|
sources += gypi_values.node_crypto_sources
|
||||||
}
|
}
|
||||||
|
if (node_use_sqlite) {
|
||||||
|
deps += [ "deps/sqlite" ]
|
||||||
|
sources += gypi_values.node_sqlite_sources
|
||||||
|
}
|
||||||
if (node_enable_inspector) {
|
if (node_enable_inspector) {
|
||||||
deps += [
|
deps += [
|
||||||
"$node_inspector_protocol_path:crdtp",
|
"$node_inspector_protocol_path:crdtp",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue