2024-09-25 15:56:19 +03:00
|
|
|
project('buffybox', 'c',
|
2025-10-02 07:38:30 +02:00
|
|
|
version: '3.4.2',
|
2025-05-07 14:50:29 +03:00
|
|
|
default_options: ['warning_level=3', 'b_ndebug=if-release', 'b_lto=true'],
|
2025-05-07 11:32:58 +03:00
|
|
|
meson_version: '>= 0.60.0'
|
2024-07-26 16:40:49 +00:00
|
|
|
)
|
|
|
|
|
|
2025-03-17 11:18:59 +03:00
|
|
|
add_project_arguments(
|
|
|
|
|
'-DPROJECT_VERSION="@0@"'.format(meson.project_version()),
|
|
|
|
|
'-DLV_BIG_ENDIAN_SYSTEM=' + (host_machine.endian() == 'big'? '1' : '0'),
|
|
|
|
|
language: 'c'
|
|
|
|
|
)
|
2024-09-25 15:56:19 +03:00
|
|
|
|
|
|
|
|
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
|
2024-09-25 15:56:19 +03:00
|
|
|
|
|
|
|
|
if get_option('man')
|
2024-10-05 12:30:36 +00:00
|
|
|
depscdoc = dependency('scdoc', native: true)
|
2024-09-25 15:56:19 +03:00
|
|
|
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',
|
2024-09-25 15:56:19 +03:00
|
|
|
'shared/config.c',
|
2025-11-26 12:34:09 +03:00
|
|
|
'shared/force_feedback.c',
|
2024-09-25 15:56:19 +03:00
|
|
|
'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'
|
|
|
|
|
)
|
2025-09-23 01:48:35 -07:00
|
|
|
|
2024-09-25 15:56:19 +03:00
|
|
|
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
|
|
|
|
|
]
|
2024-07-26 16:40:49 +00:00
|
|
|
|
|
|
|
|
subdir('unl0kr')
|
|
|
|
|
subdir('buffyboard')
|
2025-09-23 01:48:35 -07:00
|
|
|
subdir('f0rmz')
|
2024-09-25 15:56:19 +03:00
|
|
|
|
|
|
|
|
if get_option('man')
|
|
|
|
|
subdir('man')
|
|
|
|
|
endif
|