aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/install_headers
AgeCommit message (Collapse)Author
2025-01-22std.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-18test-standalone: migrate from deprecated std.Build APIsmlugg
2024-04-11remove deprecated LazyPath.path union tagAndrew Kelley
2024-04-07Account for dependency boundaries when duping headersCarl Å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-07Document added/updated functionsCarl Åstholm
Also renames `addHeaders` to `addHeadersDirectory` for clarity.
2024-04-07Oops, forgot to dupe installations in `installLibraryHeaders`Carl Åstholm
Added test coverage for `installLibraryHeaders`
2024-04-07Fix install_headers test on macOS (and possibly Linux)Carl Åstholm
2024-04-07Add standalone tests for `Compile.installHeaders`Carl Åstholm
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>