Build with "swift build"
We need to get this building with the swift package manager.
- Eventually this needs to build on Linux (should probably open a separate issue)
- This is a Nitrogen dependency
- Swift-package-manager is the future
We need to maintain the .xcodeproj stuff for the forseeable future, so swift-build is additional.
- NaOH has a platform-specific dependency: libsodium.
- We really need basic "did the unit tests pass" support. In theory this can be accomplished via swift-corelibs-xctest in some way. Note that swift-package-manager has this feature on its roadmap. My recommendation would be to talk with upstream and see if doing our work in their repository makes sense. Maybe open an issue?
The way this currently works is:
- We download libsodium
- We configure/make
- We move the header files into the right path
- We move the compiled .a into the right path
- 3 and 4 are checked into source control.
- NaOH then builds against the prebuilt library.
Ideally what would happen is the swift-package-manager would invoke a script that performs these steps, rather than doing them manually. In that way our script can do the right thing for the platform (OSX/Linux/iOS).
This feature is on their roadmap. Talk to upstream about if we can contrib a shellscript runner.