build: configure with shared sqlite3
PR-URL: https://github.com/nodejs/node/pull/53519 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
69abdcd1bd
commit
78ea6cee1b
24
configure.py
24
configure.py
@ -538,6 +538,29 @@ shared_optgroup.add_argument('--shared-cares-libpath',
|
|||||||
dest='shared_cares_libpath',
|
dest='shared_cares_libpath',
|
||||||
help='a directory to search for the shared cares DLL')
|
help='a directory to search for the shared cares DLL')
|
||||||
|
|
||||||
|
shared_optgroup.add_argument('--shared-sqlite',
|
||||||
|
action='store_true',
|
||||||
|
dest='shared_sqlite',
|
||||||
|
default=None,
|
||||||
|
help='link to a shared sqlite DLL instead of static linking')
|
||||||
|
|
||||||
|
shared_optgroup.add_argument('--shared-sqlite-includes',
|
||||||
|
action='store',
|
||||||
|
dest='shared_sqlite_includes',
|
||||||
|
help='directory containing sqlite header files')
|
||||||
|
|
||||||
|
shared_optgroup.add_argument('--shared-sqlite-libname',
|
||||||
|
action='store',
|
||||||
|
dest='shared_sqlite_libname',
|
||||||
|
default='sqlite3',
|
||||||
|
help='alternative lib name to link to [default: %(default)s]')
|
||||||
|
|
||||||
|
shared_optgroup.add_argument('--shared-sqlite-libpath',
|
||||||
|
action='store',
|
||||||
|
dest='shared_sqlite_libpath',
|
||||||
|
help='a directory to search for the shared sqlite DLL')
|
||||||
|
|
||||||
|
|
||||||
for builtin in shareable_builtins:
|
for builtin in shareable_builtins:
|
||||||
builtin_id = 'shared_builtin_' + builtin + '_path'
|
builtin_id = 'shared_builtin_' + builtin + '_path'
|
||||||
shared_builtin_optgroup.add_argument('--shared-builtin-' + builtin + '-path',
|
shared_builtin_optgroup.add_argument('--shared-builtin-' + builtin + '-path',
|
||||||
@ -2155,6 +2178,7 @@ configure_library('cares', output, pkgname='libcares')
|
|||||||
configure_library('nghttp2', output, pkgname='libnghttp2')
|
configure_library('nghttp2', output, pkgname='libnghttp2')
|
||||||
configure_library('nghttp3', output, pkgname='libnghttp3')
|
configure_library('nghttp3', output, pkgname='libnghttp3')
|
||||||
configure_library('ngtcp2', output, pkgname='libngtcp2')
|
configure_library('ngtcp2', output, pkgname='libngtcp2')
|
||||||
|
configure_library('sqlite', output, pkgname='sqlite3')
|
||||||
configure_library('uvwasi', output, pkgname='libuvwasi')
|
configure_library('uvwasi', output, pkgname='libuvwasi')
|
||||||
configure_v8(output)
|
configure_v8(output)
|
||||||
configure_openssl(output)
|
configure_openssl(output)
|
||||||
|
2
node.gyp
2
node.gyp
@ -19,6 +19,7 @@
|
|||||||
'node_shared_http_parser%': 'false',
|
'node_shared_http_parser%': 'false',
|
||||||
'node_shared_cares%': 'false',
|
'node_shared_cares%': 'false',
|
||||||
'node_shared_libuv%': 'false',
|
'node_shared_libuv%': 'false',
|
||||||
|
'node_shared_sqlite%': 'false',
|
||||||
'node_shared_uvwasi%': 'false',
|
'node_shared_uvwasi%': 'false',
|
||||||
'node_shared_nghttp2%': 'false',
|
'node_shared_nghttp2%': 'false',
|
||||||
'node_use_openssl%': 'true',
|
'node_use_openssl%': 'true',
|
||||||
@ -543,7 +544,6 @@
|
|||||||
|
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
'deps/histogram/histogram.gyp:histogram',
|
'deps/histogram/histogram.gyp:histogram',
|
||||||
'deps/sqlite/sqlite.gyp:sqlite',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'msvs_settings': {
|
'msvs_settings': {
|
||||||
|
@ -220,6 +220,10 @@
|
|||||||
'dependencies': [ 'deps/brotli/brotli.gyp:brotli' ],
|
'dependencies': [ 'deps/brotli/brotli.gyp:brotli' ],
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
[ 'node_shared_sqlite=="false"', {
|
||||||
|
'dependencies': [ 'deps/sqlite/sqlite.gyp:sqlite' ],
|
||||||
|
}],
|
||||||
|
|
||||||
[ 'OS=="mac"', {
|
[ 'OS=="mac"', {
|
||||||
# linking Corefoundation is needed since certain OSX debugging tools
|
# linking Corefoundation is needed since certain OSX debugging tools
|
||||||
# like Instruments require it for some features
|
# like Instruments require it for some features
|
||||||
|
@ -106,6 +106,7 @@ def translate_config(out_dir, config, v8_config):
|
|||||||
'node_shared_nghttp3': 'false',
|
'node_shared_nghttp3': 'false',
|
||||||
'node_shared_ngtcp2': 'false',
|
'node_shared_ngtcp2': 'false',
|
||||||
'node_shared_openssl': 'false',
|
'node_shared_openssl': 'false',
|
||||||
|
'node_shared_sqlite': 'false',
|
||||||
'node_shared_zlib': 'false',
|
'node_shared_zlib': 'false',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user