Removing SDL 1.3 subsystems

Hi there,

I want to compile a special version of SDL for a project that I am working on that disables a number of features, notably:

  • Audio
  • Joystick
  • DirectX

I am using OpenGL for this project and it doesn’t require any of the above things.

I’ve gone into SDL_config_win32.h and commented out a number of #defines of things that I don’t want in my build, but I’m not convinced that I’ve stripped away everything I want.

Is there anything more I can do to make SDL smaller and faster without removing any of the features that I do need?

Cheers,

  • Sig

2009/10/30 Sigvatr :

Is there anything more I can do to make SDL smaller and faster without
removing any of the features that I do need?

You could start from SDL_config_minimal.h instead and add the features you need.
Or add the SDL_DISABLED and SDL_DRIVER_DUMMY defines listed there.