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.

SConscript 895B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. SConscript([
  2. 'util/SConscript',
  3. ])
  4. Import('*')
  5. progs_env = env.Clone()
  6. if progs_env['platform'] == 'windows':
  7. progs_env.Append(CPPDEFINES = ['NOMINMAX'])
  8. progs_env.Prepend(LIBS = [
  9. 'winmm',
  10. 'kernel32',
  11. 'user32',
  12. 'gdi32',
  13. ])
  14. # OpenGL
  15. if progs_env['platform'] == 'windows':
  16. progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
  17. else:
  18. progs_env.Prepend(LIBS = ['GLU', 'GL'])
  19. # Glut
  20. progs_env.Prepend(LIBS = [glut])
  21. # GLEW
  22. progs_env.Prepend(LIBS = [glew])
  23. progs_env.Prepend(CPPPATH = [
  24. '#progs/util',
  25. ])
  26. progs_env.Prepend(LIBS = [
  27. util,
  28. ])
  29. Export('progs_env')
  30. SConscript([
  31. 'demos/SConscript',
  32. 'glsl/SConscript',
  33. 'redbook/SConscript',
  34. 'samples/SConscript',
  35. 'tests/SConscript',
  36. 'trivial/SConscript',
  37. 'vp/SConscript',
  38. 'vpglsl/SConscript',
  39. 'fp/SConscript',
  40. 'wgl/SConscript',
  41. 'perf/SConscript',
  42. ])