summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/default_theme/SCsub')
-rw-r--r--scene/resources/default_theme/SCsub17
1 files changed, 17 insertions, 0 deletions
diff --git a/scene/resources/default_theme/SCsub b/scene/resources/default_theme/SCsub
index 3667ab7c14..f27bd9144e 100644
--- a/scene/resources/default_theme/SCsub
+++ b/scene/resources/default_theme/SCsub
@@ -4,6 +4,7 @@ Import("env")
from platform_methods import run_in_subprocess
import default_theme_builders
+import default_theme_icons_builders
env.add_source_files(env.scene_sources, "*.cpp")
@@ -13,3 +14,19 @@ env.CommandNoCache(
"#thirdparty/fonts/OpenSans_SemiBold.ttf",
run_in_subprocess(default_theme_builders.make_fonts_header),
)
+
+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)],
+)