SCsub 960 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python
  2. Import("env")
  3. from platform_methods import run_in_subprocess
  4. import default_theme_builders
  5. import default_theme_icons_builders
  6. env.add_source_files(env.scene_sources, "*.cpp")
  7. env.Depends("#scene/resources/default_theme/default_font.gen.h", "#thirdparty/fonts/OpenSans_SemiBold.woff2")
  8. env.CommandNoCache(
  9. "#scene/resources/default_theme/default_font.gen.h",
  10. "#thirdparty/fonts/OpenSans_SemiBold.woff2",
  11. run_in_subprocess(default_theme_builders.make_fonts_header),
  12. )
  13. env["BUILDERS"]["MakeDefaultThemeIconsBuilder"] = Builder(
  14. action=env.Run(
  15. default_theme_icons_builders.make_default_theme_icons_action, "Generating default project theme icons header."
  16. ),
  17. suffix=".h",
  18. src_suffix=".svg",
  19. )
  20. # Default theme icons
  21. icon_sources = Glob("*.svg")
  22. env.Alias(
  23. "default_theme_icons",
  24. [env.MakeDefaultThemeIconsBuilder("#scene/resources/default_theme/default_theme_icons.gen.h", icon_sources)],
  25. )