From 6d20e251f25b47c19a5fcd80d9aa30bf75367590 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 21 May 2013 15:55:24 -0500 Subject: Haiku: Add Gallium winsys and target code * We generate a static library for Haiku Gallium targets as our port system combines the compiled rendering code into a modular ar for each module (for example, our port system combines llvm libsoftpipe.a libllvmpipe.a into a single ar for the Haiku build system. I'd like the Gallium hgl target scons build system to do this some day, however how is beyond me at the moment. This is a first step. --- src/gallium/targets/haiku-softpipe/SConscript | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/gallium/targets/haiku-softpipe/SConscript (limited to 'src/gallium/targets/haiku-softpipe/SConscript') diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript new file mode 100644 index 00000000000..72a5ba79627 --- /dev/null +++ b/src/gallium/targets/haiku-softpipe/SConscript @@ -0,0 +1,21 @@ +Import('*') + +if True: + env.Append(CPPDEFINES = [ + 'GALLIUM_SOFTPIPE', + 'GALLIUM_RBUG', + 'GALLIUM_TRACE', + ]) + +if env['llvm']: + env.Append(CPPDEFINES = 'HAVE_LLVMPIPE') + +softpipe_sources = [ + 'haiku-softpipe.c' +] + +module = env.StaticLibrary( + target ='swpipe_haiku.a', + source = softpipe_sources, + SHLIBPREFIX = '', +) -- cgit v1.2.3