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

pub const c = @cImport({
    @cInclude("epoxy/gl.h");
    @cInclude("GLFW/glfw3.h");
    @cInclude("lo/lo.h");

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

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

    if (build_config.have_tsv) {
        @cInclude("texture_share_gl/texture_share_gl_client.h");
    }
});