Skip to content

Commit

Permalink
CONFIGURE: Added fmtowns_pc98_audio as a component
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 26, 2024
1 parent d7a45e8 commit 4a70b35
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 14 deletions.
20 changes: 12 additions & 8 deletions audio/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ MODULE_OBJS := \
softsynth/opl/dbopl.o \
softsynth/opl/dosbox.o \
softsynth/opl/mame.o \
softsynth/fmtowns_pc98/pc98_audio.o \
softsynth/fmtowns_pc98/pcm_common.o \
softsynth/fmtowns_pc98/sega_audio.o \
softsynth/fmtowns_pc98/towns_audio.o \
softsynth/fmtowns_pc98/towns_euphony.o \
softsynth/fmtowns_pc98/towns_pc98_driver.o \
softsynth/fmtowns_pc98/towns_pc98_fmsynth.o \
softsynth/fmtowns_pc98/towns_pc98_plugins.o \
softsynth/appleiigs.o \
softsynth/fluidsynth.o \
softsynth/mt32.o \
Expand Down Expand Up @@ -102,6 +94,18 @@ MODULE_OBJS += \
alsa_opl.o
endif

ifdef USE_FMTOWNS_PC98_AUDIO
MODULE_OBJS += \
softsynth/fmtowns_pc98/pc98_audio.o \
softsynth/fmtowns_pc98/pcm_common.o \
softsynth/fmtowns_pc98/sega_audio.o \
softsynth/fmtowns_pc98/towns_audio.o \
softsynth/fmtowns_pc98/towns_euphony.o \
softsynth/fmtowns_pc98/towns_pc98_driver.o \
softsynth/fmtowns_pc98/towns_pc98_fmsynth.o \
softsynth/fmtowns_pc98/towns_pc98_plugins.o
endif

ifdef ENABLE_OPL2LPT
MODULE_OBJS += \
opl2lpt.o
Expand Down
2 changes: 2 additions & 0 deletions base/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ class StaticPluginProvider : public PluginProvider {
LINK_PLUGIN(AMIGA)
LINK_PLUGIN(APPLEIIGS)
LINK_PLUGIN(MACINTOSH)
#if defined(USE_FMTOWNS_PC98_AUDIO)
LINK_PLUGIN(TOWNS)
LINK_PLUGIN(PC98)
LINK_PLUGIN(SEGACD)
#endif
#if defined(USE_TIMIDITY)
LINK_PLUGIN(TIMIDITY)
#endif
Expand Down
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ _have_amd64=no
_imgui=yes
_indeo=auto
_hnm=auto
_fmtowns_pc98_audio=auto

# Add (virtual) features
add_feature 16bit "16bit color" "_16bit"
Expand All @@ -315,6 +316,7 @@ add_feature zlib "zlib" "_zlib"
add_feature test_cxx11 "Test C++11" "_test_cxx11"

# Components are features which may be disabled if unused by the engines
add_component fmtowns_pc98_audio "FM-TOWNS/PC98 audio" "_fmtowns_pc98_audio" "USE_FMTOWNS_PC98_AUDIO"
add_component hnm "HNM" "_hnm" "USE_HNM"
add_component imgui "Dear ImGui based debugger" "_imgui" "USE_IMGUI"
add_component indeo "Indeo" "_indeo" "USE_INDEO"
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/configure.engine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine agos "AGOS" yes "agos2" "AGOS 1 games" "" "mt32emu"
add_engine agos "AGOS" yes "agos2" "AGOS 1 games" "" "mt32emu fmtowns_pc98_audio"
add_engine agos2 "AGOS 2 games" yes "" "" "highres"
2 changes: 1 addition & 1 deletion engines/dgds/configure.engine
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine dgds "Dynamix Game Development System" yes "" "" "" "mt32emu"
add_engine dgds "Dynamix Game Development System" yes "" "" "" "mt32emu fmtowns_pc98_audio"
2 changes: 1 addition & 1 deletion engines/kyra/configure.engine
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine kyra "Kyra" yes "lol eob" "Legend of Kyrandia 1-3" "" "mt32emu"
add_engine kyra "Kyra" yes "lol eob" "Legend of Kyrandia 1-3" "" "mt32emu fmtowns_pc98_audio"
add_engine lol "Lands of Lore" yes
add_engine eob "Eye of the Beholder" yes
2 changes: 1 addition & 1 deletion engines/saga/configure.engine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine saga "SAGA" yes "ihnm" "ITE" "" "mt32emu"
add_engine saga "SAGA" yes "ihnm" "ITE" "" "mt32emu fmtowns_pc98_audio"
add_engine ihnm "IHNM" yes "" "" "highres"
2 changes: 1 addition & 1 deletion engines/sci/configure.engine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine sci "SCI" yes "sci32" "SCI 0-1.1 games" "" "mt32emu"
add_engine sci "SCI" yes "sci32" "SCI 0-1.1 games" "" "mt32emu fmtowns_pc98_audio"
add_engine sci32 "SCI32 games" yes "" "" "highres"
2 changes: 1 addition & 1 deletion engines/scumm/configure.engine
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] [components]
add_engine scumm "SCUMM" yes "scumm_7_8 he" "v0-v6 games" "" "mt32emu"
add_engine scumm "SCUMM" yes "scumm_7_8 he" "v0-v6 games" "" "mt32emu fmtowns_pc98_audio"
add_engine scumm_7_8 "v7 & v8 games" yes
add_engine he "HE71+ games" yes "" "" "highres bink"

0 comments on commit 4a70b35

Please sign in to comment.