nandi/vflutter_ffipublic Fork 0
f7c3825dc671305345e20a62ea6ac8facbc903bb
Commits
Clone
git clone https://git.rickub.com/nandi/vflutter_ffi.git
git clone ssh://git@rickub.com/nandi/vflutter_ffi.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

build.sh · 12 lines · 666 BBash Blame HistoryRaw
Initial commit: V -> Flutter FFI plugin ad0ccda nandi 10h ago1#!/usr/bin/env bash
2# Host build + smoke test. CI entry point; not used by Flutter itself.
3set -euo pipefail
4cd "$(dirname "$0")/.."
5command -v v >/dev/null || { echo "V compiler not on PATH"; exit 1; }
6mkdir -p build
Add a Mandelbrot example app, and a V kernel worth demonstrating 81540bb nandithebull 6h ago7# -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.
10v -shared -gc none -prod -o build/libvflutter.so src/vflutter.v
Initial commit: V -> Flutter FFI plugin ad0ccda nandi 10h ago11echo "built: $(ls -la build/libvflutter.so | awk '{print $5}') bytes"
12nm -D --defined-only build/libvflutter.so | grep ' vf_' || { echo "no vf_ exports!"; exit 1; }