scons: Build progs together with everything else.
This is a substantial reorganization, This particular commit enables: - building the progs for unices platforms - glew is now built as a shared library (it is the default, and it is inconvenient and pointless to shift away from that default) - all progs get built by default
This commit is contained in:
@@ -1,84 +1,66 @@
|
||||
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'])
|
||||
|
||||
progs = [
|
||||
'arbfplight',
|
||||
'arbfslight',
|
||||
'arbocclude',
|
||||
'bounce',
|
||||
'clearspd',
|
||||
'copypix',
|
||||
'cubemap',
|
||||
'drawpix',
|
||||
'engine',
|
||||
'fbo_firecube',
|
||||
'fire',
|
||||
'fogcoord',
|
||||
'fplight',
|
||||
'fslight',
|
||||
'gamma',
|
||||
'gearbox',
|
||||
'gears',
|
||||
'geartrain',
|
||||
'glinfo',
|
||||
'gloss',
|
||||
'gltestperf',
|
||||
'ipers',
|
||||
'isosurf',
|
||||
'lodbias',
|
||||
'morph3d',
|
||||
'multiarb',
|
||||
'paltex',
|
||||
'pointblast',
|
||||
'ray',
|
||||
'readpix',
|
||||
'reflect',
|
||||
'renormal',
|
||||
'shadowtex',
|
||||
'singlebuffer',
|
||||
'spectex',
|
||||
'spriteblast',
|
||||
'stex3d',
|
||||
'teapot',
|
||||
'terrain',
|
||||
'tessdemo',
|
||||
'texcyl',
|
||||
'texenv',
|
||||
'textures',
|
||||
'trispd',
|
||||
'tunnel',
|
||||
'tunnel2',
|
||||
'vao_demo',
|
||||
'winpos',
|
||||
'dinoshade',
|
||||
'fbotexture',
|
||||
'projtex',
|
||||
'arbfplight',
|
||||
'arbfslight',
|
||||
'arbocclude',
|
||||
'bounce',
|
||||
'clearspd',
|
||||
'copypix',
|
||||
'cubemap',
|
||||
'drawpix',
|
||||
'engine',
|
||||
'fbo_firecube',
|
||||
'fire',
|
||||
'fogcoord',
|
||||
'fplight',
|
||||
'fslight',
|
||||
'gamma',
|
||||
'gearbox',
|
||||
'gears',
|
||||
'geartrain',
|
||||
'glinfo',
|
||||
'gloss',
|
||||
'gltestperf',
|
||||
'ipers',
|
||||
'isosurf',
|
||||
'lodbias',
|
||||
'morph3d',
|
||||
'multiarb',
|
||||
'paltex',
|
||||
'pointblast',
|
||||
'ray',
|
||||
'readpix',
|
||||
'reflect',
|
||||
'renormal',
|
||||
'shadowtex',
|
||||
'singlebuffer',
|
||||
'spectex',
|
||||
'spriteblast',
|
||||
'stex3d',
|
||||
'teapot',
|
||||
'terrain',
|
||||
'tessdemo',
|
||||
'texcyl',
|
||||
'texenv',
|
||||
'textures',
|
||||
'trispd',
|
||||
'tunnel',
|
||||
'tunnel2',
|
||||
'vao_demo',
|
||||
'winpos',
|
||||
'dinoshade',
|
||||
'fbotexture',
|
||||
'projtex',
|
||||
]
|
||||
|
||||
for prog in progs:
|
||||
env.Program(
|
||||
progs_env.Program(
|
||||
target = prog,
|
||||
source = prog + '.c',
|
||||
)
|
||||
|
||||
env.Program(
|
||||
progs_env.Program(
|
||||
target = 'rain',
|
||||
source = [
|
||||
'rain.cxx',
|
||||
|
Reference in New Issue
Block a user