aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/haiku-softpipe/SConscript
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-12-03 18:01:31 -0500
committerMarek Olšák <[email protected]>2020-05-13 13:46:53 -0400
commitd6287a94b697ffe12a4e576a38943cdf4e90cdb0 (patch)
treebb84357d98dc74412e983693e09875bb355b467e /src/gallium/targets/haiku-softpipe/SConscript
parentb408734e5e2fe1e1ef08080c4425ad8a7ed33579 (diff)
gallium: rename 'state tracker' to 'frontend'
Acked-by: Eric Anholt <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4902>
Diffstat (limited to 'src/gallium/targets/haiku-softpipe/SConscript')
-rw-r--r--src/gallium/targets/haiku-softpipe/SConscript47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript
new file mode 100644
index 00000000000..312155abe14
--- /dev/null
+++ b/src/gallium/targets/haiku-softpipe/SConscript
@@ -0,0 +1,47 @@
+Import('*')
+
+env.Prepend(LIBS = [
+ ws_haiku,
+ st_haiku,
+ mesautil,
+ compiler,
+ mesa,
+ glsl,
+ nir,
+ spirv,
+ gallium
+])
+
+if True:
+ env.Append(CPPDEFINES = [
+ 'GALLIUM_SOFTPIPE',
+ ])
+ env.Prepend(LIBS = [softpipe])
+
+env.Prepend(LIBS = [libgl])
+
+env.Append(CPPPATH = [
+ '#/src/mapi',
+ '#/src/mesa',
+ '#/src/mesa/main',
+ '#/include/HaikuGL',
+ '#/src/gallium/winsys',
+ '#/src/gallium/frontends/hgl',
+ '/boot/system/develop/headers/private',
+])
+
+if env['llvm']:
+ env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
+ env.Prepend(LIBS = [llvmpipe])
+
+softpipe_sources = [
+ 'GalliumContext.cpp',
+ 'SoftwareRenderer.cpp'
+]
+
+# libswpipe gets turned into "Softpipe" by the haiku package system
+module = env.LoadableModule(
+ target ='swpipe',
+ source = softpipe_sources,
+)
+