| 1 | #!/usr/bin/env python |
| 2 | from misc.utility.scons_hints import * |
| 3 | |
| 4 | Import("env") |
| 5 | |
| 6 | import os |
| 7 | |
| 8 | import editor_icons_builders |
| 9 | |
| 10 | # Editor's own icons |
| 11 | icon_sources = Glob("*.svg") |
| 12 | |
| 13 | # Module icons |
| 14 | for path in env.module_icons_paths: |
| 15 | if not os.path.isabs(path): |
| 16 | icon_sources += Glob(f"#{path}/*.svg") # Built-in. |
| 17 | else: |
| 18 | icon_sources += Glob(f"{path}/*.svg") # Custom. |
| 19 | |
| 20 | env.CommandNoCache( |
| 21 | "#editor/themes/editor_icons.gen.h", |
| 22 | icon_sources, |
| 23 | env.Run(editor_icons_builders.make_editor_icons_action), |
| 24 | ) |