|
864 | 864 | default=None,
|
865 | 865 | help='build without NODE_OPTIONS support')
|
866 | 866 |
|
| 867 | +parser.add_argument('--without-sqlite', |
| 868 | + action='store_true', |
| 869 | + dest='without_sqlite', |
| 870 | + default=None, |
| 871 | + help='build without SQLite (disables SQLite and Web Stoage API)') |
| 872 | + |
867 | 873 | parser.add_argument('--ninja',
|
868 | 874 | action='store_true',
|
869 | 875 | dest='use_ninja',
|
@@ -1816,6 +1822,16 @@ def without_ssl_error(option):
|
1816 | 1822 |
|
1817 | 1823 | configure_library('openssl', o)
|
1818 | 1824 |
|
| 1825 | +def configure_sqlite(o): |
| 1826 | + o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
| 1827 | + if options.without_sqlite: |
| 1828 | + def without_sqlite_error(option): |
| 1829 | + error(f'--without-sqlite is incompatible with {option}') |
| 1830 | + if options.shared_sqlite: |
| 1831 | + without_sqlite_error('--shared-sqlite') |
| 1832 | + return |
| 1833 | + |
| 1834 | + configure_library('sqlite', o, pkgname='sqlite3') |
1819 | 1835 |
|
1820 | 1836 | def configure_static(o):
|
1821 | 1837 | if options.fully_static or options.partly_static:
|
@@ -2259,7 +2275,7 @@ def make_bin_override():
|
2259 | 2275 | configure_library('nghttp2', output, pkgname='libnghttp2')
|
2260 | 2276 | configure_library('nghttp3', output, pkgname='libnghttp3')
|
2261 | 2277 | configure_library('ngtcp2', output, pkgname='libngtcp2')
|
2262 |
| -configure_library('sqlite', output, pkgname='sqlite3') |
| 2278 | +configure_sqlite(output); |
2263 | 2279 | configure_library('uvwasi', output, pkgname='libuvwasi')
|
2264 | 2280 | configure_library('zstd', output, pkgname='libzstd')
|
2265 | 2281 | configure_v8(output, configurations)
|
|
0 commit comments