From 0bbecc5a8548883f76a7147ac7879f05a01770dc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 15 Nov 2017 10:43:20 -0800 Subject: 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_` 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 Reviewed-by: Eric Engestrom --- src/gallium/drivers/vc5/meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/vc5/meson.build') diff --git a/src/gallium/drivers/vc5/meson.build b/src/gallium/drivers/vc5/meson.build index 61059a15560..c09fcde5b45 100644 --- a/src/gallium/drivers/vc5/meson.build +++ b/src/gallium/drivers/vc5/meson.build @@ -62,3 +62,8 @@ libvc5 = static_library( cpp_args : [cpp_vis_args], dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind], ) + +driver_vc5 = declare_dependency( + compile_args : '-DGALLIUM_VC5', + link_with : [libvc5, libvc5winsys, libbroadcom_cle, libbroadcom_vc5, libnir], +) -- cgit v1.2.3