Skip to content
Merged
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
34 changes: 27 additions & 7 deletions pkgs/c/compat.sdl3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ package = {
sha256 = "c4b08b950bd29d83caae0ab8d884298d27046a9d30700fb42841c50992665c90",
-- 1: the switches no-render and no-hidapi, read at the top of
-- the generated SDL_build_config.h (installed copies take them).
revision = 1,
floor = 1,
-- 2: the switch no-render-accelerated, beside them.
revision = 2,
floor = 2,
},
},
macosx = {
Expand All @@ -204,8 +205,9 @@ package = {
sha256 = "c4b08b950bd29d83caae0ab8d884298d27046a9d30700fb42841c50992665c90",
-- 1: the switches no-render and no-hidapi, read at the top of
-- the generated SDL_build_config.h (installed copies take them).
revision = 1,
floor = 1,
-- 2: the switch no-render-accelerated, beside them.
revision = 2,
floor = 2,
},
},
windows = {
Expand All @@ -222,8 +224,9 @@ package = {
sha256 = "c4b08b950bd29d83caae0ab8d884298d27046a9d30700fb42841c50992665c90",
-- 1: the switches no-render and no-hidapi, read at the top of
-- the generated SDL_build_config.h (installed copies take them).
revision = 1,
floor = 1,
-- 2: the switch no-render-accelerated, beside them.
revision = 2,
floor = 2,
},
},
},
Expand Down Expand Up @@ -868,7 +871,8 @@ typedef unsigned int uintptr_t;

#endif /* platform config */

/* The package's switches (features `no-render`, `no-hidapi`), after every
/* The package's switches (features `no-render`, `no-hidapi`,
`no-render-accelerated`), after every
platform's config so they win over its defines: mcpp defines
MCPP_FEATURE_<NAME> for this package's own units when one is on. */
#ifdef MCPP_FEATURE_NO_RENDER
Expand All @@ -878,6 +882,16 @@ typedef unsigned int uintptr_t;
#define SDL_HIDAPI_DISABLED 1
#undef SDL_JOYSTICK_HIDAPI
#endif
#ifdef MCPP_FEATURE_NO_RENDER_ACCELERATED
#undef SDL_VIDEO_RENDER_D3D
#undef SDL_VIDEO_RENDER_D3D11
#undef SDL_VIDEO_RENDER_D3D12
#undef SDL_VIDEO_RENDER_GPU
#undef SDL_VIDEO_RENDER_METAL
#undef SDL_VIDEO_RENDER_VULKAN
#undef SDL_VIDEO_RENDER_OGL
#undef SDL_VIDEO_RENDER_OGL_ES2
#endif

#endif /* SDL_build_config_h_ */
]==],
Expand Down Expand Up @@ -962,9 +976,15 @@ typedef unsigned int uintptr_t;
-- surfaces and events stay
-- no-hidapi HIDAPI's game-controller drivers (the evdev joystick
-- path stays)
-- no-render-accelerated the 2D renderer's accelerated back ends
-- (Direct3D, Metal, Vulkan, OpenGL, OpenGL ES 2 and the
-- one over SDL_GPU): SDL_Renderer keeps its software
-- back end, presenting through the window's surface;
-- SDL_GPU itself stays for a program that uses it
features = {
["no-render"] = {},
["no-hidapi"] = {},
["no-render-accelerated"] = {},
},

linux = {
Expand Down
Loading