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

feat: Support C header imports #167

Merged
merged 8 commits into from
Dec 28, 2023
Merged

feat: Support C header imports #167

merged 8 commits into from
Dec 28, 2023

Conversation

aherrmann
Copy link
Owner

C header files provided by cc_library dependencies specified on the cdeps attribute of Zig targets are forwarded to the Zig compilation action.

Closes #148

  • test: e2e test for C header includes
  • linkdeps --> cdeps
  • Update the doc-string
  • Forward C headers to Zig compilation
  • Fix test size warnings

The name `linkdeps` is inappropriate when we take headers into account.
Dependencies of type `cc_library` can expose both, libraries to link
against, but also headers to include. Requiring separate attributes
would lead to duplication in the common case of `cc_library` targets
exposing both headers and libraries.
@aherrmann aherrmann enabled auto-merge December 28, 2023 12:59
@aherrmann aherrmann merged commit 0d57ff3 into main Dec 28, 2023
@aherrmann aherrmann deleted the header-deps branch December 28, 2023 13:13
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

Successfully merging this pull request may close these issues.

How to work with include paths
1 participant