diff options
author | Alexander von Gluck IV <[email protected]> | 2013-10-03 01:22:48 +0000 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2013-10-04 18:20:09 -0500 |
commit | 8730236d1a900c9512a9ef92c08034f0223bcf92 (patch) | |
tree | 9d4ec570b0604811cc4431f0e0f5cab292939021 /src/gallium/targets/haiku-softpipe/SConscript | |
parent | c9f1217e1f2c309cfd8770940773f1f35582a795 (diff) |
haiku: Add first Haiku renderer (softpipe)
* This shared library gets parsed by the
system as a system "add-on"
Diffstat (limited to 'src/gallium/targets/haiku-softpipe/SConscript')
-rw-r--r-- | src/gallium/targets/haiku-softpipe/SConscript | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript index 72a5ba79627..0a99976aef5 100644 --- a/src/gallium/targets/haiku-softpipe/SConscript +++ b/src/gallium/targets/haiku-softpipe/SConscript @@ -1,21 +1,44 @@ 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 = [ - 'haiku-softpipe.c' + 'haiku-softpipe.c', + 'GalliumContext.cpp', + 'GalliumFramebuffer.cpp', + 'SoftwareRenderer.cpp' ] -module = env.StaticLibrary( - target ='swpipe_haiku.a', +# libswpipe gets turned into "Software Renderer" by the haiku package system +module = env.SharedLibrary( + target ='swpipe', source = softpipe_sources, - SHLIBPREFIX = '', ) + +env.Alias('softpipe-haiku', module) |