SCsub 657 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. Import("env")
  3. if env["platform"] in ["haiku", "macos", "windows", "linuxbsd"]:
  4. # Thirdparty source files
  5. thirdparty_dir = "#thirdparty/glad/"
  6. thirdparty_sources = [
  7. "gl.c",
  8. ]
  9. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  10. env.Prepend(CPPPATH=[thirdparty_dir])
  11. env.Append(CPPDEFINES=["GLAD_ENABLED"])
  12. env.Append(CPPDEFINES=["GLES_OVER_GL"])
  13. env_thirdparty = env.Clone()
  14. env_thirdparty.disable_warnings()
  15. env_thirdparty.add_source_files(env.drivers_sources, thirdparty_sources)
  16. # Godot source files
  17. env.add_source_files(env.drivers_sources, "*.cpp")