MQTT-C
MQTT-C copied to clipboard
Cross-compilation through Zig compiler toolchain
Adds a build.zig
file to be able to use the Zig build system to compile a static library for Windows (x86_64), macOS (Apple Silicon and Intel) and Linux (x86_64 and ARM64).
You can try it yourself by executing zig build
in the repo root and following files should be created in zig-out/lib
:
libmqtt-c-apple-silicon.a
libmqtt-c-arm64.a
libmqtt-c-mac-x64.a
libmqtt-c-x64.a
mqtt-c.lib