2021-09-22 20:10:19 +02:00
|
|
|
# Copyright 2021 Clayton Craft
|
2024-01-12 09:51:43 +01:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2021-09-22 20:10:19 +02:00
|
|
|
|
2024-09-25 15:56:19 +03:00
|
|
|
depxkbcommon = dependency('xkbcommon')
|
|
|
|
|
|
|
|
|
|
unl0kr_sources = files(
|
|
|
|
|
'backends.c',
|
|
|
|
|
'command_line.c',
|
|
|
|
|
'config.c',
|
|
|
|
|
'main.c',
|
|
|
|
|
'sq2lv_layouts.c',
|
|
|
|
|
'terminal.c'
|
|
|
|
|
)
|
2023-04-01 23:00:55 +00:00
|
|
|
|
2022-05-21 11:02:23 +00:00
|
|
|
unl0kr_dependencies = [
|
2024-09-25 15:56:19 +03:00
|
|
|
common_dependencies,
|
|
|
|
|
depxkbcommon
|
2022-05-21 11:02:23 +00:00
|
|
|
]
|
|
|
|
|
|
2024-09-25 15:56:19 +03:00
|
|
|
deplibdrm = dependency('libdrm', required: get_option('with-drm'))
|
|
|
|
|
if deplibdrm.found()
|
|
|
|
|
unl0kr_dependencies += deplibdrm
|
|
|
|
|
add_project_arguments('-DLV_USE_LINUX_DRM=1', language: 'c')
|
2022-05-21 11:02:23 +00:00
|
|
|
endif
|
|
|
|
|
|
2024-09-25 15:56:19 +03:00
|
|
|
executable('unl0kr',
|
|
|
|
|
include_directories: common_include_dirs,
|
|
|
|
|
sources: unl0kr_sources + shared_sources + squeek2lvgl_sources + lvgl_sources,
|
|
|
|
|
dependencies: unl0kr_dependencies,
|
|
|
|
|
install: true
|
2021-09-22 18:06:13 +00:00
|
|
|
)
|
2023-04-01 23:00:55 +00:00
|
|
|
|
2024-09-25 15:56:19 +03:00
|
|
|
install_data('unl0kr.conf', install_dir: get_option('sysconfdir'))
|
2023-04-01 23:00:55 +00:00
|
|
|
|