2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-05-13 17:10:00 +02:00
|
|
|
Import('env')
|
2018-09-28 13:29:52 +02:00
|
|
|
|
2018-03-17 23:23:55 +01:00
|
|
|
from platform_methods import run_in_subprocess
|
|
|
|
import editor_icons_builders
|
2016-10-30 19:05:14 +01:00
|
|
|
|
2018-03-17 23:23:55 +01:00
|
|
|
make_editor_icons_builder = Builder(action=run_in_subprocess(editor_icons_builders.make_editor_icons_action),
|
2017-08-19 04:34:09 +02:00
|
|
|
suffix='.h',
|
|
|
|
src_suffix='.svg')
|
2018-03-17 23:23:55 +01:00
|
|
|
|
2016-10-30 18:57:40 +01:00
|
|
|
env['BUILDERS']['MakeEditorIconsBuilder'] = make_editor_icons_builder
|
2019-06-28 22:42:26 +02:00
|
|
|
|
|
|
|
# Editor's own icons
|
|
|
|
icon_sources = Glob("*.svg")
|
|
|
|
|
|
|
|
# Module icons
|
|
|
|
for module_icons in env.module_icons_paths:
|
|
|
|
icon_sources += Glob('#' + module_icons + "/*.svg")
|
|
|
|
|
|
|
|
env.Alias('editor_icons', [env.MakeEditorIconsBuilder('#editor/editor_icons.gen.h', icon_sources)])
|