Merge branch 'fix_redefinition' into 'master'

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

See merge request postmarketOS/buffybox!36
This commit is contained in:
Johannes Marbach
2024-12-09 20:22:37 +00:00

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