blob: b516e840485171e654c06e48f2e0cb76a41ca342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
const build_config = @import("build_config");
pub usingnamespace @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");
}
if (build_config.have_renderdoc) {
@cInclude("dlfcn.h");
@cInclude("renderdoc_app.h");
@cDefine("GLFW_EXPOSE_NATIVE_EGL", "1");
@cDefine("GLFW_EXPOSE_NATIVE_WAYLAND", "1");
@cInclude("GLFW/glfw3native.h");
}
});
|