2023-06-24 06:21:24 +08:00
|
|
|
project('qbootctl', 'c', default_options : ['c_std=c11'])
|
2023-06-24 03:16:24 +08:00
|
|
|
|
2023-06-24 06:21:24 +08:00
|
|
|
cc = meson.get_compiler('c')
|
2022-06-04 11:42:40 +08:00
|
|
|
|
|
|
|
deps = [
|
|
|
|
dependency('zlib'),
|
|
|
|
]
|
|
|
|
|
2023-06-24 03:16:24 +08:00
|
|
|
if not cc.has_header('linux/bsg.h')
|
|
|
|
error('linux-headers not found')
|
|
|
|
endif
|
|
|
|
|
2022-06-04 11:42:40 +08:00
|
|
|
src = [
|
2023-06-24 06:21:24 +08:00
|
|
|
'qbootctl.c',
|
|
|
|
'bootctrl_impl.c',
|
|
|
|
'bootctrl_test.c',
|
|
|
|
'gpt-utils.c',
|
|
|
|
'ufs-bsg.c',
|
2022-06-04 11:42:40 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
inc = [
|
|
|
|
include_directories('.'),
|
|
|
|
]
|
|
|
|
|
|
|
|
executable('qbootctl', src,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: deps,
|
|
|
|
install: true,
|
|
|
|
c_args: [],
|
|
|
|
)
|