summaryrefslogtreecommitdiffstats
path: root/modules/minimp3/SCsub
diff options
context:
space:
mode:
authorIthamar R. Adema <ithamar@game3dee.com>2023-02-05 10:58:35 +0100
committerIthamar R. Adema <ithamar@upgrade-android.com>2023-09-30 21:46:59 +0200
commit36ff0591f2960726c6563e3af4d6ca5faf0a4a0d (patch)
tree23e9c34593266b1107ac90253e024c7fbcd1ef5f /modules/minimp3/SCsub
parent0ca8542329888e8dccba89d59d3b728090c29991 (diff)
downloadredot-engine-36ff0591f2960726c6563e3af4d6ca5faf0a4a0d.tar.gz
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>
Diffstat (limited to 'modules/minimp3/SCsub')
-rw-r--r--modules/minimp3/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/minimp3/SCsub b/modules/minimp3/SCsub
index 20e3165f38..09e84f71e9 100644
--- a/modules/minimp3/SCsub
+++ b/modules/minimp3/SCsub
@@ -13,5 +13,8 @@ if not env.msvc:
else:
env_minimp3.Prepend(CPPPATH=[thirdparty_dir])
+if not env["minimp3_extra_formats"]:
+ env_minimp3.Append(CPPDEFINES=["MINIMP3_ONLY_MP3"])
+
# Godot source files
env_minimp3.add_source_files(env.modules_sources, "*.cpp")