Can now compile OpenAL and MixSDL into the same binary. use '-a' to
enable OpenAL at runtime git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@655 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+12
-12
@@ -107,26 +107,26 @@ graphics_opengl_action() {
|
||||
}
|
||||
CHOICE_graphics_DEFAULT=opengl
|
||||
|
||||
CHOICE_sound_OPTIONS="openal mixsdl"
|
||||
CHOICE_sound_OPTIONS="mixsdl openal"
|
||||
CHOICE_sound_TITLE="Sound backend"
|
||||
CHOICE_sound_OPTION_openal_TITLE="Use OpenAL for sound (experimental)"
|
||||
CHOICE_sound_OPTION_openal_PRECOND="have_library openal"
|
||||
CHOICE_sound_OPTION_openal_ACTION=sound_openal_action
|
||||
sound_openal_action() {
|
||||
CFLAGS="$CFLAGS -DSOUNDMODULE_OPENAL"
|
||||
SOUNDMODULE=openal
|
||||
use_library openal
|
||||
use_library vorbisfile
|
||||
# use_library vorbis
|
||||
}
|
||||
CHOICE_sound_OPTION_mixsdl_TITLE="Use MixSDL for sound"
|
||||
CHOICE_sound_OPTION_mixsdl_ACTION=sound_mixsdl_action
|
||||
sound_mixsdl_action() {
|
||||
CFLAGS="$CFLAGS -DSOUNDMODULE_MIXSDL"
|
||||
CFLAGS="$CFLAGS -DSOUNDMODULE_SDL"
|
||||
SOUNDMODULE=mixsdl
|
||||
use_library vorbisfile
|
||||
# use_library vorbis
|
||||
}
|
||||
CHOICE_sound_OPTION_openal_TITLE="Include OpenAL support (experimental)"
|
||||
CHOICE_sound_OPTION_openal_PRECOND="have_library openal"
|
||||
CHOICE_sound_OPTION_openal_ACTION=sound_openal_action
|
||||
sound_openal_action() {
|
||||
CFLAGS="$CFLAGS -DHAVE_OPENAL -DSOUNDMODULE_SDL"
|
||||
SOUNDMODULE=openal
|
||||
use_library openal
|
||||
use_library vorbisfile
|
||||
# use_library vorbis
|
||||
}
|
||||
CHOICE_sound_DEFAULT=mixsdl
|
||||
|
||||
CHOICE_link_OPTIONS="static dynamic"
|
||||
|
||||
Reference in New Issue
Block a user