Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions image/c.c.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module image

$if !windows {
// SDL libs are loaded dynamically from Java on Android
$if !android || termux {
// sdl_no_compile_flags allow users to provide
// custom flags (e.g. via CFLAGS/LDFLAGS) for the compiler.
// This is especially useful when building/linking against a
// custom compiled version of the libs on *nix.
$if !sdl_no_compile_flags ? {
#flag -lSDL3_image
}
}
}

$if x64 {
#flag windows -L @VMODROOT/thirdparty/SDL3_image-3.2.0/lib/x64
} $else {
#flag windows -L @VMODROOT/thirdparty/SDL3_image-3.2.0/lib/x86
}
#flag windows -I @VMODROOT/thirdparty/SDL3_image-3.2.0/include/SDL3_image
#flag windows -lSDL3_image

#include <SDL_image.h>
Loading
Loading