SCsub 810 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_squish = env_modules.Clone()
  5. # Thirdparty source files
  6. if env['builtin_squish']:
  7. thirdparty_dir = "#thirdparty/squish/"
  8. thirdparty_sources = [
  9. "alpha.cpp",
  10. "clusterfit.cpp",
  11. "colourblock.cpp",
  12. "colourfit.cpp",
  13. "colourset.cpp",
  14. "maths.cpp",
  15. "rangefit.cpp",
  16. "singlecolourfit.cpp",
  17. "squish.cpp",
  18. ]
  19. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  20. env_squish.Append(CPPPATH=[thirdparty_dir])
  21. env_thirdparty = env_squish.Clone()
  22. env_thirdparty.disable_warnings()
  23. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  24. # Godot source files
  25. env_squish.add_source_files(env.modules_sources, "*.cpp")