5 env.Prepend(CPPPATH = [
8 #Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
25 env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
27 sources = ['target.c']
30 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
31 env.Prepend(LIBS = [llvmpipe])
34 env.Append(CPPDEFINES = 'GALLIUM_SWR')
35 env.Prepend(LIBS = [swr])
37 if env['platform'] == 'windows':
38 if env['gcc'] and env['machine'] != 'x86_64':
39 sources += ['osmesa.mingw.def']
41 sources += ['osmesa.def']
42 # Link with winsock2 library
43 env.Append(LIBS = ['ws2_32'])
46 gallium_osmesa = env.SharedLibrary(
52 env.Alias('osmesa', gallium_osmesa)