From cb6b1193c8aff879c79ceda8cf5bf737837fcb05 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Nov 2022 18:08:43 +0100 Subject: [PATCH] render/allocator/gbm: use internal_config Removes a project argument. --- render/allocator/gbm.c | 1 + render/allocator/meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/render/allocator/gbm.c b/render/allocator/gbm.c index f77fedd8..a41065b5 100644 --- a/render/allocator/gbm.c +++ b/render/allocator/gbm.c @@ -10,6 +10,7 @@ #include #include +#include "config.h" #include "render/allocator/gbm.h" #include "render/drm_format_set.h" diff --git a/render/allocator/meson.build b/render/allocator/meson.build index 97c5a1c3..1fdfe557 100644 --- a/render/allocator/meson.build +++ b/render/allocator/meson.build @@ -21,5 +21,5 @@ if gbm.found() features += { 'gbm-allocator': true } has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm]) - add_project_arguments('-DHAS_GBM_BO_GET_FD_FOR_PLANE=@0@'.format(has.to_int()), language: 'c') + internal_config.set10('HAS_GBM_BO_GET_FD_FOR_PLANE', has) endif