Untitled

mail@pastecode.io avatar
unknown
plain_text
3 months ago
638 B
8
Indexable
Never
const std = @import("std");

pub fn build(b: *std.Build) void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    const sharedLib = b.addSharedLibrary(.{
        .name = "cosimLib",
        .root_source_file = .{ .path = "src/entry.zig" },
        .target = target,
        .optimize = optimize,
    });

    sharedLib.addIncludePath(.{
        .path = "~/eda/iverilog",
    });

    sharedLib.addLibraryPath(.{
        .path = "~/eda/iverilog/libveriuser",
    });

    sharedLib.linkSystemLibrary("c");
    sharedLib.linkSystemLibrary("vpi");

    b.installArtifact(sharedLib);
}
Leave a Comment