- Run
zig build -Dandroid
- Zig generates the "buildpkgs" module with a list of the packages that are available
buildpkgs.zig
pub fn hasPackage(comptime name: []const u8) bool {
return false;
}
build.zig
gets compiled- the resulting build executable is executed
build_runner.zig
detects that there is a "needPackage" configured so it prints this error:
$ zig build -Dandroid
error: build.zig is missing needed package "androidbuild"