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.1KB

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