File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ declare_args() {
42
42
# The variable is called "openssl" for parity with node's GYP build.
43
43
node_use_openssl = true
44
44
45
+ # Build node with SQLite support.
46
+ node_use_sqlite = true
47
+
45
48
# Use the specified path to system CA (PEM format) in addition to
46
49
# the BoringSSL supplied CA store or compiled-in Mozilla CA copy.
47
50
node_openssl_system_ca_path = " "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ template("node_gn_build") {
22
22
} else {
23
23
defines += [ " HAVE_OPENSSL=0" ]
24
24
}
25
+ if (node_use_sqlite ) {
26
+ defines += [ " HAVE_SQLITE=1" ]
27
+ } else {
28
+ defines += [ " HAVE_SQLITE=0" ]
29
+ }
25
30
if (node_use_amaro ) {
26
31
defines += [ " HAVE_AMARO=1" ]
27
32
} else {
@@ -159,7 +164,6 @@ template("node_gn_build") {
159
164
" deps/nghttp2" ,
160
165
" deps/ngtcp2" ,
161
166
" deps/postject" ,
162
- " deps/sqlite" ,
163
167
" deps/uvwasi" ,
164
168
" deps/zstd" ,
165
169
" //third_party/zlib" ,
@@ -193,6 +197,10 @@ template("node_gn_build") {
193
197
public_deps += [ " $node_openssl_path " ]
194
198
sources += gypi_values .node_crypto_sources
195
199
}
200
+ if (node_use_sqlite ) {
201
+ deps += [ " deps/sqlite" ]
202
+ sources += gypi_values .node_sqlite_sources
203
+ }
196
204
if (node_enable_inspector ) {
197
205
deps += [
198
206
" $node_inspector_protocol_path :crdtp" ,
You can’t perform that action at this time.
0 commit comments