MQTT-C icon indicating copy to clipboard operation
MQTT-C copied to clipboard

Cross-compilation through Zig compiler toolchain

Open akgvn opened this issue 2 years ago • 0 comments

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

akgvn avatar Jun 16 '22 17:06 akgvn