SCsub 635 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_tinyexr = 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/tinyexr/"
  8. thirdparty_sources = [
  9. "tinyexr.cc",
  10. ]
  11. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  12. env_tinyexr.Append(CPPPATH=[thirdparty_dir])
  13. env_thirdparty = env_tinyexr.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_tinyexr.add_source_files(env.modules_sources, "*.cpp")