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

Add build.zig #178

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Add build.zig #178

merged 2 commits into from
Aug 6, 2024

Conversation

fjebaker
Copy link

@fjebaker fjebaker commented Aug 5, 2024

MicroTeX is amazing and I want to use it in my Zig projects.

The best way for a Zig programmer to be able to do that is if MicroTeX has a build.zig file in the source tree that can build the C wrapper. This lets downstream Zig users use the package manager to easily integrate MicroTeX into their projects.

Other benefits include:

  • Another trivial way to build (zig build to build).
  • Cross compilation for free (e.g. zig build -Dtarget=arm-linux-muslabi).

If this is deemed irrelevant, then please just close the PR. For my own projects I can depend on my fork, but I thought I would contribute back as other Zig users might also want to use MicroTeX.

Thanks!

For Zig projects to also be able to depend on MicroTeX, a `build.zig`
file is required that builds the C wrapper. To test to make sure the
build fully defines all symbols, the Zig build optionally builds the
`memcheck` binary.
@NanoMichael
Copy link
Owner

Great job!

@NanoMichael NanoMichael merged commit 086f4eb into NanoMichael:openmath Aug 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants