build.zig: generate entities using the provided APIs. #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10. I tried having the generate tool and JSON be in a
tools/
subdirectory like https://ziglang.org/learn/build-system/#generating-zig-source-code suggests, but thetools/
directory didn't appear in the extracted tarball when trying to use it viazig fetch
:I checked the tarball and it was fine, and I didn't see anything relevant in issues in Zig. Maybe it only extracts a
src
subdir (? seems overspecific), or maybe there's a way some dependency wasn't specified so it didn't get extracted into the cache, idk. This works fine for now.The repetition of the module in
build.zig
is messy and can be refactored next time anyone cares to look at it!