Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SConstruct 751B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import os
  2. import os.path
  3. import sys
  4. env = Environment(
  5. tools = ['generic'],
  6. toolpath = ['../scons'],
  7. ENV = os.environ,
  8. )
  9. # Use Mesa's headers and libs
  10. if 0:
  11. env.Append(CPPPATH = ['#../include'])
  12. env.Append(LIBPATH = ['#../lib'])
  13. conf = Configure(env)
  14. # OpenGL
  15. if env['platform'] == 'windows':
  16. env.Prepend(LIBS = ['glu32', 'opengl32'])
  17. else:
  18. env.Prepend(LIBS = ['GLU', 'GL'])
  19. # Glut
  20. env['GLUT'] = False
  21. if conf.CheckCHeader('GL/glut.h'):
  22. if env['platform'] == 'windows':
  23. env['GLUT_LIB'] = 'glut32'
  24. else:
  25. env['GLUT_LIB'] = 'glut'
  26. env['GLUT'] = True
  27. conf.Finish()
  28. Export('env')
  29. SConscript(
  30. 'SConscript',
  31. duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
  32. )