pcbjam/wasm/bindings/kicad_tools_embind.cpp
Gergő Törcsvári ad9c4675f9
feat: kicad_tools headless CLI
One merged node-WASM CLI (wasm/tools, 26.5MB) supersedes sym_convert +
pcb_convert: --convert-lib (absolutizes paths — fixes the legacy plugin's
silent empty output on relative paths), --lint (now full-parses .kicad_pcb
via the linked pcbnew parser), --erc, --netlist, --bom, --plot, --drc.
Registered as the only headless CLI app; ASYNCIFY=0 CLIs skip the
nanosleep→Asyncify yield shim and exit via _exit (dieted static dtors trap).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADzCSeN3Q9DJL3YW2FZTXB
2026-07-10 19:09:01 +02:00

9 lines
533 B
C++

// kicad_tools' "embind" object — deliberately embind-free, mirroring
// sym_convert_embind.cpp / pcb_convert_embind.cpp (ysync 0009 size research).
//
// Both dieted kifaces reference exactly ONE editor-embind symbol:
// kicadCollabOnSave (eeschema files-io.cpp / pcbnew files.cpp save paths —
// neither executes headless, and both TUs are pruned from the diets anyway).
// This no-op hook satisfies any remaining reference without rooting the
// editor surface.
extern "C" void kicadCollabOnSave( const char* /* aPath */ ) {}