print video frame information on receiver test

This commit is contained in:
2025-10-20 19:08:32 +03:00
parent af697d699c
commit bfca9bc0a0
4 changed files with 75 additions and 26 deletions

View File

@@ -67,6 +67,22 @@ pub fn build(b: *std.Build) void {
);
install_vmx_so.step.dependOn(&libvmx_build.step);
// The output lib and header directories
const lib_output_path: std.Build.LazyPath = .{
.cwd_relative = b.lib_dir,
};
const include_output_path: std.Build.LazyPath = .{
.cwd_relative = b.h_dir,
};
// Zig omt module
const omt_module = b.addModule("omt", .{
.root_source_file = b.path("src/omt.zig"),
.target = target,
.optimize = optimize,
});
omt_module.linkSystemLibrary("omt", .{});
// Define executable
const sender_exe = b.addExecutable(.{
.name = "omtoy-sender",
@@ -76,13 +92,10 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
}),
});
sender_exe.root_module.addImport("omt", omt_module);
const lib_output_path: std.Build.LazyPath = .{
.cwd_relative = b.lib_dir,
};
const include_output_path: std.Build.LazyPath = .{
.cwd_relative = b.h_dir,
};
omt_module.addLibraryPath(lib_output_path);
omt_module.addIncludePath(include_output_path);
sender_exe.root_module.addLibraryPath(lib_output_path);
sender_exe.root_module.addIncludePath(include_output_path);
@@ -97,6 +110,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
}),
});
receiver_exe.root_module.addImport("omt", omt_module);
receiver_exe.root_module.addLibraryPath(lib_output_path);
receiver_exe.root_module.addIncludePath(include_output_path);