buffybox/meson.build

63 lines
1.7 KiB
Meson
Raw Normal View History

2021-09-22 20:10:19 +02:00
# Copyright 2021 Clayton Craft
#
# This file is part of unl0kr, 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/>.
2021-09-22 18:06:13 +00:00
project(
'unl0kr',
'c',
2021-09-23 14:52:36 +02:00
version: '0.0.0',
default_options: 'warning_level=1',
meson_version: '>=0.53.0'
2021-09-22 18:06:13 +00:00
)
2021-09-23 21:05:36 +02:00
add_project_arguments('-DUL_VERSION="@0@"'.format(meson.project_version()), language: ['c'])
2021-09-22 18:06:13 +00:00
unl0kr_sources = [
2021-09-23 21:05:36 +02:00
'command_line.c',
'config.c',
2021-09-22 18:06:13 +00:00
'cursor.c',
'font_32.c',
2021-09-24 09:07:37 +02:00
'indev.c',
2021-09-23 21:05:36 +02:00
'log.c',
'main.c',
2021-09-22 18:06:13 +00:00
'sq2lv_layouts.c',
'theme.c',
'themes.c'
2021-09-22 18:06:13 +00:00
]
squeek2lvgl_sources = [
'squeek2lvgl/sq2lv.c',
]
2021-09-23 14:52:36 +02:00
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')
2021-09-22 18:06:13 +00:00
install_data(sources: 'unl0kr.conf', install_dir : get_option('sysconfdir'))
2021-09-22 18:06:13 +00:00
executable(
'unl0kr',
2021-09-23 14:52:36 +02:00
sources: unl0kr_sources + squeek2lvgl_sources + lvgl_sources + lv_drivers_sources,
include_directories: ['lvgl', 'lv_drivers'],
dependencies: [
dependency('inih'),
2021-09-22 18:06:13 +00:00
dependency('libinput'),
dependency('xkbcommon')
],
install: true
2021-09-22 18:06:13 +00:00
)