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