Improve installation of C headers for foreign archive sandboxes
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
It would be nice if there were an easier way to install the C headers than having to list all of them.
My use-case is that I'm wrapping the build of a (rather complex) C library inside a foreign archive sandbox. It's working fine, but then I need to list all the C headers to install manually:
- as targets of the build rule for the archive;
- either as
install_c_headersor in a custominstallstanza.
It would be easier if I could use globs, or specify a directory in both cases. Especially since that list might change depending on system parameters, e.g. the host OS. (e.g. a related issue is #3354 which could solve the second item but not the first one)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the build rules for archive targets and the install_c_headers or custom install stanzas described in the issue. Determine how header lists are currently expanded and define support for selecting headers by glob or directory in both contexts; done means the sandbox can install the required headers without listing each file manually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, ocaml
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100