iglunix/linux/musl/bits.meson.build

33 lines
914 B
Text
Raw Normal View History

2021-10-11 16:30:08 +00:00
alltypes_h = custom_target(
'alltypes.h',
output : 'alltypes.h',
input : [
meson.project_source_root() + '/tools/mkalltypes.sed',
meson.project_source_root() + '/arch/'+arch+'/bits/alltypes.h.in',
meson.project_source_root() + '/include/alltypes.h.in'
],
command : ['sed', '-f', '@INPUT0@', '@INPUT1@', '@INPUT2@'],
capture : true,
install : true,
install_dir : 'include/bits/'
2021-10-11 16:30:08 +00:00
)
syscall_h_in = custom_target(
'syscall.in',
output : 'syscall.in',
input : meson.project_source_root() + '/arch/'+arch+'/bits/syscall.h.in',
command : ['sed', '-n', '-e', 's/__NR_/SYS_/p', '@INPUT@'],
capture : true
)
syscall_h = custom_target(
'syscall.h',
output : 'syscall.h',
input : [ meson.project_source_root() + '/arch/'+arch+'/bits/syscall.h.in', syscall_h_in ],
command : ['cat', '@INPUT0@', '@INPUT1@'],
capture : true,
install : true,
install_dir : 'include/bits/'
2021-10-11 16:30:08 +00:00
)