2009-03-10 13:11:23 +00:00
|
|
|
Import('*')
|
|
|
|
|
|
|
|
if not env['GLUT']:
|
|
|
|
Return()
|
|
|
|
|
|
|
|
env = env.Clone()
|
|
|
|
|
|
|
|
env.Prepend(CPPPATH = [
|
|
|
|
'../util',
|
|
|
|
])
|
|
|
|
|
|
|
|
env.Prepend(LIBS = [
|
|
|
|
util,
|
|
|
|
'$GLUT_LIB'
|
|
|
|
])
|
|
|
|
|
|
|
|
if env['platform'] == 'windows':
|
|
|
|
env.Append(CPPDEFINES = ['NOMINMAX'])
|
|
|
|
env.Prepend(LIBS = ['winmm'])
|
|
|
|
|
|
|
|
linux_progs = [
|
|
|
|
'api_speed',
|
|
|
|
]
|
|
|
|
|
|
|
|
glx_progs = [
|
|
|
|
'auxbuffer',
|
|
|
|
'getprocaddress',
|
|
|
|
'jkrahntest',
|
|
|
|
'sharedtex',
|
|
|
|
'texcompress2',
|
|
|
|
'texobjshare',
|
|
|
|
]
|
|
|
|
|
|
|
|
mesa_progs = [
|
|
|
|
'debugger',
|
|
|
|
]
|
|
|
|
|
|
|
|
progs = [
|
|
|
|
'afsmultiarb',
|
|
|
|
'antialias',
|
|
|
|
'arbfpspec',
|
|
|
|
'arbfptest1',
|
|
|
|
'arbfptexture',
|
|
|
|
'arbfptrig',
|
|
|
|
'arbnpot',
|
2009-04-20 16:17:50 +01:00
|
|
|
'arbnpot-mipmap',
|
2009-03-10 13:11:23 +00:00
|
|
|
'arbvptest1',
|
|
|
|
'arbvptest3',
|
|
|
|
'arbvptorus',
|
|
|
|
'arbvpwarpmesh',
|
|
|
|
'arraytexture',
|
|
|
|
'blendminmax',
|
|
|
|
'blendsquare',
|
|
|
|
'blendxor',
|
2009-10-27 22:46:07 +00:00
|
|
|
'blitfb',
|
2009-03-10 13:11:23 +00:00
|
|
|
'bufferobj',
|
|
|
|
'bug_3050',
|
|
|
|
'bug_3101',
|
|
|
|
'bug_3195',
|
|
|
|
'bug_texstore_i8',
|
|
|
|
'calibrate_rast',
|
|
|
|
'copypixrate',
|
|
|
|
'crossbar',
|
|
|
|
'cva',
|
|
|
|
'drawbuffers',
|
|
|
|
'exactrast',
|
|
|
|
'ext422square',
|
|
|
|
'fbotest1',
|
|
|
|
'fbotest2',
|
|
|
|
'fillrate',
|
|
|
|
'floattex',
|
|
|
|
'fog',
|
|
|
|
'fogcoord',
|
|
|
|
'fptest1',
|
|
|
|
'fptexture',
|
2009-07-30 16:46:57 +01:00
|
|
|
'getteximage',
|
2009-04-20 16:17:50 +01:00
|
|
|
'glutfx',
|
2009-03-10 13:11:23 +00:00
|
|
|
'interleave',
|
|
|
|
'invert',
|
|
|
|
'lineclip',
|
|
|
|
'manytex',
|
|
|
|
'mapbufrange',
|
|
|
|
'mapvbo',
|
|
|
|
'minmag',
|
2009-03-18 14:01:47 +00:00
|
|
|
'mipgen',
|
2009-04-29 20:17:21 +01:00
|
|
|
'mipmap_comp',
|
2009-06-14 00:04:00 +01:00
|
|
|
'mipmap_comp_tests',
|
2009-03-10 13:11:23 +00:00
|
|
|
'mipmap_limits',
|
|
|
|
'mipmap_view',
|
|
|
|
'multipal',
|
|
|
|
'multitexarray',
|
|
|
|
'multiwindow',
|
|
|
|
'no_s3tc',
|
|
|
|
'packedpixels',
|
|
|
|
'pbo',
|
2009-06-12 22:58:34 +01:00
|
|
|
'persp_hint',
|
2009-03-10 13:11:23 +00:00
|
|
|
'prog_parameter',
|
|
|
|
'quads',
|
|
|
|
'random',
|
|
|
|
'readrate',
|
|
|
|
'rubberband',
|
2009-06-03 15:33:56 +01:00
|
|
|
'scissor',
|
|
|
|
'scissor-viewport',
|
2009-03-10 13:11:23 +00:00
|
|
|
'seccolor',
|
|
|
|
'shader_api',
|
|
|
|
'stencil_twoside',
|
|
|
|
'stencil_wrap',
|
|
|
|
'stencilwrap',
|
2009-04-20 16:17:50 +01:00
|
|
|
'streaming_rect',
|
2009-03-10 13:11:23 +00:00
|
|
|
'subtex',
|
|
|
|
'subtexrate',
|
|
|
|
'tex1d',
|
|
|
|
'texcmp',
|
2009-03-22 07:46:18 +00:00
|
|
|
'texcompress2',
|
2009-06-30 12:34:55 +01:00
|
|
|
'texcompsub',
|
2009-04-20 16:17:50 +01:00
|
|
|
'texdown',
|
2009-03-10 13:11:23 +00:00
|
|
|
'texfilt',
|
|
|
|
'texgenmix',
|
|
|
|
'texline',
|
2009-04-20 16:17:50 +01:00
|
|
|
'texobj',
|
2009-03-10 13:11:23 +00:00
|
|
|
'texrect',
|
|
|
|
'texwrap',
|
|
|
|
'unfilledclip',
|
|
|
|
'vao-01',
|
|
|
|
'vao-02',
|
|
|
|
'vparray',
|
|
|
|
'vpeval',
|
|
|
|
'vptest1',
|
|
|
|
'vptest2',
|
|
|
|
'vptest3',
|
|
|
|
'vptorus',
|
|
|
|
'vpwarpmesh',
|
|
|
|
'yuvrect',
|
|
|
|
'yuvsquare',
|
|
|
|
'zcomp',
|
|
|
|
'zdrawpix',
|
|
|
|
'zreaddraw',
|
|
|
|
]
|
|
|
|
|
|
|
|
for prog in progs:
|
|
|
|
env.Program(
|
|
|
|
target = prog,
|
|
|
|
source = prog + '.c',
|
|
|
|
)
|