Upsurge icon indicating copy to clipboard operation
Upsurge copied to clipboard

Build with new build system

Open timburgess opened this issue 9 years ago • 2 comments

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.

timburgess avatar Dec 04 '15 00:12 timburgess

Already on HDF5Kit :) https://github.com/aleph7/HDF5Kit/tree/swift-build

alejandro-isaza avatar Dec 04 '15 00:12 alejandro-isaza

Awesome!

timburgess avatar Dec 04 '15 00:12 timburgess