nandi/vflutter_ffipublic Fork 0
7fdf71219e3dd44c76c7be4120ff73a31d6237ce
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.

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