meson/pps: Check if libdrm exists to compile pps

For Turnip with KGSL we may have perffeto enabled but we don't
have libdrm.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17173>
This commit is contained in:
Danylo Piliaiev 2022-06-21 21:05:51 +03:00
parent ee6a0c675b
commit 6ad7be1b36
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: MIT
if with_perfetto
if with_perfetto and dep_libdrm.found()
subdir('pps')
endif