Import('*') env = env.Clone() env.Append(CPPPATH = [ '#/src', '#/src/mapi', '#/src/mesa', '#/src/mesa/main', '#/include/HaikuGL', '/boot/system/develop/headers/private', Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers ]) env.Prepend(LIBS = [ mesautil, glsl, mesa, ]) env.Prepend(LIBS = [libgl]) sources = [ 'SoftwareRast.cpp' ] # Disallow undefined symbols #env.Append(SHLINKFLAGS = ['-Wl,-z,defs']) libswrast = env.SharedLibrary( target = 'swrast', source = sources )