mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Don't define NO_EDITOR_SPLASH in export templates
This commit is contained in:
parent
bdc0316217
commit
efaba30116
15
SConstruct
15
SConstruct
@ -492,14 +492,15 @@ if methods.get_cmdline_bool("fast_unsafe", env.dev_build):
|
|||||||
if env["use_precise_math_checks"]:
|
if env["use_precise_math_checks"]:
|
||||||
env.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
|
env.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
|
||||||
|
|
||||||
if env.editor_build and env["engine_update_check"]:
|
if env.editor_build:
|
||||||
env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"])
|
if env["engine_update_check"]:
|
||||||
|
env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"])
|
||||||
|
|
||||||
if not env.File("#main/splash_editor.png").exists():
|
if not env.File("#main/splash_editor.png").exists():
|
||||||
# Force disabling editor splash if missing.
|
# Force disabling editor splash if missing.
|
||||||
env["no_editor_splash"] = True
|
env["no_editor_splash"] = True
|
||||||
if env["no_editor_splash"]:
|
if env["no_editor_splash"]:
|
||||||
env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
|
env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
|
||||||
|
|
||||||
if not env["deprecated"]:
|
if not env["deprecated"]:
|
||||||
env.Append(CPPDEFINES=["DISABLE_DEPRECATED"])
|
env.Append(CPPDEFINES=["DISABLE_DEPRECATED"])
|
||||||
|
@ -20,7 +20,7 @@ env_main.CommandNoCache(
|
|||||||
env.Run(main_builders.make_splash),
|
env.Run(main_builders.make_splash),
|
||||||
)
|
)
|
||||||
|
|
||||||
if not env_main["no_editor_splash"]:
|
if env_main.editor_build and not env_main["no_editor_splash"]:
|
||||||
env_main.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
|
env_main.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
|
||||||
env_main.CommandNoCache(
|
env_main.CommandNoCache(
|
||||||
"#main/splash_editor.gen.h",
|
"#main/splash_editor.gen.h",
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
#include "editor/project_manager.h"
|
#include "editor/project_manager.h"
|
||||||
#include "editor/register_editor_types.h"
|
#include "editor/register_editor_types.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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user