render/allocator/gbm: use internal_config

Removes a project argument.
This commit is contained in:
Simon Ser 2022-11-25 18:08:43 +01:00 committed by Alexander Orzechowski
parent 311381c6b5
commit cb6b1193c8
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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