2015-04-22 15:36:28 +00:00
|
|
|
Import('*')
|
|
|
|
|
|
|
|
|
|
env = env.Clone()
|
|
|
|
|
|
|
|
|
|
env.Prepend(CPPPATH = [
|
|
|
|
|
'#src/mapi',
|
|
|
|
|
'#src/mesa',
|
|
|
|
|
#Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
env.Prepend(LIBS = [
|
|
|
|
|
st_osmesa,
|
|
|
|
|
ws_null,
|
|
|
|
|
glapi,
|
2016-01-18 10:47:13 +02:00
|
|
|
compiler,
|
2015-04-22 15:36:28 +00:00
|
|
|
mesa,
|
|
|
|
|
gallium,
|
|
|
|
|
trace,
|
|
|
|
|
glsl,
|
2016-05-16 18:55:08 +01:00
|
|
|
nir,
|
2015-04-22 15:36:28 +00:00
|
|
|
mesautil,
|
|
|
|
|
softpipe
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
|
|
|
|
|
|
2015-10-19 14:29:28 +01:00
|
|
|
sources = ['target.c']
|
2015-04-22 15:36:28 +00:00
|
|
|
|
|
|
|
|
if env['llvm']:
|
|
|
|
|
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
|
|
|
|
env.Prepend(LIBS = [llvmpipe])
|
|
|
|
|
|
2016-11-11 12:09:36 -06:00
|
|
|
if env['swr']:
|
2017-04-14 13:56:09 -05:00
|
|
|
env.Append(CPPDEFINES = 'GALLIUM_SWR')
|
2016-11-11 12:09:36 -06:00
|
|
|
env.Prepend(LIBS = [swr])
|
|
|
|
|
|
2015-04-22 15:36:28 +00:00
|
|
|
if env['platform'] == 'windows':
|
|
|
|
|
if env['gcc'] and env['machine'] != 'x86_64':
|
|
|
|
|
sources += ['osmesa.mingw.def']
|
|
|
|
|
else:
|
|
|
|
|
sources += ['osmesa.def']
|
|
|
|
|
|
|
|
|
|
gallium_osmesa = env.SharedLibrary(
|
|
|
|
|
target ='osmesa',
|
|
|
|
|
source = sources,
|
|
|
|
|
LIBS = env['LIBS'],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.Alias('osmesa', gallium_osmesa)
|