qbootctl/meson.build
Caleb Connolly bca9aa5dd7
more rework, cleanup, port to pure C
The only C++ was for handling discovering and iterating over the
partitions PER block device, this was implemented in a really
overcomplicated way.

Simplify things, port everything over to c11 and drop the libstdc++
requirement entirely.
2023-06-24 00:06:02 +01:00

31 lines
524 B
Meson

project('qbootctl', 'c', default_options : ['c_std=c11'])
cc = meson.get_compiler('c')
deps = [
dependency('zlib'),
]
if not cc.has_header('linux/bsg.h')
error('linux-headers not found')
endif
src = [
'qbootctl.c',
'bootctrl_impl.c',
'bootctrl_test.c',
'gpt-utils.c',
'ufs-bsg.c',
]
inc = [
include_directories('.'),
]
executable('qbootctl', src,
include_directories: inc,
dependencies: deps,
install: true,
c_args: [],
)