Building Windows Binary without Audio

When I build SDL2 for linux, I can configure it to be built without audio support.

But for Windows, it comes with a pre-made VisualC project file.

What is the recommended way to build SDL2 without audio?

The reason for not wanting audio is 2-fold:

  1. I use OpenAL for audio, so don’t need SDL2’s audio interface…
  2. SDL2 pulls in winmm.dll which is blacklisted by PEStudio malware checker. I would like to build it without winmm if possible.

As for #1, just don’t initialize SDL audio and you can use whatever other audio library you want.