[Scummvm-git-logs] scummvm master -> 52fc7e34d87883c65ed99d8b8bdcc8269a0a9122
sev-
sev at scummvm.org
Sat Apr 7 12:22:29 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
52fc7e34d8 CONFIGURE: Do not even try to build Nuked OPL when disabled
Commit: 52fc7e34d87883c65ed99d8b8bdcc8269a0a9122
https://github.com/scummvm/scummvm/commit/52fc7e34d87883c65ed99d8b8bdcc8269a0a9122
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-04-07T12:22:18+02:00
Commit Message:
CONFIGURE: Do not even try to build Nuked OPL when disabled
Changed paths:
audio/module.mk
audio/softsynth/opl/nuked.cpp
configure
diff --git a/audio/module.mk b/audio/module.mk
index 58951d4..4f296ba 100644
--- a/audio/module.mk
+++ b/audio/module.mk
@@ -46,7 +46,6 @@ MODULE_OBJS := \
softsynth/opl/dbopl.o \
softsynth/opl/dosbox.o \
softsynth/opl/mame.o \
- softsynth/opl/nuked.o \
softsynth/fmtowns_pc98/towns_audio.o \
softsynth/fmtowns_pc98/towns_euphony.o \
softsynth/fmtowns_pc98/towns_midi.o \
@@ -61,6 +60,13 @@ MODULE_OBJS := \
softsynth/sid.o \
softsynth/wave6581.o
+ifndef DISABLE_NUKED_OPL
+MODULE_OBJS += \
+ softsynth/opl/nuked.o
+endif
+
+
+
ifdef USE_ALSA
MODULE_OBJS += \
alsa_opl.o
diff --git a/audio/softsynth/opl/nuked.cpp b/audio/softsynth/opl/nuked.cpp
index 7e1e9f2..270263f 100644
--- a/audio/softsynth/opl/nuked.cpp
+++ b/audio/softsynth/opl/nuked.cpp
@@ -1485,4 +1485,4 @@ void OPL::generateSamples(int16*buffer, int length) {
}
}
-#endif // !DISABLE_NUKED_OPL
+#endif // !DISABLE_NUKED_OPL
diff --git a/configure b/configure
index a6dd166..650b1f6 100755
--- a/configure
+++ b/configure
@@ -368,14 +368,6 @@ define_in_config_h_if_yes() {
fi
}
-define_in_config_h_if_no() {
- if test "$1" = no ; then
- add_line_to_config_h "#define $2"
- else
- add_line_to_config_h "#undef $2"
- fi
-}
-
# Conditionally add definitions to config.h and config.mk. Takes two parameters:
# The first one can be set to 'yes' or 'no'. If 'yes' is used, then
# the line "#define $2" is added to config.h and "$2 = 1" to config.mk.
@@ -390,6 +382,16 @@ define_in_config_if_yes() {
fi
}
+define_in_config_if_no() {
+ if test "$1" = no ; then
+ add_line_to_config_h "#define $2"
+ add_line_to_config_mk "$2 = 1"
+ else
+ add_line_to_config_h "#undef $2"
+ add_line_to_config_mk "# $2 = 1"
+ fi
+}
+
#
# Determine sdl-config
#
@@ -2338,6 +2340,7 @@ case $_host_os in
append_var CXXFLAGS "-Wno-format"
add_line_to_config_mk 'AMIGAOS = 1'
_port_mk="backends/platform/sdl/amigaos/amigaos.mk"
+ _nuked_opl=no
;;
android)
case $_host in
@@ -3901,7 +3904,7 @@ define_in_config_if_yes "$_mt32emu" 'USE_MT32EMU'
#
# Check whether Nuked OPL emulator support is disabled
#
-define_in_config_h_if_no "$_nuked_opl" 'DISABLE_NUKED_OPL'
+define_in_config_if_no "$_nuked_opl" 'DISABLE_NUKED_OPL'
#
# Check whether 16bit color support is requested
More information about the Scummvm-git-logs
mailing list