summaryrefslogtreecommitdiff
path: root/modules/vorbis
diff options
context:
space:
mode:
Diffstat (limited to 'modules/vorbis')
-rw-r--r--modules/vorbis/SCsub19
1 files changed, 11 insertions, 8 deletions
diff --git a/modules/vorbis/SCsub b/modules/vorbis/SCsub
index 5427348c39..f3dbc893fc 100644
--- a/modules/vorbis/SCsub
+++ b/modules/vorbis/SCsub
@@ -1,10 +1,12 @@
Import('env')
Import('env_modules')
+env_vorbis = env_modules.Clone()
+
# Thirdparty source files
if (env["libvorbis"] != "system"): # builtin
thirdparty_dir = "#thirdparty/libvorbis/"
- thirdparty_libvorbis_sources = [
+ thirdparty_sources = [
#"analysis.c",
#"barkmel.c",
"bitrate.c",
@@ -32,13 +34,14 @@ if (env["libvorbis"] != "system"): # builtin
"window.c",
]
- thirdparty_libvorbis_sources = [thirdparty_dir + file for file in thirdparty_libvorbis_sources]
+ thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
- env_modules.add_source_files(env.modules_sources, thirdparty_libvorbis_sources)
- env_modules.Append(CPPPATH = [thirdparty_dir])
+ env_vorbis.add_source_files(env.modules_sources, thirdparty_sources)
+ env_vorbis.Append(CPPPATH = [thirdparty_dir])
-# Godot source files
-env_modules.add_source_files(env.modules_sources, "*.cpp")
+ # also requires libogg
+ if (env["libogg"] != "system"): # builtin
+ env_vorbis.Append(CPPPATH = ["#thirdparty/libogg"])
-Export('env_modules')
-Export('env')
+# Godot source files
+env_vorbis.add_source_files(env.modules_sources, "*.cpp")