mirror of
https://github.com/linux-msm/qbootctl
synced 2024-11-23 06:33:25 +08:00
3390f642e3
This fixes a few compilation issues on different platforms (yay C standards) Signed-off-by: Caleb Connolly <caleb@connolly.tech>
26 lines
450 B
Meson
26 lines
450 B
Meson
project('qbootctl', 'c', default_options : ['c_std=gnu11'])
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
if not cc.has_header('linux/bsg.h')
|
|
error('linux-headers not found')
|
|
endif
|
|
|
|
src = [
|
|
'qbootctl.c',
|
|
'bootctrl_impl.c',
|
|
'gpt-utils.c',
|
|
'ufs-bsg.c',
|
|
'crc32.c',
|
|
]
|
|
|
|
inc = [
|
|
include_directories('.'),
|
|
]
|
|
|
|
executable('qbootctl', src,
|
|
include_directories: inc,
|
|
install: true,
|
|
c_args: [],
|
|
)
|