Skip to content

Conversation

@pfgithub
Copy link

No description provided.

Copy link
Collaborator

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pfgithub pfgithub requested a review from andrewrk October 4, 2024 03:29
- Add zig bindings with `@import("ffmpeg")`

```zig
exe.root_module.addImport("ffmpeg", ffmpeg_dep.module("av"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in 0.14.0 it should be

exe_mod.linkLibrary(ffmpeg_dep.artifact("ffmpeg"));
exe_mod.addImport("ffmpeg", ffmpeg_dep.module("av"));

since exe's are created using

const exe_mod = b.createModule(.{
    .root_source_file = b.path("src/main.zig"),
    .target = target,
    .optimize = optimize,
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants