You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
637 B

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const lib = b.addSharedLibrary(
"zigrlang",
"src/main.zig",
b.version(0, 0, 1),
);
var step = &lib.step;
lib.setBuildMode(mode);
lib.linkSystemLibrary("c");
lib.addIncludeDir("/lib/erlang/erts-10.4/include");
var main_tests = b.addTest("src/main.zig");
main_tests.setBuildMode(mode);
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);
b.default_step.dependOn(step);
b.installArtifact(lib);
}