build: add '-DLV_USE_LINUX_DRM=1' for unl0kr only

This commit is contained in:
Vladimir Stoiakin
2024-12-09 18:44:48 +03:00
parent 07e324c175
commit ee55a1aa8e

View File

@@ -15,16 +15,19 @@ unl0kr_dependencies = [
depxkbcommon depxkbcommon
] ]
unl0kr_args = []
deplibdrm = dependency('libdrm', required: get_option('with-drm')) deplibdrm = dependency('libdrm', required: get_option('with-drm'))
if deplibdrm.found() if deplibdrm.found()
unl0kr_dependencies += deplibdrm unl0kr_dependencies += deplibdrm
add_project_arguments('-DLV_USE_LINUX_DRM=1', language: 'c') unl0kr_args += '-DLV_USE_LINUX_DRM=1'
endif endif
executable('unl0kr', executable('unl0kr',
include_directories: common_include_dirs, include_directories: common_include_dirs,
sources: unl0kr_sources + shared_sources + squeek2lvgl_sources + lvgl_sources, sources: unl0kr_sources + shared_sources + squeek2lvgl_sources + lvgl_sources,
dependencies: unl0kr_dependencies, dependencies: unl0kr_dependencies,
c_args: unl0kr_args,
install: true install: true
) )