SCsub 628 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. Import("env")
  3. import glob
  4. import editor_theme_builders
  5. # Fonts
  6. flist = glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.ttf")
  7. flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.otf"))
  8. flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.woff"))
  9. flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.woff2"))
  10. flist.sort()
  11. env.Depends("#editor/themes/builtin_fonts.gen.h", flist)
  12. env.CommandNoCache(
  13. "#editor/themes/builtin_fonts.gen.h",
  14. flist,
  15. env.Run(editor_theme_builders.make_fonts_header),
  16. )
  17. env.add_source_files(env.editor_sources, "*.cpp")