1 Import('*') 2 3 env.Prepend(LIBS = [ 4 ws_haiku, 5 st_haiku, 6 mesautil, 7 compiler, 8 mesa, 9 glsl, 10 nir, 11 spirv, 12 gallium 13 ]) 14 15 if True: 16 env.Append(CPPDEFINES = [ 17 'GALLIUM_SOFTPIPE', 18 ]) 19 env.Prepend(LIBS = [softpipe]) 20 21 env.Prepend(LIBS = [libgl]) 22 23 env.Append(CPPPATH = [ 24 '#/src/mapi', 25 '#/src/mesa', 26 '#/src/mesa/main', 27 '#/include/HaikuGL', 28 '#/src/gallium/winsys', 29 '#/src/gallium/state_trackers/hgl', 30 '/boot/system/develop/headers/private', 31 ]) 32 33 if env['llvm']: 34 env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE']) 35 env.Prepend(LIBS = [llvmpipe]) 36 37 softpipe_sources = [ 38 'GalliumContext.cpp', 39 'SoftwareRenderer.cpp' 40 ] 41 42 # libswpipe gets turned into "Softpipe" by the haiku package system 43 module = env.LoadableModule( 44 target ='swpipe', 45 source = softpipe_sources, 46 ) 47 48