Removing SDL 1.3 subsystems

View: New views
2 Messages — Rating Filter:   Alert me  

Removing SDL 1.3 subsystems

by Sigvatr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Removing SDL 1.3 subsystems

by Kenneth Bull :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/30 Sigvatr <me@...>:
> 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.
_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org