mirror of
https://github.com/allyourcodebase/argp-standalone.git
synced 2026-11-17 01:20:38 +00:00
argp-standalone ported to the zig build system
- Zig 78.3%
- C 21.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| config.h.in | ||
| LICENSE | ||
| README.md | ||
argp-standalone
This is argp-standalone, packaged for Zig.
Installation
First, update your build.zig.zon:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/argp-standalone.git
You can then import argp_standalone in your build.zig with:
const argp_dependency = b.dependency("argp_standalone", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(argp_dependency.artifact("argp"));