aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2018-04-07 12:21:43 +0200
committerEugene Sandulenko2018-04-07 12:22:18 +0200
commit52fc7e34d87883c65ed99d8b8bdcc8269a0a9122 (patch)
tree75b48d81410455efc2b437978cc3d114cfeb4ea5
parent00e8bc1945ee0727bb77a8e48f8a20edb0619068 (diff)
downloadscummvm-rg350-52fc7e34d87883c65ed99d8b8bdcc8269a0a9122.tar.gz
scummvm-rg350-52fc7e34d87883c65ed99d8b8bdcc8269a0a9122.tar.bz2
scummvm-rg350-52fc7e34d87883c65ed99d8b8bdcc8269a0a9122.zip
CONFIGURE: Do not even try to build Nuked OPL when disabled
-rw-r--r--audio/module.mk8
-rw-r--r--audio/softsynth/opl/nuked.cpp2
-rwxr-xr-xconfigure21
3 files changed, 20 insertions, 11 deletions
diff --git a/audio/module.mk b/audio/module.mk
index 58951d4021..4f296ba0e1 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 7e1e9f2809..270263f6ae 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 a6dd166da2..650b1f6189 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