buffybox/meson.build
Johannes Marbach 177dde0336 Switch to Meson
Fixes: #6
2021-09-23 14:42:48 +02:00

54 lines
1.5 KiB
Meson

# Copyright 2021 Johannes Marbach
#
# This file is part of buffyboard, hereafter referred to as the program.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
project(
'buffyboard',
'c',
version: '0.0.0',
default_options: 'warning_level=1',
meson_version: '>=0.53.0'
)
buffyboard_sources = [
'cursor.c',
'main.c',
'libinput_multi.c',
'montserrat_extended_32.c',
'sq2lv_layouts.c',
'terminal.c',
'uinput_device.c',
]
squeek2lvgl_sources = [
'squeek2lvgl/sq2lv.c',
]
lvgl_sources = run_command('find-lvgl-sources.sh', 'lvgl').stdout().strip().split('\n')
lv_drivers_sources = run_command('find-lvgl-sources.sh', 'lv_drivers').stdout().strip().split('\n')
executable(
'buffyboard',
sources: buffyboard_sources + squeek2lvgl_sources + lvgl_sources + lv_drivers_sources,
include_directories: ['lvgl', 'lv_drivers'],
dependencies: [
dependency('libinput'),
meson.get_compiler('c').find_library('m', required: false),
dependency('xkbcommon'),
]
)