Skip to content

Commit 78e47e8

Browse files
committed
build.zig
1 parent fb7095f commit 78e47e8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ffi/zig/build.zig

+12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ pub fn build(b: *std.Build) void {
1212
const target = b.standardTargetOptions(.{});
1313
const optimize = b.standardOptimizeOption(.{});
1414

15+
const lib = b.addStaticLibrary(.{
16+
.name = "bls-zig",
17+
.root_source_file = b.path("bls.zig"),
18+
.target = target,
19+
.optimize = optimize,
20+
});
21+
lib.linkLibC();
22+
lib.addLibraryPath(b.path("../../lib"));
23+
lib.linkSystemLibrary("stdc++");
24+
lib.linkSystemLibrary("bls384_256");
25+
b.installArtifact(lib);
26+
1527
const exe = b.addExecutable(.{
1628
.name = "sample",
1729
.root_source_file = b.path("sample.zig"),

0 commit comments

Comments
 (0)