https://gitlab.synchro.net/main/sbbs/-/commit/4b72c86a20e0a0df5ef58f27
Added Files:
3rdp/win32.release/mozjs/include/jsstdint.h jstypedarray.h jsvalue.h src/build/sqlite.props
Modified Files:
.gitlab-ci.yml install/install.iss upgrade.iss src/sbbs3/js_sqlite.cpp sbbs.jsdocs.vcxproj sbbs.vcxproj services.vcxproj
Log Message:
Build the SQLite JS class on Windows (Win32/MSVC)
The SQLite class added in 97a2b168ac (2026-05-24) was only built by the
GNU make and CMake builds, so on Windows every `new SQLite(...)` failed
with "SQLite is not defined" in all servers and jsexec.
SQLite now comes from a vcpkg classic-mode install
(vcpkg install sqlite3:x86-windows), the same way the mail server gets
OpenSSL for DKIM. The new src/build/sqlite.props defines USE_SQLITE and
links sqlite3.lib only when the vcpkg header is present, so a build
without it still succeeds, just without the class (as on *nix without pkg-config sqlite3). It is imported by sbbs, sbbs.jsdocs and services; js_sqlite.cpp is added to the sbbs projects.
js_sqlite.cpp uses SpiderMonkey's internal typed-array API, whose
header was missing from the Win32 mozjs include dir: add jstypedarray.h, jsvalue.h and jsstdint.h, unmodified from 3rdp/dist/libmozjs.tgz (the
symbols are already exported by mozjs185-1.0.dll). The Win32
js-config.h predates MSVC's <stdint.h>, so define JS_HAVE_STDINT_H
before including it to keep jsstdint.h from redefining int8_t et al.
Also use stricmp() instead of strcasecmp(), which MSVC lacks.
Ship sqlite3.dll in the installers (skipped if absent, like
libcrypto-3.dll) and put the vcpkg bin dir on PATH for the Windows
jsexec test jobs, since sbbs.dll now imports sqlite3.dll.
All 19 exec/tests/sqlite tests pass with a Win32 Release jsexec.
Fixes #1430
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net