summaryrefslogtreecommitdiff
path: root/main/SCsub
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-09-26 14:56:27 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-09-26 16:12:07 +0300
commit752debe204eed001f52109b2b83a2f606a42101d (patch)
tree1b1dfccb21861e079e808094c559a6149a769eda /main/SCsub
parent04032a94459ebb6a65930e4b37778e3e82323a19 (diff)
SCons: do not build tests with tools=no
This doesn't affect the resulting binary size, but allows to save a phew seconds during compilation if building export templates.
Diffstat (limited to 'main/SCsub')
-rw-r--r--main/SCsub3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SCsub b/main/SCsub
index 62bc155c67..73cec1d250 100644
--- a/main/SCsub
+++ b/main/SCsub
@@ -28,7 +28,8 @@ env.CommandNoCache("#main/splash_editor.gen.h", "#main/splash_editor.png", run_i
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))
-SConscript('tests/SCsub')
+if env["tools"]:
+ SConscript('tests/SCsub')
lib = env.add_library("main", env.main_sources)
env.Prepend(LIBS=[lib])