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