2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
Import("env")
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2020-06-16 18:34:48 +00:00
|
|
|
from platform_methods import run_in_subprocess
|
|
|
|
import default_theme_builders
|
2021-12-30 16:22:06 +00:00
|
|
|
import default_theme_icons_builders
|
2020-06-16 18:34:48 +00:00
|
|
|
|
2016-10-30 17:57:40 +00:00
|
|
|
env.add_source_files(env.scene_sources, "*.cpp")
|
2020-06-16 18:34:48 +00:00
|
|
|
|
|
|
|
env.Depends("#scene/resources/default_theme/default_font.gen.h", "#thirdparty/fonts/OpenSans_SemiBold.ttf")
|
|
|
|
env.CommandNoCache(
|
|
|
|
"#scene/resources/default_theme/default_font.gen.h",
|
|
|
|
"#thirdparty/fonts/OpenSans_SemiBold.ttf",
|
|
|
|
run_in_subprocess(default_theme_builders.make_fonts_header),
|
|
|
|
)
|
2021-12-30 16:22:06 +00:00
|
|
|
|
|
|
|
env["BUILDERS"]["MakeDefaultThemeIconsBuilder"] = Builder(
|
|
|
|
action=env.Run(
|
|
|
|
default_theme_icons_builders.make_default_theme_icons_action, "Generating default project theme icons header."
|
|
|
|
),
|
|
|
|
suffix=".h",
|
|
|
|
src_suffix=".svg",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Default theme icons
|
|
|
|
icon_sources = Glob("*.svg")
|
|
|
|
|
|
|
|
env.Alias(
|
|
|
|
"default_theme_icons",
|
|
|
|
[env.MakeDefaultThemeIconsBuilder("#scene/resources/default_theme/default_theme_icons.gen.h", icon_sources)],
|
|
|
|
)
|