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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create gem bundle for cmock #125

Open
SteinHeselmans opened this issue Jun 8, 2017 · 6 comments
Open

Create gem bundle for cmock #125

SteinHeselmans opened this issue Jun 8, 2017 · 6 comments

Comments

@SteinHeselmans
Copy link
Contributor

For projects not using ceedling, it would be convenient to be able to install a version of cmock using gem installer. Currently those projects need to submodule cmock.git, which leads to many downloads on uncached CI jobs.

There is probably a few pitfalls as cmock doesn't only deliver a ruby package, but also some c and h files. Those need to be part of the package as well, and some convenience will be needed in order to add them to the compiler/linker.

@Letme
Copy link

Letme commented Jun 21, 2017

@mvandervoord do you see this as a feasible idea or are the pitfalls hard to avoid?

@mvandervoord
Copy link
Member

This is definitely doable. It requires a small script to be added which would allow the gem to support the C files in either of the two ways that Ceedling handles them.

  • "install" cmock to your project (copy the c and header files).
  • provide a central place where the build system could ask where those files are.

@Letme
Copy link

Letme commented Jun 21, 2017

So for Ceedling it could handle them in both ways? Do you have some preference of which would be a better way (seems like first is easier to implement on first glance)?

@mvandervoord
Copy link
Member

Ha. I think about this one with each release, but have never jumped in and done it. I still love this idea. I thing it should be a ruby gem, and I think the user should be able to call something like cmock install <path> and it should copy the C source and header files to that path. Then, cmock should be callable from the command line as usual.

@rzr
Copy link

rzr commented Mar 14, 2023

May we contact ceedling packagers to see if cmock could be split out ?

To be tracked:

https://rubygems.org/search?query=cmock

@Letme
Copy link

Letme commented Mar 14, 2023

Hahaha. @mvandervoord is maintainer of whole ecosystem, so we can rather buy him a coffee, or learn from his Ceedling GitHub Actions (ThrowTheSwitch/Ceedling#739) how to package Ruby, and then just copy it here and try to reproduce it.

I just hope he will not add too much non-related stuff in that pull request, so that I will be able to decipher it 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants