Ziggit
Can I use packages inside build.zig?
Brainstorming
build-system
ktz_alias
January 18, 2024, 7:19am
3
In my sample product, I’ve practiced this.
see following links please.
host project
Import package function
zig-7gui-macos/build.zig at main · ritalin/zig-7gui-macos · GitHub
Declare package in build.zig.zon
zig-7gui-macos/build.zig.zon at main · ritalin/zig-7gui-macos · GitHub
target package project
Declare function in package
zig-example-step/src/step.zig at bcb26f8c7f2b8ed4337d7ba3d2882a6c4eb0e5e5 · ritalin/zig-example-step · GitHub
Declare package in build.zig
zig-example-step/build.zig at bcb26f8c7f2b8ed4337d7ba3d2882a6c4eb0e5e5 · ritalin/zig-example-step · GitHub
Best regards.
show post in topic