diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2025-02-16 22:07:26 +0100 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2025-02-16 22:07:26 +0100 |
| commit | e8ee011bf530ce8c9fc8b55ebc05e4258ac2dd21 (patch) | |
| tree | b04abcfb3c3cc26e7dbbcf99a16c0111bae2d9a5 /build.zig | |
| parent | dd3d8f9d768479df36e51d402adf55afad1aff07 (diff) | |
update
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -23,7 +23,7 @@ pub fn build(b: *std.Build) void { // only contains e.g. external object files, you can make this `null`. // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = b.path("src/root.zig"), + .root_source_file = b.path("src/libzisp.zig"), .target = target, .optimize = optimize, }); @@ -42,14 +42,14 @@ pub fn build(b: *std.Build) void { // Modules can depend on one another using the `std.Build.Module.addImport` function. // This is what allows Zig source code to use `@import("foo")` where 'foo' is not a // file path. In this case, we set up `exe_mod` to import `lib_mod`. - exe_mod.addImport("zisp_lib", lib_mod); + exe_mod.addImport("libzisp", lib_mod); // Now, we will create a static library based on the module we created above. // This creates a `std.Build.Step.Compile`, which is the build step responsible // for actually invoking the compiler. const lib = b.addLibrary(.{ .linkage = .static, - .name = "zisp", + .name = "libzisp", .root_module = lib_mod, }); @@ -114,3 +114,7 @@ pub fn build(b: *std.Build) void { test_step.dependOn(&run_lib_unit_tests.step); test_step.dependOn(&run_exe_unit_tests.step); } + +// Local Variables: +// fill-column: 90 +// End: |
