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

Replace V with Nim 472eb49 · on 472eb493bac94bdcb79a38829ccca0c541256fef · nandithebull · 4h ago
nimflutter_ffi.podspec · 24 lines · 909 BGDScript3 Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pod::Spec.new do |s|
  s.name             = 'nimflutter_ffi'
  s.version          = '0.1.0'
  s.summary          = 'Nim language runtime bridged to Flutter via dart:ffi.'
  s.homepage         = 'https://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'you' => 'you@example.com' }
  s.source           = { :path => '.' }
  s.source_files     = 'Classes/**/*'
  s.dependency 'Flutter'
  s.platform = :ios, '12.0'

  # Nim's generated C is machine output.
  s.compiler_flags = '-w'

  # NimMain runs from a library constructor in a shared build. A static archive
  # has no such hook, and the linker drops objects nothing references anyway —
  # so -all_load keeps them and nf_init() is the guaranteed entry point.
  s.pod_target_xcconfig = {
    'DEFINES_MODULE' => 'YES',
    'OTHER_LDFLAGS' => '-all_load',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
  }
end