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