diff options
Diffstat (limited to 'examples/hello_world/build.zig')
-rw-r--r-- | examples/hello_world/build.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/hello_world/build.zig b/examples/hello_world/build.zig index 61c46d2..63c8626 100644 --- a/examples/hello_world/build.zig +++ b/examples/hello_world/build.zig @@ -26,6 +26,11 @@ pub fn build(b: *std.Build) void { // set a preferred release mode, allowing the user to decide how to optimize. const optimize = b.standardOptimizeOption(.{}); + const srvre_sys = b.dependency("srvre_sys", .{ + .target = target, + .optimize = optimize, + }); + const exe = b.addExecutable(.{ .name = "hello_world", .root_source_file = b.path("src/main.zig"), @@ -33,6 +38,8 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); + exe.root_module.addImport("srvre_sys", srvre_sys.module("srvre_sys")); + // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`). |