Made FluidSynth stuff optional (FLUIDSYNTH=n Makefile preamble option.)

This commit is contained in:
waltje
2017-08-08 22:51:47 -04:00
parent 4b5be4f2f6
commit 5a343c4111
4 changed files with 31 additions and 19 deletions

View File

@@ -8,7 +8,7 @@
# #
# Modified Makefile for Win32 (MinGW32) environment. # Modified Makefile for Win32 (MinGW32) environment.
# #
# Version: @(#)Makefile.mingw 1.0.33 2017/08/08 # Version: @(#)Makefile.mingw 1.0.34 2017/08/09
# #
# Authors: Miran Grca, <mgrca8@gmail.com> # Authors: Miran Grca, <mgrca8@gmail.com>
# Fred N. van Kempen, <decwiz@yahoo.com> # Fred N. van Kempen, <decwiz@yahoo.com>
@@ -55,6 +55,9 @@ endif
ifndef DEV_BRANCH ifndef DEV_BRANCH
DEV_BRANCH = n DEV_BRANCH = n
endif endif
ifndef FLUIDSYNTH
FLUIDSYNTH = y
endif
ifndef X64 ifndef X64
X64 = n X64 = n
endif endif
@@ -124,7 +127,10 @@ ifeq ($(VRAMDUMP), y)
CFLAGS += -DENABLE_VRAM_DUMP CFLAGS += -DENABLE_VRAM_DUMP
RFLAGS += -DENABLE_VRAM_DUMP RFLAGS += -DENABLE_VRAM_DUMP
endif endif
ifeq ($(FLUIDSYNTH), y)
CFLAGS += -DUSE_FLUIDSYNTH
FSYNTHOBJ = midi_fluidsynth.o
endif
ifeq ($(X64), y) ifeq ($(X64), y)
PLATCG = codegen_x86-64.o PLATCG = codegen_x86-64.o
CGOPS = codegen_ops_x86-64.h CGOPS = codegen_ops_x86-64.h
@@ -213,8 +219,7 @@ SNDOBJ = sound.o \
wave6581_P_T.o wave6581_PS_.o wave6581_PST.o \ wave6581_P_T.o wave6581_PS_.o wave6581_PST.o \
wave8580__ST.o wave8580_P_T.o wave8580_PS_.o \ wave8580__ST.o wave8580_P_T.o wave8580_PS_.o \
wave8580_PST.o wave.o \ wave8580_PST.o wave.o \
midi.o \ midi.o $(FSYNTHOBJ) \
midi_fluidsynth.o \
midi_mt32.o \ midi_mt32.o \
Analog.o BReverbModel.o File.o FileStream.o LA32Ramp.o \ Analog.o BReverbModel.o File.o FileStream.o LA32Ramp.o \
LA32FloatWaveGenerator.o LA32WaveGenerator.o \ LA32FloatWaveGenerator.o LA32WaveGenerator.o \
@@ -325,8 +330,6 @@ pcap_if.res: pcap_if.rc
# Module dependencies. # Module dependencies.
# /
acer386sx.o: ibm.h cpu/cpu.h io.h device.h model.h acer386sx.o: ibm.h cpu/cpu.h io.h device.h model.h
ali1429.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h ali1429.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h

View File

@@ -8,7 +8,9 @@
#include "../WIN/plat_midi.h" #include "../WIN/plat_midi.h"
#include "../WIN/plat_ticks.h" #include "../WIN/plat_ticks.h"
#include "midi_fluidsynth.h" #ifdef USE_FLUIDSYNTH
# include "midi_fluidsynth.h"
#endif
#include "midi_mt32.h" #include "midi_mt32.h"
#include "midi_system.h" #include "midi_system.h"
@@ -25,7 +27,9 @@ typedef struct
static MIDI_DEVICE devices[] = static MIDI_DEVICE devices[] =
{ {
{"None", "none", NULL}, {"None", "none", NULL},
#ifdef USE_FLUIDSYNTH
{"FluidSynth", "fluidsynth", &fluidsynth_device}, {"FluidSynth", "fluidsynth", &fluidsynth_device},
#endif
{"Roland MT-32 Emulation", "mt32", &mt32_device}, {"Roland MT-32 Emulation", "mt32", &mt32_device},
{"Roland CM-32L Emulation", "cm32l", &cm32l_device}, {"Roland CM-32L Emulation", "cm32l", &cm32l_device},
{SYSTEM_MIDI_NAME, SYSTEM_MIDI_INTERNAL_NAME, &system_midi_device}, {SYSTEM_MIDI_NAME, SYSTEM_MIDI_INTERNAL_NAME, &system_midi_device},

View File

@@ -1,4 +1,6 @@
/* some code borrowed from scummvm */ /* some code borrowed from scummvm */
#ifdef USE_FLUIDSYNTH
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@@ -502,3 +504,6 @@ device_t fluidsynth_device =
NULL, NULL,
fluidsynth_config fluidsynth_config
}; };
#endif /*USE_FLUIDSYNTH*/

View File

@@ -8,7 +8,7 @@
* *
* Windows resource script. * Windows resource script.
* *
* Version: @(#)86Box.rc 1.0.4 2017/06/17 * Version: @(#)86Box.rc 1.0.5 2017/08/08
* *
* Authors: Miran Grca, <mgrca8@gmail.com> * Authors: Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com> * Fred N. van Kempen, <decwiz@yahoo.com>
@@ -844,16 +844,16 @@ BEGIN
IDS_2171 "Unable to initialize FluidSynth, make sure you have the following libraries\nin your 86Box folder:\n\nlibfluidsynth.dll\nlibglib-2.0-0.dll\nlibiconv-2.dll\nlibintl-8.dll\nlibpcre-1.dll" IDS_2171 "Unable to initialize FluidSynth, make sure you have the following libraries\nin your 86Box folder:\n\nlibfluidsynth.dll\nlibglib-2.0-0.dll\nlibiconv-2.dll\nlibintl-8.dll\nlibpcre-1.dll"
IDS_3072 "None" IDS_3072 "None"
IDS_3073 "[Bus] Logitech Bus mouse" IDS_3073 "[Bus] Logitech Bus Mouse"
IDS_3074 "[Bus] InPort mouse" IDS_3074 "[Bus] Microsoft Bus Mouse (InPort)"
IDS_3075 "[Serial] Mouse Systems mouse" IDS_3075 "[Serial] Mouse Systems Mouse"
IDS_3076 "[Serial] Microsoft 2-button mouse" IDS_3076 "[Serial] Microsoft 2-button Mouse"
IDS_3077 "[Serial] Logitech 3-button mouse" IDS_3077 "[Serial] Logitech 3-button Mouse"
IDS_3078 "[Serial] Microsoft wheel mouse" IDS_3078 "[Serial] Microsoft Wheel Mouse"
IDS_3079 "[PS/2] 2-button mouse" IDS_3079 "[PS/2] 2-button Mouse"
IDS_3080 "[PS/2] Microsoft Intellimouse" IDS_3080 "[PS/2] Microsoft Intellimouse"
IDS_3081 "[Proprietary] Amstrad mouse" IDS_3081 "[Proprietary] Amstrad Mouse"
IDS_3082 "[Proprietary] Olivetti M24 mouse" IDS_3082 "[Proprietary] Olivetti M24 Mouse"
IDS_4096 "Hard disk (%s)" IDS_4096 "Hard disk (%s)"
IDS_4097 "%01i:%01i" IDS_4097 "%01i:%01i"