From ee55a1aa8ef6bde01b1b1d50a162076060d856a4 Mon Sep 17 00:00:00 2001 From: Vladimir Stoiakin Date: Mon, 9 Dec 2024 18:44:48 +0300 Subject: [PATCH] build: add '-DLV_USE_LINUX_DRM=1' for unl0kr only --- unl0kr/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unl0kr/meson.build b/unl0kr/meson.build index 04bdc8e..379ee70 100644 --- a/unl0kr/meson.build +++ b/unl0kr/meson.build @@ -15,16 +15,19 @@ unl0kr_dependencies = [ depxkbcommon ] +unl0kr_args = [] + deplibdrm = dependency('libdrm', required: get_option('with-drm')) if deplibdrm.found() unl0kr_dependencies += deplibdrm - add_project_arguments('-DLV_USE_LINUX_DRM=1', language: 'c') + unl0kr_args += '-DLV_USE_LINUX_DRM=1' endif executable('unl0kr', include_directories: common_include_dirs, sources: unl0kr_sources + shared_sources + squeek2lvgl_sources + lvgl_sources, dependencies: unl0kr_dependencies, + c_args: unl0kr_args, install: true )