mirror of
https://github.com/linux-msm/qbootctl
synced 2024-11-23 14:43:29 +08:00
bca9aa5dd7
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.
31 lines
524 B
Meson
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: [],
|
|
)
|