buffybox/buffyboard/meson.build

52 lines
1.1 KiB
Meson
Raw Normal View History

2021-09-23 14:42:48 +02:00
# Copyright 2021 Johannes Marbach
# SPDX-License-Identifier: GPL-3.0-or-later
2021-09-23 14:42:48 +02:00
project(
'buffyboard',
'c',
2024-04-10 20:36:54 +02:00
version: '3.1.0',
2021-09-23 14:42:48 +02:00
default_options: 'warning_level=1',
meson_version: '>=0.53.0'
)
add_project_arguments('-DBB_VERSION="@0@"'.format(meson.project_version()), language: ['c'])
2021-09-23 14:42:48 +02:00
buffyboard_sources = [
'command_line.c',
'config.c',
2021-09-23 14:42:48 +02:00
'main.c',
'sq2lv_layouts.c',
'terminal.c',
'uinput_device.c',
]
2024-03-28 13:27:01 +01:00
shared_sources = [
2024-03-28 14:31:27 +01:00
'../shared/cursor/cursor.c',
2024-03-30 19:35:29 +00:00
'../shared/fonts/font_32.c',
2024-03-30 21:12:37 +01:00
'../shared/config.c',
2024-03-28 14:31:27 +01:00
'../shared/indev.c',
'../shared/log.c',
'../shared/theme.c',
'../shared/themes.c',
2024-03-28 13:27:01 +01:00
]
2021-09-23 14:42:48 +02:00
squeek2lvgl_sources = [
2023-11-20 21:03:32 +01:00
'../squeek2lvgl/sq2lv.c',
2021-09-23 14:42:48 +02:00
]
lvgl_sources = run_command('../find-lvgl-sources.sh', '../lvgl', check: true).stdout().strip().split('\n')
2021-09-23 14:42:48 +02:00
executable(
'buffyboard',
2024-03-28 13:27:01 +01:00
sources: buffyboard_sources + shared_sources + squeek2lvgl_sources + lvgl_sources,
include_directories: ['..'],
2021-09-23 14:42:48 +02:00
dependencies: [
dependency('inih'),
2021-09-23 14:42:48 +02:00
dependency('libinput'),
2024-03-28 14:31:27 +01:00
dependency('libudev'),
2021-09-23 14:42:48 +02:00
meson.get_compiler('c').find_library('m', required: false),
2021-11-18 21:15:26 +01:00
],
install: true
2021-09-23 14:42:48 +02:00
)