1 Import('*') 2 3 env = drienv.Clone() 4 5 env.Append(CPPPATH = [ 6 '#/src/gallium/winsys/sw/dri', 7 ]) 8 9 env.Prepend(LIBS = [ 10 st_drisw, 11 ws_dri, 12 trace, 13 rbug, 14 mesa, 15 glsl, 16 gallium, 17 COMMON_DRI_SW_OBJECTS 18 ]) 19 20 if True: 21 env.Append(CPPDEFINES = [ 22 'GALLIUM_SOFTPIPE', 23 'GALLIUM_RBUG', 24 'GALLIUM_TRACE', 25 ]) 26 env.Prepend(LIBS = [softpipe]) 27 28 if env['llvm']: 29 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 30 env.Prepend(LIBS = [llvmpipe]) 31 32 swrast_sources = [ 33 'swrast_drm_api.c' 34 ] 35 36 module = env.LoadableModule( 37 target ='swrast_dri.so', 38 source = swrast_sources, 39 SHLIBPREFIX = '', 40 ) 41 42 module = env.InstallSharedLibrary(module) 43 44 env.Alias('dri-swrast', module) 45