[mirror] Zig bindings to libpcre
https://github.com/kivikakk/libpcre.zig
Amelia Cuss 43b9b5865b | ||
---|---|---|
.github/workflows | ||
src | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
build.zig |
libpcre.zig
To build, add to your build.zig
:
const linkPcre = @import("vendor/libpcre.zig/build.zig").linkPcre;
try linkPcre(exe);
exe.addPackagePath("libpcre", "vendor/libpcre.zig/src/main.zig");
Supported operating systems:
-
Linux:
apt install pkg-config libpcre3-dev
-
macOS:
brew install pkg-config pcre
-
Windows: install vcpkg,vcpkg integrate install
,vcpkg install pcre --triplet x64-windows-static
Zig doesn't have vcpkg integration any more. Suggestions welcome!