Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SConscript 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import filecmp
  2. import os
  3. import subprocess
  4. from sys import executable as python_cmd
  5. Import('*')
  6. if env['platform'] == 'windows':
  7. SConscript('getopt/SConscript')
  8. SConscript('util/xmlpool/SConscript')
  9. SConscript('util/SConscript')
  10. SConscript('compiler/SConscript')
  11. if env['hostonly']:
  12. # We are just compiling the things necessary on the host for cross
  13. # compilation
  14. Return()
  15. def write_git_sha1_h_file(filename):
  16. """Mesa looks for a git_sha1.h file at compile time in order to display
  17. the current git hash id in the GL_VERSION string. This function tries
  18. to retrieve the git hashid and write the header file. An empty file
  19. will be created if anything goes wrong."""
  20. args = [ python_cmd, Dir('#').abspath + '/bin/git_sha1_gen.py', '--output', filename ]
  21. try:
  22. subprocess.call(args)
  23. except:
  24. print("Warning: exception in write_git_sha1_h_file()")
  25. return
  26. # Create the git_sha1.h header file
  27. write_git_sha1_h_file("git_sha1.h")
  28. # and update CPPPATH so the git_sha1.h header can be found
  29. env.Append(CPPPATH = ["#" + env['build_dir']])
  30. if env['platform'] != 'windows':
  31. SConscript('loader/SConscript')
  32. SConscript('mapi/glapi/gen/SConscript')
  33. SConscript('mapi/glapi/SConscript')
  34. # Haiku C++ libGL dispatch (renderers depend on libgl)
  35. if env['platform'] in ['haiku']:
  36. SConscript('hgl/SConscript')
  37. SConscript('mesa/SConscript')
  38. if not env['embedded']:
  39. if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'windows'):
  40. SConscript('glx/SConscript')
  41. if env['platform'] == 'haiku':
  42. SConscript('egl/SConscript')
  43. SConscript('gallium/SConscript')