Add build option for MP1/MP2 audio format support.

Enabling this adds 3.5k to the template size (Win/64bits).

Co-authored-by: Riteo <riteo@posteo.net>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Ithamar R. Adema
2023-02-05 10:58:35 +01:00
committed by Ithamar R. Adema
parent 0ca8542329
commit 36ff0591f2
5 changed files with 17 additions and 2 deletions

View File

@ -375,6 +375,8 @@ for name, path in modules_detected.items():
else:
enabled = False
opts.Add(BoolVariable("module_" + name + "_enabled", "Enable module '%s'" % (name,), enabled))
# Add module-specific options.
try:
for opt in config.get_opts(selected_platform):
@ -384,7 +386,6 @@ for name, path in modules_detected.items():
sys.path.remove(path)
sys.modules.pop("config")
opts.Add(BoolVariable("module_" + name + "_enabled", "Enable module '%s'" % (name,), enabled))
methods.write_modules(modules_detected)