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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. Import('*')
  2. progs = [
  3. 'clear-fbo-tex',
  4. 'clear-fbo',
  5. 'clear-scissor',
  6. 'clear-undefined',
  7. 'clear-repeat',
  8. 'clear',
  9. 'dlist-dangling',
  10. 'dlist-edgeflag-dangling',
  11. 'dlist-edgeflag',
  12. 'dlist-degenerate',
  13. 'drawarrays',
  14. 'draw2arrays',
  15. 'drawelements',
  16. 'drawrange',
  17. 'flat-clip',
  18. 'fs-tri',
  19. 'line-clip',
  20. 'line-cull',
  21. 'line-flat',
  22. 'line-smooth',
  23. 'line-stipple-wide',
  24. 'line-userclip-clip',
  25. 'line-userclip-nop-clip',
  26. 'line-userclip-nop',
  27. 'line-userclip',
  28. 'line-wide',
  29. 'line',
  30. 'lineloop-clip',
  31. 'lineloop-elts',
  32. 'lineloop',
  33. 'linestrip-flat-stipple',
  34. 'linestrip-stipple-wide',
  35. 'linestrip-stipple',
  36. 'linestrip',
  37. 'long-fixed-func',
  38. 'pgon-mode',
  39. 'point-clip',
  40. 'point-param',
  41. 'point-sprite',
  42. 'point-wide',
  43. 'point-wide-smooth',
  44. 'point',
  45. 'poly-flat',
  46. 'poly-flat-clip',
  47. 'poly-flat-unfilled-clip',
  48. 'poly-unfilled',
  49. 'poly',
  50. 'quad-clip-all-vertices',
  51. 'quad-clip-nearplane',
  52. 'quad-clip',
  53. 'quad-degenerate',
  54. 'quad-flat',
  55. 'quad-offset-factor',
  56. 'quad-offset-unfilled',
  57. 'quad-offset-units',
  58. 'quad-tex-2d',
  59. 'quad-tex-3d',
  60. 'quad-tex-alpha',
  61. 'quad-tex-pbo',
  62. 'quad-tex-sub',
  63. 'quad-unfilled-clip',
  64. 'quad-unfilled-stipple',
  65. 'quad-unfilled',
  66. 'quad',
  67. 'quads',
  68. 'quadstrip-clip',
  69. 'quadstrip-cont',
  70. 'quadstrip-flat',
  71. 'quadstrip',
  72. 'tri-alpha',
  73. 'tri-blend-color',
  74. 'tri-blend-max',
  75. 'tri-blend-min',
  76. 'tri-blend-revsub',
  77. 'tri-blend-sub',
  78. 'tri-blend',
  79. 'tri-clip',
  80. 'tri-clear',
  81. 'tri-cull-both',
  82. 'tri-cull',
  83. 'tri-dlist',
  84. 'tri-edgeflag',
  85. 'tri-fbo-tex-mip',
  86. 'tri-fbo-tex',
  87. 'tri-fbo',
  88. 'tri-flat-clip',
  89. 'tri-flat',
  90. 'tri-fog',
  91. 'tri-fp',
  92. 'tri-fp-const-imm',
  93. 'tri-lit',
  94. 'tri-logicop-none',
  95. 'tri-logicop-xor',
  96. 'tri-mask-tri',
  97. 'tri-orig',
  98. 'tri-query',
  99. 'tri-repeat',
  100. 'tri-scissor-tri',
  101. 'tri-stencil',
  102. 'tri-stipple',
  103. 'tri-multitex-vbo',
  104. 'tri-tex',
  105. 'tri-tex-3d',
  106. 'tri-tri',
  107. 'tri-unfilled-fog',
  108. 'tri-unfilled-edgeflag',
  109. 'tri-unfilled-clip',
  110. 'tri-unfilled-smooth',
  111. 'tri-unfilled-tri',
  112. 'tri-unfilled-tri-lit',
  113. 'tri-unfilled-userclip-stip',
  114. 'tri-unfilled-userclip',
  115. 'tri-unfilled',
  116. 'tri-userclip',
  117. 'tri-viewport',
  118. 'tri-z-eq',
  119. 'tri-z',
  120. 'tri',
  121. 'trifan-flat',
  122. 'trifan-flat-clip',
  123. 'trifan-flat-unfilled-clip',
  124. 'trifan-unfilled',
  125. 'trifan',
  126. 'tristrip-clip',
  127. 'tristrip-flat',
  128. 'tristrip',
  129. 'vbo-drawarrays',
  130. 'vbo-noninterleaved',
  131. 'vbo-drawelements',
  132. 'vbo-drawrange',
  133. 'vp-array',
  134. 'vp-array-int',
  135. 'vp-clip',
  136. 'vp-line-clip',
  137. 'vp-tri',
  138. 'vp-tri-invariant',
  139. 'vp-tri-swap',
  140. 'vp-tri-tex',
  141. 'vp-tri-imm',
  142. 'vp-tri-cb',
  143. 'vp-tri-cb-pos',
  144. 'vp-tri-cb-tex',
  145. 'vp-unfilled',
  146. ]
  147. for prog in progs:
  148. prog = progs_env.Program(
  149. target = prog,
  150. source = prog + '.c',
  151. )
  152. # auto code generation
  153. #getprocaddress: getprocaddress.c getproclist.h
  154. #getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  155. # python getprocaddress.py > getproclist.h
  156. #readtex.h: $(TOP)/progs/util/readtex.h
  157. # ln -s $(TOP)/progs/util/readtex.h .
  158. #readtex.c: $(TOP)/progs/util/readtex.c
  159. # ln -s $(TOP)/progs/util/readtex.c .
  160. #extfuncs.h: $(TOP)/progs/util/extfuncs.h
  161. # cp $< .