Skip to content

ikskuh/zig-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-mqtt

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.

Usage

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);
    …
}

About

A build package for mqtt-c.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages