summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-11-15 10:43:20 -0800
committerDylan Baker <[email protected]>2017-12-04 14:35:36 -0800
commit0bbecc5a8548883f76a7147ac7879f05a01770dc (patch)
tree1cc27fafd7566515e33ae4f6b63a4224b16ef436 /src/gallium/drivers/llvmpipe
parent831d2fb01260016d5c253ab516ad7a2b844bb249 (diff)
meson: define driver dependencies
This allow us to encapsulate the compiler and linkage requirements of each driver in a reusable way. The result will be that each target that needs a specific driver can simply add `driver_<name>` to its dependencies line and the necessary libraries and compiler args will be added. This will allow for a lot of code de-duplication between gallium targets. Signed-off-by: Dylan Baker <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/meson.build b/src/gallium/drivers/llvmpipe/meson.build
index 9d0edb0ac33..597245ee814 100644
--- a/src/gallium/drivers/llvmpipe/meson.build
+++ b/src/gallium/drivers/llvmpipe/meson.build
@@ -100,6 +100,14 @@ libllvmpipe = static_library(
dependencies : dep_llvm,
)
+# This overwrites the softpipe driver dependency, but itself depends on the
+# softpipe dependency.
+driver_swrast = declare_dependency(
+ compile_args : '-DGALLIUM_LLVMPIPE',
+ link_with : libllvmpipe,
+ dependencies : driver_swrast,
+)
+
if with_tests and with_gallium_softpipe and with_llvm
foreach t : ['lp_test_format', 'lp_test_arit', 'lp_test_blend',
'lp_test_conv', 'lp_test_printf']