SCsub 625 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_jpg = env_modules.Clone()
  5. # Thirdparty source files
  6. # Not unbundled for now as they are not commonly available as shared library
  7. thirdparty_dir = "#thirdparty/jpeg-compressor/"
  8. thirdparty_sources = [
  9. "jpgd.cpp",
  10. ]
  11. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  12. env_jpg.Append(CPPPATH=[thirdparty_dir])
  13. env_thirdparty = env_jpg.Clone()
  14. env_thirdparty.disable_warnings()
  15. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  16. # Godot's own source files
  17. env_jpg.add_source_files(env.modules_sources, "*.cpp")