Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple C sources #3152

Closed
CodeReaper opened this issue Feb 16, 2015 · 3 comments
Closed

Multiple C sources #3152

CodeReaper opened this issue Feb 16, 2015 · 3 comments
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.

Comments

@CodeReaper
Copy link

馃寛

I am trying to make a pod which has multiple sources of c code, but I don't see how to handle multiple sources when some of the sources isn't meant to compile on their own.

There is a main c project which compiles fine and the other sources I have are c code files which is meant to be placed in the source directory of the main project.

I have tried defining the other sources as dependencies as separate pods (which doesn't built on its own) and as subspecs (but the subspec source was ignored). Downloading all the sources and stashing them in a repo, doesn't seem all that pod-like.

For a specific example, these files https://github.com/zhanjunxiong/luapb/tree/master/src are meant to be among the files from http://www.lua.org/ftp/lua-5.1.5.tar.gz

Does cocoapods support a way of doing this, is this something that cocoapods should potentially support in a future version or is my use case too weird?

@segiddins
Copy link
Member

Basically, you'll need to define podspecs for each of the sources, or otherwise create some sort of aggregate source.

@segiddins segiddins added the t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future. label Feb 19, 2015
@CodeReaper
Copy link
Author

Separate podspecs would mean they cannot build on their own and doesn't the source from each podspec go in its own directory? The C sources I am talking about here must all go into one directory in order to be built.

@neonichu
Copy link
Member

But https://github.com/zhanjunxiong/luapb/blob/master/Makefile builds with an installed version of Lua, that should also be possible when encapsulating it into a podspec. A podspec for Lua itself already exists, so you should depend on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.
Projects
None yet
Development

No branches or pull requests

3 participants