SCsub 667 B

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