| Initial commit: V -> Flutter FFI plugin ad0ccda nandi 5h ago | 1 | #!/usr/bin/env bash |
| 2 | # Host build + smoke test. CI entry point; not used by Flutter itself. |
| 3 | set -euo pipefail |
| 4 | cd "$(dirname "$0")/.." |
| 5 | command -v v >/dev/null || { echo "V compiler not on PATH"; exit 1; } |
| 6 | mkdir -p build |
| Add a Mandelbrot example app, and a V kernel worth demonstrating 81540bb nandithebull 1h ago | 7 | # -gc none matches what the Flutter builds use (src/CMakeLists.txt), so the |
| 8 | # ownership rules exercised here are the real ones. -prod turns on the C |
| 9 | # optimiser; without it the numeric kernels are several times slower. |
| 10 | v -shared -gc none -prod -o build/libvflutter.so src/vflutter.v |
| Initial commit: V -> Flutter FFI plugin ad0ccda nandi 5h ago | 11 | echo "built: $(ls -la build/libvflutter.so | awk '{print $5}') bytes" |
| 12 | nm -D --defined-only build/libvflutter.so | grep ' vf_' || { echo "no vf_ exports!"; exit 1; } |