2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
Import("env")
|
2018-09-28 11:29:52 +00:00
|
|
|
|
2018-03-17 22:23:55 +00:00
|
|
|
import main_builders
|
2017-04-09 23:02:04 +00:00
|
|
|
|
2016-10-30 17:57:40 +00:00
|
|
|
env.main_sources = []
|
2019-07-22 11:57:39 +00:00
|
|
|
|
2020-07-26 13:53:01 +00:00
|
|
|
env_main = env.Clone()
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2020-07-26 13:53:01 +00:00
|
|
|
env_main.add_source_files(env.main_sources, "*.cpp")
|
2017-04-09 23:02:04 +00:00
|
|
|
|
2020-07-26 13:53:01 +00:00
|
|
|
if env["tests"]:
|
|
|
|
env_main.Append(CPPDEFINES=["TESTS_ENABLED"])
|
|
|
|
|
|
|
|
env_main.Depends("#main/splash.gen.h", "#main/splash.png")
|
2020-07-27 18:00:26 +00:00
|
|
|
env_main.CommandNoCache(
|
2020-08-21 15:40:43 +00:00
|
|
|
"#main/splash.gen.h",
|
|
|
|
"#main/splash.png",
|
|
|
|
env.Run(main_builders.make_splash, "Building splash screen header."),
|
2020-07-27 18:00:26 +00:00
|
|
|
)
|
2020-07-26 13:53:01 +00:00
|
|
|
|
2021-11-30 11:36:56 +00:00
|
|
|
if not env_main["no_editor_splash"]:
|
|
|
|
env_main.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
|
|
|
|
env_main.CommandNoCache(
|
|
|
|
"#main/splash_editor.gen.h",
|
|
|
|
"#main/splash_editor.png",
|
|
|
|
env.Run(main_builders.make_splash_editor, "Building editor splash screen header."),
|
|
|
|
)
|
2017-12-16 19:11:13 +00:00
|
|
|
|
2020-07-26 13:53:01 +00:00
|
|
|
env_main.Depends("#main/app_icon.gen.h", "#main/app_icon.png")
|
2020-07-27 18:00:26 +00:00
|
|
|
env_main.CommandNoCache(
|
2020-08-21 15:40:43 +00:00
|
|
|
"#main/app_icon.gen.h",
|
|
|
|
"#main/app_icon.png",
|
|
|
|
env.Run(main_builders.make_app_icon, "Building application icon."),
|
2020-07-27 18:00:26 +00:00
|
|
|
)
|
2017-04-09 23:02:04 +00:00
|
|
|
|
2020-07-26 13:53:01 +00:00
|
|
|
lib = env_main.add_library("main", env.main_sources)
|
2014-02-10 01:10:30 +00:00
|
|
|
env.Prepend(LIBS=[lib])
|