[swift-build-dev] [swift-users] Importing C system libraries
milseman at apple.com
Mon Mar 27 15:59:29 CDT 2017
Sure. At a low level, you can create a module.map file and use -L/-l flags in your invocation of Swift. If you want to do so at a higher level, then perhaps SwiftPM can. CCing swift-build-dev for the SwiftPM part.
> On Mar 26, 2017, at 3:20 PM, Kelvin Ma via swift-users <swift-users at swift.org> wrote:
> Idk if this has been asked before, but is there a way to import C libraries into a Swift project without creating a local git repo? Preferably something similar to C where you can just `#include` headers and then specify the link flags (in Package.swift?)
> It’s getting very cumbersome to make a bunch of empty git repos just to use libglfw or libcairo.
> swift-users mailing list
> swift-users at swift.org
More information about the swift-build-dev