[]
package=sound
input=*
stormUsingNamespace=storm

# No includes for these. They may refer to files in libraries that are not present.
noIncludes+=vorbis.h
noIncludes+=flac.h

[!nostatic]
include+=../SoundLib/ogg/include/
include+=../SoundLib/vorbis/include/
include+=../SoundLib/flac/include/
include+=../SoundLib/mpg123/src/libmpg123/
include+=../SoundLib/

#flags+=/d1reportSingleClassLayoutGradientStop

[unix,!nostatic]
# Specify the name, so that it works if the "openal.so"-link is missing...
library+=:libopenal.so.1

flags+=-I../SoundLib/include/
flags+=-I../SoundLib/mpg123/src/libmpg123/
flags+=-I../SoundLib/ogg/include/

# Otherwise, GCC reports OV_CALLBACKS_STREAMONLY etc. inside vorbisfile.h as not used.
flags+=-Wno-unused-variable

[unix,nostatic]

# This will make it so that SoundLib is not built or linked.
noIncludes+=mpg123.h

library+=openal
library+=mpg123
library+=vorbisfile
library+=FLAC

#Not needed, depended on by vorbisfile
#library+=ogg
#library+=vorbis

