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(
|
2023-09-25 21:26:53 +03:00
|
|
|
'bsd-mem.c',
|
2023-09-25 21:24:03 +03:00
|
|
|
'bsd-proc.c',
|
2019-08-18 18:20:37 +03:00
|
|
|
'bsdload.c',
|
|
|
|
'elfload.c',
|
|
|
|
'main.c',
|
|
|
|
'mmap.c',
|
|
|
|
'signal.c',
|
|
|
|
'strace.c',
|
|
|
|
'uaccess.c',
|
|
|
|
))
|
2021-09-20 22:41:38 +03:00
|
|
|
|
2023-09-25 21:24:03 +03:00
|
|
|
elf = cc.find_library('elf', required: true)
|
|
|
|
procstat = cc.find_library('procstat', required: true)
|
|
|
|
kvm = cc.find_library('kvm', required: true)
|
|
|
|
bsd_user_ss.add(elf, procstat, kvm)
|
|
|
|
|
2021-09-20 22:41:38 +03:00
|
|
|
# Pull in the OS-specific build glue, if any
|
2023-11-03 11:17:48 +03:00
|
|
|
subdir(host_os)
|
2021-11-17 18:35:01 +03:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
|