buffybox/meson.build

64 lines
1.3 KiB
Meson
Raw Normal View History

project('buffybox', 'c',
version: '3.4.2',
2025-05-07 14:50:29 +03:00
default_options: ['warning_level=3', 'b_ndebug=if-release', 'b_lto=true'],
meson_version: '>= 0.60.0'
)
add_project_arguments(
'-DPROJECT_VERSION="@0@"'.format(meson.project_version()),
'-DLV_BIG_ENDIAN_SYSTEM=' + (host_machine.endian() == 'big'? '1' : '0'),
language: 'c'
)
depinih = dependency('inih')
deplibinput = dependency('libinput')
deplibudev = dependency('libudev')
2025-10-21 17:51:58 +00:00
depxkbcommon = dependency('xkbcommon') # For unl0kr and f0rmz only
if get_option('man')
depscdoc = dependency('scdoc', native: true)
endif
common_include_dirs = include_directories('.')
shared_sources = files(
'shared/cursor/cursor.c',
'shared/fonts/font_32.c',
2025-10-21 17:51:58 +00:00
'shared/cli_common.c',
'shared/config.c',
'shared/indev.c',
'shared/log.c',
'shared/theme.c',
'shared/themes.c'
)
2025-10-21 17:51:58 +00:00
shared_sources_ul_f0 = files(
'shared/backends.c',
'shared/display.c',
'shared/header.c',
'shared/keyboard.c',
'shared/terminal.c'
)
squeek2lvgl_sources = files(
'squeek2lvgl/sq2lv.c'
)
lvgl_sources = files(
run_command('find-lvgl-sources.sh', 'lvgl', check: true).stdout().strip().split('\n')
)
common_dependencies = [
depinih,
deplibinput,
deplibudev
]
subdir('unl0kr')
subdir('buffyboard')
subdir('f0rmz')
if get_option('man')
subdir('man')
endif