summaryrefslogtreecommitdiff
path: root/modules/gdscript/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-02 09:39:29 +0200
committerGitHub <noreply@github.com>2020-09-02 09:39:29 +0200
commit39228830ce726657d4b81a5eab0d68cf9530434d (patch)
treebfba93bc14d1ff1010f99daebc03946423c04d54 /modules/gdscript/SCsub
parent6e89d371cee27974ce73200d788522329900d517 (diff)
parent0cc05c5a31b6c6d3db76b5982f3f36919e137500 (diff)
Merge pull request #41355 from Xrayez/port-gdscript-tests
Port GDScript test/debugging tools
Diffstat (limited to 'modules/gdscript/SCsub')
-rw-r--r--modules/gdscript/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/SCsub b/modules/gdscript/SCsub
index e58a1d8edc..5c8cbdf869 100644
--- a/modules/gdscript/SCsub
+++ b/modules/gdscript/SCsub
@@ -17,3 +17,7 @@ if env["tools"]:
# Using a define in the disabled case, to avoid having an extra define
# in regular builds where all modules are enabled.
env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])
+
+if env["tests"]:
+ env_gdscript.Append(CPPDEFINES=["TESTS_ENABLED"])
+ env_gdscript.add_source_files(env.modules_sources, "./tests/*.cpp")