1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

SCons: Add tests option to enable or disable unit tests

This commit is contained in:
Andrii Doroshenko (Xrayez)
2020-07-25 16:59:30 +03:00
parent 5f75cec59e
commit f6465f46b4
6 changed files with 24 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ env.CommandNoCache(
env.Depends("#main/app_icon.gen.h", "#main/app_icon.png")
env.CommandNoCache("#main/app_icon.gen.h", "#main/app_icon.png", run_in_subprocess(main_builders.make_app_icon))
if env["tools"]:
if env["tests"]:
SConscript("tests/SCsub")
lib = env.add_library("main", env.main_sources)