build: migrate to separate cbor package

This commit is contained in:
CJ van den Berg 2025-03-26 20:38:47 +01:00
parent e3921691dc
commit 42a98a44e7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 8 additions and 1659 deletions

View file

@ -74,9 +74,11 @@ pub fn build(b: *std.Build) void {
lib.linkLibCpp();
b.installArtifact(lib);
const cbor_mod = b.addModule("cbor", .{
.root_source_file = b.path("src/cbor.zig"),
const cbor_dep = b.dependency("cbor", .{
.target = target,
.optimize = optimize,
});
const cbor_mod = cbor_dep.module("cbor");
const thespian_mod = b.addModule("thespian", .{
.root_source_file = b.path("src/thespian.zig"),