SCsub 802 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. "easing_equations.cpp",
  9. # C sources
  10. "mikktspace.c",
  11. ]
  12. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  13. env_thirdparty = env.Clone()
  14. env_thirdparty.disable_warnings()
  15. env_thirdparty.add_source_files(env.scene_sources, thirdparty_sources)
  16. # Godot's own sources
  17. env.add_source_files(env.scene_sources, "*.cpp")
  18. # Chain load SCsubs
  19. SConscript('main/SCsub')
  20. SConscript('gui/SCsub')
  21. SConscript('3d/SCsub')
  22. SConscript('2d/SCsub')
  23. SConscript('animation/SCsub')
  24. SConscript('audio/SCsub')
  25. SConscript('resources/SCsub')
  26. # Build it all as a library
  27. lib = env.add_library("scene", env.scene_sources)
  28. env.Prepend(LIBS=[lib])