diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-03-05 17:12:36 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-05 17:35:57 +0000 |
| commit | a514ba9eebd9316136c45ae6396b4ca6984b6859 (patch) | |
| tree | 06bf0f85c721a4c954a563fdc4bb6a7d540f58e6 /src/c.zig | |
| parent | fix shader reloading wrt Textures (diff) | |
| download | glsl-view-a514ba9eebd9316136c45ae6396b4ca6984b6859.tar.gz glsl-view-a514ba9eebd9316136c45ae6396b4ca6984b6859.zip | |
allow disabling texture/ffmpeg support at build time
Diffstat (limited to 'src/c.zig')
| -rw-r--r-- | src/c.zig | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,10 +1,14 @@ +const build_config = @import("build_config"); + pub usingnamespace @cImport({ @cInclude("epoxy/gl.h"); @cInclude("GLFW/glfw3.h"); @cInclude("yaml.h"); @cInclude("lo/lo.h"); - @cInclude("lo/lo.h"); - @cInclude("libavcodec/avcodec.h"); - @cInclude("libavformat/avformat.h"); - @cInclude("libswscale/swscale.h"); + + if (build_config.have_ffmpeg) { + @cInclude("libavcodec/avcodec.h"); + @cInclude("libavformat/avformat.h"); + @cInclude("libswscale/swscale.h"); + } }); |
