Merge pull request #32365 from Xrayez/scons-no-tests-release
SCons: do not build tests with tools=no
This commit is contained in:
commit
d1ecc15c11
|
@ -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.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))
|
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)
|
lib = env.add_library("main", env.main_sources)
|
||||||
env.Prepend(LIBS=[lib])
|
env.Prepend(LIBS=[lib])
|
||||||
|
|
|
@ -1457,12 +1457,11 @@ bool Main::start() {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (test != "") {
|
if (test != "") {
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
main_loop = test_main(test, args);
|
main_loop = test_main(test, args);
|
||||||
|
|
||||||
if (!main_loop)
|
if (!main_loop)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else if (script != "") {
|
} else if (script != "") {
|
||||||
|
|
Loading…
Reference in New Issue