Code deduplication: move mod_loadfile() into ModCommon.cxx

This commit is contained in:
GrimReaperFloof
2021-05-11 20:05:26 +02:00
parent 541c31c879
commit fec6aac0f1
2 changed files with 7 additions and 59 deletions

View File

@@ -111,7 +111,10 @@ endif
libopenmpt_dep = dependency('libopenmpt', required: get_option('openmpt'))
decoder_features.set('ENABLE_OPENMPT', libopenmpt_dep.found())
if libopenmpt_dep.found()
decoder_plugins_sources += 'OpenmptDecoderPlugin.cxx'
decoder_plugins_sources += [
'OpenmptDecoderPlugin.cxx',
'ModCommon.cxx'
]
endif
libmpcdec_dep = c_compiler.find_library('mpcdec', required: get_option('mpcdec'))