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.

Initial commit: V -> Flutter FFI plugin ad0ccda · on main · nandi · 4h ago
gen_ios_sources.sh · 12 lines · 599 BBash Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/usr/bin/env bash
# iOS/macOS cannot run `v` from inside Xcode's sandbox, and App Store builds
# want a static archive. So V's C output is generated ahead of time and
# checked in; CocoaPods then compiles it like any other C source.
#
# Re-run this whenever src/vflutter.v changes.
set -euo pipefail
cd "$(dirname "$0")/.."
v -shared -gc none -no-parallel -o ios/Classes/vflutter.gen.c src/vflutter.v
cp src/vflutter.h ios/Classes/vflutter.h
cp ios/Classes/vflutter.gen.c ios/Classes/vflutter.h macos/Classes/
echo "regenerated ios/ + macos/ sources ($(wc -l < ios/Classes/vflutter.gen.c) lines)"