• SQLite JS class is never built on Windows (Win32/Win64)

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Fri Nov 27 13:25:54 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1430
    2026-11-27 13:25:54 -0800

    The `SQLite` JavaScript class (`src/sbbs3/js_sqlite.cpp`, added in 97a2b168ac (know-16-skirt, 2026-05-24)) is only available in Unix builds. The Windows (MSBuild) build never compiles or links it:

    - `js_sqlite.cpp` is not listed in `sbbs.vcxproj` (or any other `.vcxproj` in `src/sbbs3`).
    - No Windows project defines `USE_SQLITE`, so the `js_CreateSQLiteClass()` calls in `main.cpp` (`js_CreateCommonObjects()`), `services.cpp` and `jsdoor.cpp` are compiled out.
    - There is no SQLite library in `3rdp/win32.release` / `3rdp/win64.release` to link against.

    Only the GNU make build (`GNUmakefile`, via `pkg-config sqlite3`) and the CMake build (`find_package(SQLite3)`) enable it.

    Result: scripts that use `new SQLite(...)` work on Linux/BSD/macOS but fail with `SQLite is not defined` on Windows, in every server (terminal, web, mail, services) and in jsexec/jsdoor.

    To fix:

    - Add SQLite to `3rdp` for win32/win64 (the amalgamation `sqlite3.c`/`sqlite3.h` is the simplest option: one source file, no external DLL), or a prebuilt static lib.
    - Add `js_sqlite.cpp` to `sbbs.vcxproj` and define `USE_SQLITE` (plus the include/lib paths) for the projects that compile `main.cpp`, `services.cpp` and `jsdoor.cpp`.
    - Add `sqlite3.dll` to the Windows install/distribution if it is linked dynamically.

    Related: #118

    - *Authored by Claude (Claude Code), on behalf of @rswindell*

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net