nir: move shader_enums.[ch] to compiler
[mesa.git] / src / gallium / targets / osmesa / SConscript
1 Import('*')
2
3 env = env.Clone()
4
5 env.Prepend(CPPPATH = [
6 '#src/mapi',
7 '#src/mesa',
8 #Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
9 ])
10
11 env.Prepend(LIBS = [
12 st_osmesa,
13 ws_null,
14 glapi,
15 compiler,
16 mesa,
17 gallium,
18 trace,
19 glsl,
20 mesautil,
21 softpipe
22 ])
23
24 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
25
26 sources = ['target.c']
27
28 if env['llvm']:
29 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
30 env.Prepend(LIBS = [llvmpipe])
31
32 if env['platform'] == 'windows':
33 if env['gcc'] and env['machine'] != 'x86_64':
34 sources += ['osmesa.mingw.def']
35 else:
36 sources += ['osmesa.def']
37
38 gallium_osmesa = env.SharedLibrary(
39 target ='osmesa',
40 source = sources,
41 LIBS = env['LIBS'],
42 )
43
44 env.Alias('osmesa', gallium_osmesa)