Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SConscript 948B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. if platform != 'embedded':
  15. # OpenGL
  16. if progs_env['platform'] == 'windows':
  17. progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
  18. else:
  19. progs_env.Prepend(LIBS = ['GLU', 'GL'])
  20. # Glut
  21. progs_env.Prepend(LIBS = [glut])
  22. # GLEW
  23. progs_env.Prepend(LIBS = [glew])
  24. progs_env.Prepend(CPPPATH = [
  25. '#progs/util',
  26. ])
  27. progs_env.Prepend(LIBS = [
  28. util,
  29. ])
  30. Export('progs_env')
  31. SConscript([
  32. 'demos/SConscript',
  33. 'glsl/SConscript',
  34. 'redbook/SConscript',
  35. 'samples/SConscript',
  36. 'tests/SConscript',
  37. 'trivial/SConscript',
  38. 'vp/SConscript',
  39. 'vpglsl/SConscript',
  40. 'fp/SConscript',
  41. 'wgl/SConscript',
  42. 'perf/SConscript',
  43. ])