-
-
Save Yardanico/30fee7e7f73e779a6d5a21ad84996792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Builder = @import("std").build.Builder; | |
pub fn build(b: *Builder) void { | |
const mode = b.standardReleaseOptions(); | |
const lib = b.addSharedLibrary("liblibrouter", null, b.version(2, 6, 0)); | |
lib.setBuildMode(mode); | |
const exe = b.addExecutable("zigrs", "src/main.zig"); | |
exe.setBuildMode(mode); | |
exe.linkSystemLibrary("c"); | |
exe.linkLibrary(lib); | |
const run_cmd = exe.run(); | |
const run_step = b.step("run", "Run the app"); | |
run_step.dependOn(&run_cmd.step); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment