Upsurge
Upsurge copied to clipboard
Build with new build system
I'm experimenting with a Package.swift
using the new build system. Interestingly, it generates static libraries by default but without any lib
prefix so the library becomes Upsurge.a
. A swiftmodule
is also generated and as the Makefile has shown, the two files should be droppable into an end project.
I'm trying to build on Linux which of course will have issues with import Accelerate
but these can now be wrapped in #if !os(Linux)
C style.
The -module-name
must be Upsurge but the only way I can get that at present is to have an Upsurge subdir inserted below Source.
And obviously if we can get a build happening here, then it all directly applies to HDF5Kit with a sysmodule definition for the hdf5 C library.
Already on HDF5Kit :) https://github.com/aleph7/HDF5Kit/tree/swift-build
Awesome!