SCsub 700 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env python
  2. Import('env')
  3. env.scene_sources = []
  4. # Thirdparty code
  5. thirdparty_dir = "#thirdparty/misc/"
  6. thirdparty_sources = [
  7. # C sources
  8. "mikktspace.c",
  9. ]
  10. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  11. env.add_source_files(env.scene_sources, thirdparty_sources)
  12. # Godot's own sources
  13. env.add_source_files(env.scene_sources, "*.cpp")
  14. # Chain load SCsubs
  15. SConscript('main/SCsub')
  16. SConscript('gui/SCsub')
  17. SConscript('3d/SCsub')
  18. SConscript('2d/SCsub')
  19. SConscript('animation/SCsub')
  20. SConscript('audio/SCsub')
  21. SConscript('resources/SCsub')
  22. # Build it all as a library
  23. lib = env.Library("scene", env.scene_sources)
  24. env.Prepend(LIBS=[lib])
  25. Export('env')