Import('*') env.Prepend(LIBS = [ ws_haiku, trace, rbug, mesa, glsl, gallium ]) if True: env.Append(CPPDEFINES = [ 'GALLIUM_SOFTPIPE', 'GALLIUM_RBUG', 'GALLIUM_TRACE', ]) env.Prepend(LIBS = [softpipe]) env.Append(CPPPATH = [ '#/src/mapi', '#/src/mesa', '#/src/mesa/main', '#/src/gallium/winsys/sw/hgl', '/boot/system/develop/headers/private', ]) if env['llvm']: env.Append(CPPDEFINES = 'HAVE_LLVMPIPE') softpipe_sources = [ 'GalliumContext.cpp', 'GalliumFramebuffer.cpp', 'SoftwareRenderer.cpp' ] # libswpipe gets turned into "Software Renderer" by the haiku package system module = env.LoadableModule( target ='swpipe', source = softpipe_sources, )