ikskuh/zig-mqtt
A build package for mqtt-c.
A build package for the awesome mqtt-c project by Liam Bindle.
Right now only provides a build script API in Sdk.zig
, but might contain a Zig frontend in the future.
const std = @import("std");
const Sdk = @import("Sdk.zig");
pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();
const target = b.standardTargetOptions(.{});
const lib = Sdk.createLibrary(b);
lib.setBuildMode(mode);
lib.setTarget(target);
lib.install();
const exe = b.addExecutable(…);
exe.linkLibary(lib);
exe.addIncludePath(Sdk.include_path);
…
}