Reputation: 4654
I want to create a Swift Package Manager entry (manifest and modulemap files) for existing C lib repository on github.
However I don't want to fork it, add it there and maintain the fork to be up to date with original repo.
Is this a way to create a separate repository which will work as a proxy for Swift PM?
Upvotes: 0
Views: 271
Reputation: 3615
No, not yet. I have considered this idea, and think it would be useful, but right now in practice making an existing C lib work with the package manager usually requires moving the code around. Once we support custom code layout conventions, then I think it will become more interesting.
As a hack, you might be able to make this work by using a git submodule to reference the foreign package, and using symbolic links to make the sources appear where they need to in your "adaptor" package.
Upvotes: 1