mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
27 lines
656 B
Python
27 lines
656 B
Python
#!/usr/bin/env python
|
|
from misc.utility.scons_hints import *
|
|
|
|
Import("env")
|
|
|
|
import os
|
|
|
|
import editor_icons_builders
|
|
|
|
env["BUILDERS"]["MakeEditorIconsBuilder"] = Builder(
|
|
action=env.Run(editor_icons_builders.make_editor_icons_action),
|
|
suffix=".h",
|
|
src_suffix=".svg",
|
|
)
|
|
|
|
# Editor's own icons
|
|
icon_sources = Glob("*.svg")
|
|
|
|
# Module icons
|
|
for path in env.module_icons_paths:
|
|
if not os.path.isabs(path):
|
|
icon_sources += Glob("#" + path + "/*.svg") # Built-in.
|
|
else:
|
|
icon_sources += Glob(path + "/*.svg") # Custom.
|
|
|
|
env.Alias("editor_icons", [env.MakeEditorIconsBuilder("#editor/themes/editor_icons.gen.h", icon_sources)])
|