SCsub 585 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. Import('env')
  3. if (env["platform"] in ["haiku", "osx", "windows", "x11"]):
  4. # Thirdparty source files
  5. thirdparty_dir = "#thirdparty/glad/"
  6. thirdparty_sources = [
  7. "glad.c",
  8. ]
  9. thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
  10. env.add_source_files(env.drivers_sources, thirdparty_sources)
  11. env.Append(CPPPATH=[thirdparty_dir])
  12. env.Append(CPPFLAGS=['-DGLAD_ENABLED'])
  13. env.Append(CPPFLAGS=['-DGLES_OVER_GL'])
  14. # Godot source files
  15. env.add_source_files(env.drivers_sources, "*.cpp")
  16. Export('env')