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 1.0KB

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