Merge pull request #91906 from programneer/3.x-dont-splash-my-editor
[3.x] Don't define `NO_EDITOR_SPLASH` in export templates
This commit is contained in:
commit
41dcf218e6
3 changed files with 8 additions and 7 deletions
11
SConstruct
11
SConstruct
|
@ -363,11 +363,12 @@ if methods.get_cmdline_bool("fast_unsafe", env_base["target"] == "debug"):
|
||||||
if env_base["use_precise_math_checks"]:
|
if env_base["use_precise_math_checks"]:
|
||||||
env_base.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
|
env_base.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
|
||||||
|
|
||||||
if not env_base.File("#main/splash_editor.png").exists():
|
if env_base["tools"]:
|
||||||
# Force disabling editor splash if missing.
|
if not env_base.File("#main/splash_editor.png").exists():
|
||||||
env_base["no_editor_splash"] = True
|
# Force disabling editor splash if missing.
|
||||||
if env_base["no_editor_splash"]:
|
env_base["no_editor_splash"] = True
|
||||||
env_base.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
|
if env_base["no_editor_splash"]:
|
||||||
|
env_base.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
|
||||||
|
|
||||||
if not env_base["deprecated"]:
|
if not env_base["deprecated"]:
|
||||||
env_base.Append(CPPDEFINES=["DISABLE_DEPRECATED"])
|
env_base.Append(CPPDEFINES=["DISABLE_DEPRECATED"])
|
||||||
|
|
|
@ -23,7 +23,7 @@ env.add_source_files(env.main_sources, gensource)
|
||||||
env.Depends("#main/splash.gen.h", "#main/splash.png")
|
env.Depends("#main/splash.gen.h", "#main/splash.png")
|
||||||
env.CommandNoCache("#main/splash.gen.h", "#main/splash.png", run_in_subprocess(main_builders.make_splash))
|
env.CommandNoCache("#main/splash.gen.h", "#main/splash.png", run_in_subprocess(main_builders.make_splash))
|
||||||
|
|
||||||
if not env["no_editor_splash"]:
|
if env["tools"] and not env["no_editor_splash"]:
|
||||||
env.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
|
env.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
|
||||||
env.CommandNoCache(
|
env.CommandNoCache(
|
||||||
"#main/splash_editor.gen.h", "#main/splash_editor.png", run_in_subprocess(main_builders.make_splash_editor)
|
"#main/splash_editor.gen.h", "#main/splash_editor.png", run_in_subprocess(main_builders.make_splash_editor)
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
#include "editor/progress_dialog.h"
|
#include "editor/progress_dialog.h"
|
||||||
#include "editor/project_manager.h"
|
#include "editor/project_manager.h"
|
||||||
#include "editor/script_editor_debugger.h"
|
#include "editor/script_editor_debugger.h"
|
||||||
#ifndef NO_EDITOR_SPLASH
|
#if defined(TOOLS_ENABLED) && !defined(NO_EDITOR_SPLASH)
|
||||||
#include "main/splash_editor.gen.h"
|
#include "main/splash_editor.gen.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue