From 25c42abac8172266e6d02a2e2220b0a5c8a53dad Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Mar 2022 15:05:32 -0400 Subject: [PATCH] meson: Define a HAVE_XXXX macro for every gallium driver we build Reviewed-by: Mike Blumenkrantz Part-of: --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index b6a2a9dca99f1..189a5c51ec4f9 100644 --- a/meson.build +++ b/meson.build @@ -231,6 +231,9 @@ with_gallium_lima = gallium_drivers.contains('lima') with_gallium_zink = gallium_drivers.contains('zink') with_gallium_d3d12 = gallium_drivers.contains('d3d12') with_gallium_asahi = gallium_drivers.contains('asahi') +foreach gallium_driver : gallium_drivers + pre_args += '-DHAVE_@0@'.format(gallium_driver.to_upper()) +endforeach with_gallium = gallium_drivers.length() != 0 with_gallium_kmsro = with_gallium_v3d or with_gallium_vc4 or with_gallium_etnaviv or with_gallium_panfrost or with_gallium_lima or with_gallium_freedreno