install libvosk.so and configure rpath to use it (linux)
This commit is contained in:
parent
67ee2b4091
commit
6148c30dbc
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,12 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
const vosk_dep_name = selectVoskDependency(target.result);
|
||||
const vosk_dep = b.dependency(vosk_dep_name, .{});
|
||||
const install_vosk = b.addInstallFileWithDir(
|
||||
vosk_dep.path("libvosk.so"),
|
||||
.lib,
|
||||
"libvosk.so",
|
||||
);
|
||||
b.getInstallStep().dependOn(&install_vosk.step);
|
||||
const alsa_dep = b.dependency("alsa", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
@ -56,6 +62,7 @@ pub fn build(b: *std.Build) void {
|
|||
.link_libc = true,
|
||||
}),
|
||||
});
|
||||
exe.root_module.addRPathSpecial("$ORIGIN/../lib");
|
||||
|
||||
exe.linkLibrary(stt_lib);
|
||||
exe.linkLibrary(alsa_lib);
|
||||
|
|
Loading…
Add table
Reference in a new issue