aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.zig
blob: 54c156eeb7e72bab6fea24d2b650842bebc17039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const build_config = @import("build_config");

pub usingnamespace @cImport({
    @cInclude("epoxy/gl.h");
    @cInclude("GLFW/glfw3.h");
    @cInclude("yaml.h");
    @cInclude("lo/lo.h");

    if (build_config.have_ffmpeg) {
        @cInclude("libavcodec/avcodec.h");
        @cInclude("libavformat/avformat.h");
        @cInclude("libswscale/swscale.h");
    }

    if (build_config.have_hap) {
        @cInclude("hap.h");
    }
});