SCsub 653 B

123456789101112131415161718192021222324
  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.Append(CPPPATH=[thirdparty_dir])
  11. env.Append(CPPFLAGS=['-DGLAD_ENABLED'])
  12. env.Append(CPPFLAGS=['-DGLES_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")