Closed jbcoe closed 6 years ago
This is still work in progress. I thought a view of live work would be useful.
Installing Swift on Ubuntu: https://gist.github.com/Azoy/8c47629fa160878cf359bf7380aaaaf9
Swift without Xcode: https://owensd.io/2015/01/13/compiling-swift-without-xcode/
Looks good so far...
Progress is blocked, for now, by my inability to understand Swift initialiser overload resolution: https://stackoverflow.com/questions/49978207/why-does-my-swift-code-try-and-call-the-wrong-init-method
[Update]
Question answered and generated bindings fixed!
Swift has a command line helper for building/testing much like dotnet: https://theswiftdev.com/2017/11/09/swift-package-manager-tutorial/
https://oleb.net/blog/2017/12/importing-c-library-into-swift/
Tests in place (albeit ugly ones).
Will only run on macOS for now. Will amend that in a follow-up PR.
What does this PR do?
Adds Swift bindings to FFIG.
Closes
closes #21