2021-10-09 01:47:37 +03:00
|
|
|
if not have_bsd_user
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-11-17 18:35:01 +03:00
|
|
|
bsd_user_ss = ss.source_set()
|
|
|
|
|
2021-12-21 18:20:32 +03:00
|
|
|
common_user_inc += include_directories('include')
|
2021-11-17 18:14:00 +03:00
|
|
|
|
2019-08-18 18:20:37 +03:00
|
|
|
bsd_user_ss.add(files(
|
|
|
|
'bsdload.c',
|
|
|
|
'elfload.c',
|
|
|
|
'main.c',
|
|
|
|
'mmap.c',
|
|
|
|
'signal.c',
|
|
|
|
'strace.c',
|
|
|
|
'syscall.c',
|
|
|
|
'uaccess.c',
|
|
|
|
))
|
2021-09-20 22:41:38 +03:00
|
|
|
|
|
|
|
# Pull in the OS-specific build glue, if any
|
|
|
|
subdir(targetos)
|
2021-11-17 18:35:01 +03:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
|