SCsub 926 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. Import('env')
  3. # Not building in a separate env as core needs it
  4. # Thirdparty source files
  5. if env['builtin_recast']:
  6. thirdparty_dir = "#thirdparty/recastnavigation/Recast/"
  7. thirdparty_sources = [
  8. "Source/Recast.cpp",
  9. "Source/RecastAlloc.cpp",
  10. "Source/RecastArea.cpp",
  11. "Source/RecastAssert.cpp",
  12. "Source/RecastContour.cpp",
  13. "Source/RecastFilter.cpp",
  14. "Source/RecastLayers.cpp",
  15. "Source/RecastMesh.cpp",
  16. "Source/RecastMeshDetail.cpp",
  17. "Source/RecastRasterization.cpp",
  18. "Source/RecastRegion.cpp",
  19. ]
  20. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  21. env.Append(CPPPATH=[thirdparty_dir, thirdparty_dir + "/Include"])
  22. lib = env.add_library("recast_builtin", thirdparty_sources)
  23. env.Append(LIBS=[lib])
  24. # Godot source files
  25. env.add_source_files(env.modules_sources, "*.cpp")
  26. env.Append(CCFLAGS=['-DRECAST_ENABLED'])
  27. Export('env')