SCsub 702 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_pvr = env_modules.Clone()
  5. # Thirdparty source files
  6. # Not unbundled so far since not widespread as shared library
  7. thirdparty_dir = "#thirdparty/pvrtccompressor/"
  8. thirdparty_sources = [
  9. "BitScale.cpp",
  10. "MortonTable.cpp",
  11. "PvrTcDecoder.cpp",
  12. "PvrTcEncoder.cpp",
  13. "PvrTcPacket.cpp",
  14. ]
  15. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  16. env_pvr.Append(CPPPATH=[thirdparty_dir])
  17. env_thirdparty = env_pvr.Clone()
  18. env_thirdparty.disable_warnings()
  19. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  20. # Godot source files
  21. env_pvr.add_source_files(env.modules_sources, "*.cpp")