Skip to content

feat(compat.sdl3): switches no-render and no-hidapi for 3.4.18 (revision 1) - #827

Merged
Sunrisepeak merged 1 commit into
mainfrom
compat-sdl3-subsystem-switches
Nov 18, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
compat-sdl3-subsystem-switches

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Two features, off by default, so the default build is the one it was: each sets
an upstream *DISABLED define at the end of the generated SDL_build_config.h,
after every platform's config (MCPP_FEATURE
is defined for the
package's own units).

  • no-render: SDL_RENDER_DISABLED, the 2D renderer and its back ends
  • no-hidapi: SDL_HIDAPI_DISABLED, and SDL_JOYSTICK_HIDAPI undefined, so
    HIDAPI's game-controller drivers go (evdev's joystick path stays)

3.4.18's packaging is revision 1 with floor 1: the generated header is part of
the installed payload, so installed copies are replaced to take the switches.

Measured on Linux x64 (GCC 16, -O3) in a program on SDL_GPU and SDL_Renderer
loading 18,473,342 bytes: no-hidapi 18,226,585 (-246,757), its window, input
and GPU tests passing; both switches 17,998,177 (-475,165). With no-render,
SDL_CreateRenderer reports "SDL not built with rendering support".

…ion 1)

Two features, off by default, so the default build is the one it was: each sets
an upstream *_DISABLED define at the end of the generated SDL_build_config.h,
after every platform's config (MCPP_FEATURE_<NAME> is defined for the
package's own units).

- no-render: SDL_RENDER_DISABLED, the 2D renderer and its back ends
- no-hidapi: SDL_HIDAPI_DISABLED, and SDL_JOYSTICK_HIDAPI undefined, so
  HIDAPI's game-controller drivers go (evdev's joystick path stays)

3.4.18's packaging is revision 1 with floor 1: the generated header is part of
the installed payload, so installed copies are replaced to take the switches.

Measured on Linux x64 (GCC 16, -O3) in a program on SDL_GPU and SDL_Renderer
loading 18,473,342 bytes: no-hidapi 18,226,585 (-246,757), its window, input
and GPU tests passing; both switches 17,998,177 (-475,165). With no-render,
SDL_CreateRenderer reports "SDL not built with rendering support".
@Sunrisepeak
Sunrisepeak merged commit 28dbde1 into main Nov 18, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant