compiler,
mesa,
gallium,
- trace,
glsl,
+ nir,
+ spirv,
mesautil,
softpipe
])
-env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
+env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
sources = ['target.c']
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
env.Prepend(LIBS = [llvmpipe])
+ if env['swr']:
+ env.Append(CPPDEFINES = 'GALLIUM_SWR')
+ env.Prepend(LIBS = [swr])
+
if env['platform'] == 'windows':
if env['gcc'] and env['machine'] != 'x86_64':
sources += ['osmesa.mingw.def']
else:
sources += ['osmesa.def']
+ # Link with winsock2 library
+ env.Append(LIBS = ['ws2_32'])
+
gallium_osmesa = env.SharedLibrary(
target ='osmesa',