aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-25 18:08:43 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-12-06 22:39:45 +0000
commitcb6b1193c8aff879c79ceda8cf5bf737837fcb05 (patch)
tree9feb9f8aadeae62f8d0295e195187e7fe7c931cc
parent311381c6b51eb7b4dbd8bcad41ef67aee6b4f5ed (diff)
render/allocator/gbm: use internal_config
Removes a project argument.
-rw-r--r--render/allocator/gbm.c1
-rw-r--r--render/allocator/meson.build2
2 files changed, 2 insertions, 1 deletions
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 <wlr/util/log.h>
#include <xf86drm.h>
+#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