[swift-build-dev] [swift-users] Importing C system libraries
Rien at Balancingrock.nl
Tue Mar 28 03:58:08 CDT 2017
I feel your pain ;-)
Just embrace the dark side, it takes a little time to get used to, but chances are you won’t regret it.
Btw: I still do my development in Xcode, its just that using the SPM (Swift Package Manager) and git from the command line gives a whole extra dimension to my productivity.
I use a large monitor and have two terminal windows open at all times on the left side, and Xcode open on the right. Two monitors would be even better (I think).
Xcode is really amazing: when I regenerate the project in a terminal, there is no need to close and reopen xcode. Xcode will collapse the navigator, but otherwise it just refreshes with the new content. Its quite neat to work this way. The only two drawbacks that I have detected so far is that I need to “clean” more in Xcode, and that the old project settings are overwritten, thus if you do a lot of tweaking of the build settings this might not work out all that well.
> On 27 Mar 2017, at 23:10, Jan Neumüller via swift-users <swift-users at swift.org> wrote:
> Is it just me, or is Swift moving to much in a command line direction since the open sourcing? I feel being left behind as an Xcode user...
>> On 27 Mar 2017, at 22:59, Michael Ilseman via swift-users <swift-users at swift.org> wrote:
>> 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
>> swift-users mailing list
>> swift-users at swift.org
> swift-users mailing list
> swift-users at swift.org
More information about the swift-build-dev