SCsub 937 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_recast = env_modules.Clone()
  5. # Thirdparty source files
  6. if env['builtin_recast']:
  7. thirdparty_dir = "#thirdparty/recastnavigation/Recast/"
  8. thirdparty_sources = [
  9. "Source/Recast.cpp",
  10. "Source/RecastAlloc.cpp",
  11. "Source/RecastArea.cpp",
  12. "Source/RecastAssert.cpp",
  13. "Source/RecastContour.cpp",
  14. "Source/RecastFilter.cpp",
  15. "Source/RecastLayers.cpp",
  16. "Source/RecastMesh.cpp",
  17. "Source/RecastMeshDetail.cpp",
  18. "Source/RecastRasterization.cpp",
  19. "Source/RecastRegion.cpp",
  20. ]
  21. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  22. env_recast.Append(CPPPATH=[thirdparty_dir + "/Include"])
  23. env_thirdparty = env_recast.Clone()
  24. env_thirdparty.disable_warnings()
  25. env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
  26. # Godot source files
  27. env_recast.add_source_files(env.modules_sources, "*.cpp")