summaryrefslogtreecommitdiff
path: root/modules/dlscript/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dlscript/SCsub')
-rw-r--r--modules/dlscript/SCsub14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/dlscript/SCsub b/modules/dlscript/SCsub
new file mode 100644
index 0000000000..ac13319a1d
--- /dev/null
+++ b/modules/dlscript/SCsub
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+Import('env')
+
+env.add_source_files(env.modules_sources, "*.cpp")
+env.add_source_files(env.modules_sources, "godot/*.cpp")
+
+env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
+
+if "platform" in env and env["platform"] == "x11": # there has to be a better solution?
+ env.Append(LINKFLAGS=["-rdynamic"])
+env.use_ptrcall = True
+
+Export('env')