| Initial commit: V -> Flutter FFI plugin ad0ccda nandi 5h ago | 1 | Pod::Spec.new do |s| |
| 2 | s.name = 'vflutter_ffi' |
| 3 | s.version = '0.1.0' |
| 4 | s.summary = 'V language runtime bridged to Flutter via dart:ffi.' |
| 5 | s.homepage = 'https://example.com' |
| 6 | s.license = { :file => '../LICENSE' } |
| 7 | s.author = { 'you' => 'you@example.com' } |
| 8 | s.source = { :path => '.' } |
| 9 | s.source_files = 'Classes/**/*' |
| 10 | s.dependency 'Flutter' |
| 11 | s.platform = :osx, "10.14" |
| 12 | |
| 13 | # V's generated C is machine output. |
| 14 | s.compiler_flags = '-w' |
| 15 | |
| 16 | # The V runtime initialises through __attribute__((constructor)). In a static |
| 17 | # archive the linker drops objects nothing references, which would silently |
| 18 | # skip that. -all_load keeps them, and vf_init() is the belt-and-braces path. |
| 19 | s.pod_target_xcconfig = { |
| 20 | 'DEFINES_MODULE' => 'YES', |
| 21 | 'OTHER_LDFLAGS' => '-all_load', |
| 22 | |
| 23 | } |
| 24 | end |