aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtaudio/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde2016-10-13 20:58:40 +0200
committerRémi Verschelde2016-10-30 14:51:33 +0100
commit4ff4177accb21b76ecccc7df4b3e01fd50d4873c (patch)
tree00da7c67de55e8b5f4e67ba2f0485560f5ad5040 /drivers/rtaudio/SCsub
parentc8a97c36781d633b20e52579993aaadb9122a94b (diff)
downloadgodot-4ff4177accb21b76ecccc7df4b3e01fd50d4873c.tar.gz
godot-4ff4177accb21b76ecccc7df4b3e01fd50d4873c.tar.zst
godot-4ff4177accb21b76ecccc7df4b3e01fd50d4873c.zip
rtaudio: Split thirdparty files
(cherry picked from commit 8981ff8a84e8cc6967afe3a11613e7d72d8ac599)
Diffstat (limited to 'drivers/rtaudio/SCsub')
-rw-r--r--drivers/rtaudio/SCsub18
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/rtaudio/SCsub b/drivers/rtaudio/SCsub
index 6699efef7..836c84c43 100644
--- a/drivers/rtaudio/SCsub
+++ b/drivers/rtaudio/SCsub
@@ -1,4 +1,18 @@
Import('env')
-Export('env');
-env.add_source_files(env.drivers_sources,"*.cpp")
+# Not cloning the env, the includes need to be accessible for platform/
+
+# Thirdparty source files
+thirdparty_dir = "#thirdparty/rtaudio/"
+thirdparty_sources = [
+ "RtAudio.cpp",
+]
+thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
+
+env.add_source_files(env.drivers_sources, thirdparty_sources)
+env.Append(CPPPATH = [thirdparty_dir])
+
+# Driver source files
+env.add_source_files(env.drivers_sources, "*.cpp")
+
+Export('env')