| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-01-22 | std.Build: add `addLibrary` function (#22554) | BratishkaErik | |
| Acts as a replacement for `addSharedLibrary` and `addStaticLibrary`, but linking mode can be changed more easily in build.zig, for example: In library: ```zig const linkage = b.option(std.builtin.LinkMode, "linkage", "Link mode for a foo_bar library") orelse .static; // or other default const lib = b.addLibrary(.{ .linkage = linkage, .name = "foo_bar", .root_module = mod, }); ``` In consumer: ```zig const dep_foo_bar = b.dependency("foo_bar", .{ .target = target, .optimize = optimize, .linkage = .static // or dynamic }); mod.linkLibrary(dep_foor_bar.artifact("foo_bar")); ``` It also matches nicely with `linkLibrary` name. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> | |||
| 2024-12-18 | test-standalone: migrate from deprecated std.Build APIs | mlugg | |
| 2024-04-11 | remove deprecated LazyPath.path union tag | Andrew Kelley | |
| 2024-04-07 | Account for dependency boundaries when duping headers | Carl Åstholm | |
| This is a temporary workaround that can be revered if/when 'path' lazy paths are updated to encode which build root they are relative to. | |||
| 2024-04-07 | Document added/updated functions | Carl Åstholm | |
| Also renames `addHeaders` to `addHeadersDirectory` for clarity. | |||
| 2024-04-07 | Oops, forgot to dupe installations in `installLibraryHeaders` | Carl Åstholm | |
| Added test coverage for `installLibraryHeaders` | |||
| 2024-04-07 | Fix install_headers test on macOS (and possibly Linux) | Carl Åstholm | |
| 2024-04-07 | Add standalone tests for `Compile.installHeaders` | Carl Åstholm | |
| Co-authored-by: Abhinav Gupta <mail@abhinavg.net> | |||
